-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathget-unique-locations-simulated.rq
66 lines (55 loc) · 3.11 KB
/
get-unique-locations-simulated.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
prefix obo: <http://purl.obolibrary.org/obo/>
PREFIX obc: <http://www.pitt.edu/obc/>
select distinct (replace(?geoLocationFullLabel, "region of ", "") as ?geoLocationLabel) ?geoLocation
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>
from <http://www.pitt.edu/obc/simulates-instances>
where {
{
?dtm rdf:type <http://purl.obolibrary.org/obo/APOLLO_SV_00000561> . #x is dtm software
#get compiledSoftware that corresponds to dtm via a compiling process
?compilingProcess obo:OBI_0000293 ?dtm .
?compilingProcess obo:OBI_0000299 ?executable .
#get compiled software that achieves planned objective simulating of process type x
?simulatingOfProcessTypeX obo:OBI_0000417 ?executable . #achieves planned objective obo:OBI_0000417
?executable rdf:type/rdfs:subClassOf* obo:APOLLO_SV_00000525 .
?simulatingOfProcessTypeX rdf:type obo:APOLLO_SV_00000005 .
#get simulation of populations
?simulatingOfProcessTypeX obo:OBI_0000299 ?simulationOfPopulation . #has specified output - obo:OBI_0000299
?simulationOfPopulation rdf:type/rdfs:subClassOf* obo:APOLLO_SV_00000031 .
?simulationOfPopulation obo:APOLLO_SV_00000067 ?population .
?population rdf:type/rdfs:subClassOf* obo:PCO_0000001 . #PCO_0000001 population
#get the biotic ecosystem of the population
?population obo:BFO_0000137 ?bioticEcosystem . #BFO_0000137 proper part of continuant at all times
?bioticEcosystem rdf:type obo:APOLLO_SV_00000104 .
#get the ecosystm that contains the biotic ecosystem
#obo:ecosystem APOLLO_SV_00000097
?bioticEcosystem obo:BFO_0000137 ?ecosystem . #BFO_0000137 proper part of continuant at all times
?ecosystem rdf:type obo:APOLLO_SV_00000097 .
#get the geographic region/location of the ecosystem.
?ecosystem <http://www.obofoundry.org/ro/ro.owl#located_in> ?geoLocation .
?geoLocation rdfs:label ?geoLocationFullLabel
}
UNION
{
?dataset rdf:type/rdfs:subClassOf* obo:IAO_0000100 . #dataset is instance of data set
?dataset obo:IAO_0000136/obo:RO_0000057* ?population1 . #and it's either about population or something that has population as participant
?population1 rdf:type/rdfs:subClassOf* obo:PCO_0000001 .
#get the biotic ecosystem of the population
?population1 obo:BFO_0000137 ?bioticEcosystem1 . #BFO_0000137 proper part of continuant at all times
?bioticEcosystem1 rdf:type obo:APOLLO_SV_00000104 .
#get the ecosystm that contains the biotic ecosystem
#obo:ecosystem APOLLO_SV_00000097
?bioticEcosystem1 obo:BFO_0000137 ?ecosystem1 . #BFO_0000137 proper part of continuant at all times
?ecosystem1 rdf:type obo:APOLLO_SV_00000097 .
#get the geographic region/location of the ecosystem.
?ecosystem1 <http://www.obofoundry.org/ro/ro.owl#located_in> ?geoLocation .
?geoLocation rdfs:label ?geoLocationFullLabel
}
FILTER (?geoLocation != obo:GEO_000000345)
}
order by ?geoLocationLabel