-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCQ2-Query.rq
24 lines (20 loc) · 1.09 KB
/
CQ2-Query.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
# CQ2: What are all origins and destinations of neuron populations traveling through the vagus?
# Query for CQ2: This query returns any neuron population that has its origin (soma) located in
# Region A, axon terminal or axon sensory terminal located in Region B, and axon located in nerve C,
# where C is vagus nerve or its part.
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX ilxtr: <http://uri.interlex.org/tgbugs/uris/readable/>
SELECT DISTINCT
?Neuron_ID ?Neuron_Label
?A ?Region_A ?B ?Region_B ?C ?Region_C
{
FILTER (LCase (?nerve_label) = 'vagus nerve')
?Neuron_ID rdfs:label ?Neuron_Label;
ilxtr:hasSomaLocation ?A;
ilxtr:hasAxonLocation | ilxtr:hasAxonToSensoryTerminal ?C;
ilxtr:hasAxonTerminalLocation | ilxtr:hasAxonSensoryLocation ?B.
?A rdfs:label ?Region_A. ?B rdfs:label ?Region_B. ?C rdfs:label ?Region_C.
## Check if region C is a subclass or partof of the given nerve ether directly or transitively.
?C (rdfs:subClassOf* | ilxtr:isPartOf*)/rdfs:label ?nerve_label.
}
ORDER BY ?Neuron_ID ?Region_B ?Region_C