-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild-the-data-format-tree-in-mdc.rq
81 lines (76 loc) · 3.61 KB
/
build-the-data-format-tree-in-mdc.rq
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
prefix obo: <http://purl.obolibrary.org/obo/>
prefix dc: <http://purl.org/dc/elements/1.1/>
select distinct ?x ?name ?title ?versionId ?doi ?doiURL ?identifier ?humanReadableSpecification ?machineReadableSpecification ?licenseName ?licenseUrl ?developerName ?pubThatUsedRelease ?pubAbout
from <http://www.pitt.edu/obc/ide/apollo-sv>
from <http://www.pitt.edu/obc/ide/classes-and-indexing-instances>
from <http://www.pitt.edu/obc/ide/article-instances>
from <http://www.pitt.edu/obc/ide/article-deleted-instances>
from <http://ide.obc.io/auth>
from <http://www.pitt.edu/obc/mdc/content>
where {
#the item (?x) is in the MIDAS Digital Commons
<http://www.pitt.edu/obc/IDE_ARTICLES_12000070095> obo:BFO_0000174 ?x .
#the item (?x) is an instance of data format
?x rdf:type obo:IAO_0000098 .
#get the label of the item (?x)
?x rdfs:label ?name .
#if there is a title annotation, get the title
OPTIONAL { ?x dc:title ?title } .
#get machine readable specification if present
OPTIONAL { ?x obo:ERO_0000480 ?machineReadableSpecification } .
#get version if present
OPTIONAL { ?y rdf:type obo:IAO_0000129 .
?y obo:IAO_0000219 ?x .
?y rdfs:label ?versionId } .
#get DOI if present
OPTIONAL { ?z rdf:type obo:OBI_0002110 .
?z obo:IAO_0000219 ?x .
?z rdfs:label ?doi } .
#get DOI URL if present
OPTIONAL { ?z rdf:type obo:OBI_0002110 .
?z obo:IAO_0000219 ?x .
?z obo:ERO_0000480 ?doiURL } .
#get other identifier if present
OPTIONAL { ?identifierInd rdf:type obo:IAO_0020000 .
?identifierInd obo:IAO_0000219 ?x .
?identifierInd rdfs:label ?identifier } .
#get license name if present
OPTIONAL { ?t rdf:type obo:APOLLO_SV_00000535 .
?t obo:BFO_0000050 ?x .
?t rdfs:label ?licenseName } .
#get license URL if present
OPTIONAL { ?t rdf:type obo:APOLLO_SV_00000535 .
?t obo:BFO_0000050 ?x .
?t obo:ERO_0000480 ?licenseUrl } .
#get developer(s) if any
OPTIONAL { ?r rdf:type obo:BFO_0000040 . #r is a material entity
?r obo:RO_0000053 ?q . #r is the bearer of q
?q rdf:type obo:OMRSE_00000038 . #q is a legal person role
?p rdf:type obo:APOLLO_SV_00000796 . #p is an instance of creating dataset
?p obo:RO_0002218 ?r . #p has active participant r
?p obo:OBI_0000299 ?x . #p has specified output the dataset
?r rdfs:label ?developerName } . #r has a label/name
#get publication(s) about if any
OPTIONAL { ?n obo:IAO_0000136 ?x .
?n rdf:type obo:IAO_0000311 .
?n rdfs:label ?pubAbout } .
#get publication(s) that used release if any
OPTIONAL { ?m obo:IAO_0000136 ?k . #m is about k
?k rdf:type obo:OBI_0000471 . #k is instance of study
?m rdf:type obo:IAO_0000311 . #m is instance of pub
?m dc:title ?pubThatUsedRelease . #m has label pubThatUsedRelease
?i obo:BFO_0000054 ?j . #i realized by j
?j rdf:type obo:OBIws_0000050 . #j is instance of code execution
?j obo:BFO_0000050 ?k . #j (execution) part of k (study)
?i rdf:type obo:APOLLO_SV_00000525 . #i instance of executable
?h obo:OBI_0000299 ?i . #i specified output of h
?h rdf:type obo:APOLLO_SV_00000524 . #h instance of compiling
?h obo:OBI_0000293 ?x #h has input the dtm
} .
#get link to human readable spec if present
OPTIONAL { ?s rdf:type obo:IAO_0000310 .
?s obo:IAO_0000136 ?x .
?s obo:ERO_0000480 ?humanReadableSpecification } .
#filter out punned individuals
FILTER ( ?x != obo:IAO_0000098 )
}