Skip to content

Latest commit

 

History

History
183 lines (163 loc) · 10.6 KB

examples.org

File metadata and controls

183 lines (163 loc) · 10.6 KB

Examples

Basic metadata

how to know which version of SCKAN you are working with

Regions with processes from neuron population

Show all regions that contain some part of a given neuron population. Here, Neuron type keast 5

// neurites
MATCH (neupop:Class{iri: "http://uri.interlex.org/tgbugs/uris/readable/neuron-type-keast-5"})
-[:apinatomy:annotates*0..1]->(neugrp:NamedIndividual{`https://apinatomy.org/uris/readable/description`: "dynamic"})
-[:apinatomy:links]->(link)
-[:apinatomy:fasciculatesIn|apinatomy:endsIn*0..1]->(lyph_or_layer)
-[:apinatomy:layerIn*0..1]->(lyph)
-[:apinatomy:ontologyTerms]->(region)
RETURN region

UNION

// somas
MATCH (neupop:Class{iri: "http://uri.interlex.org/tgbugs/uris/readable/neuron-type-keast-5"})
-[:apinatomy:annotates*0..1]->(neugrp:NamedIndividual{`https://apinatomy.org/uris/readable/description`: "dynamic"})
-[:apinatomy:lyphs]->(lyph)
-[:apinatomy:internalIn]->()
-[:apinatomy:ontologyTerms]->(region)
RETURN region
idlabel
ILX:0738432Sixth lumbar spinal cord segment
ILX:0792853Anterior root of first sacral nerve
ILX:0793615Ventral root of the sixth lumbar nerve
UBERON:0006460first sacral spinal cord segment
UBERON:0016508pelvic ganglion
UBERON:0018675pelvic splanchnic nerve
SELECT DISTINCT
?region
(str(?l) as ?label)
WHERE {
  VALUES ?neupop { ilxtr:neuron-type-keast-5 }
  ?neupop apinatomy:annotates ?neugrp .
  ?neugrp a elements:Group .  # externals annotate the whole model
  {
    ?neugrp apinatomy:links / ( apinatomy:fasciculatesIn | apinatomy:endsIn ) ?rlyph .
    ?rlyph apinatomy:ontologyTerms ?region .
    filter not exists { ?rlyph apinatomy:layer ?_ }  # require if ?region where not specified
  } UNION {
    ?neugrp apinatomy:links / ( apinatomy:fasciculatesIn | apinatomy:endsIn ) /
            apinatomy:layerIn / apinatomy:ontologyTerms ?region .
  }
  OPTIONAL { ?region rdfs:label ?l }
}
ORDER BY ?region
regionlabel
ILX:0738432Sixth lumbar spinal cord segment
ILX:0792853Anterior root of first sacral nerve
ILX:0793615Ventral root of the sixth lumbar nerve
UBERON:0006460first sacral spinal cord segment
UBERON:0016508pelvic ganglion
UBERON:0018675pelvic splanchnic nerve

Neuron populations with processes in region

Show all neuron populations that have some part in a given region. In this case the inferior mesenteric ganglion. See this catalog entry for the generalized form of this query.

// neurites
MATCH (neupop:Class)
-[:apinatomy:annotates*0..1]->(neugrp:NamedIndividual{`https://apinatomy.org/uris/readable/description`: "dynamic"})
-[:apinatomy:links]->(link)
-[:apinatomy:fasciculatesIn|apinatomy:endsIn*0..1]->(lyph_or_layer)
-[:apinatomy:layerIn*0..1]->(lyph)
-[:apinatomy:ontologyTerms*0..1]->(region:Class{iri: "UBERON:0005453"})
RETURN neupop

UNION

// somas
MATCH (neupop:Class)
-[:apinatomy:annotates*0..1]->(neugrp:NamedIndividual{`https://apinatomy.org/uris/readable/description`: "dynamic"})
-[:apinatomy:lyphs]->(lyph)
-[:apinatomy:internalIn]->()
-[:apinatomy:ontologyTerms*0..1]->(region:Class{iri: "UBERON:0005453"})
RETURN neupop
idlabel
ilxtr:neuron-type-keast-3inferior mesenteric ganglion neuron (kblad)
ilxtr:neuron-type-keast-6sympathetic preganglionic neuron innervating pelvic ganglion neuron (kblad)
ilxtr:neuron-type-keast-7sympathetic preganglionic neuron innervating inferior mesenteric ganglion neuron (kblad)
ilxtr:neuron-type-keast-11L1-L2 sensory neuron innervating bladder
ilxtr:neuron-type-sdcol-bneuron type sdcol b
ilxtr:neuron-type-sdcol-dneuron type sdcol d
ilxtr:neuron-type-sdcol-fneuron type sdcol f
ilxtr:neuron-type-sdcol-gneuron type sdcol g
ilxtr:neuron-type-sdcol-hneuron type sdcol h
ilxtr:neuron-type-sdcol-qneuron type sdcol q
ilxtr:neuron-type-sdcol-q-primeneuron type sdcol q’
SELECT DISTINCT
?neupop
(str(?l) as ?label)
(str(?pl) as ?prefLabel)
WHERE {
  VALUES (?region ?neuron) { (UBERON:0005453 SAO:1417703748) }
  ?neupop rdfs:subClassOf+ ?neuron ;
          rdfs:label ?l ;
          apinatomy:annotates ?neugrp .
  OPTIONAL { ?neupop skos:prefLabel ?pl }
  ?neugrp a elements:Group .  # externals annotate the whole model
  {
    ?neugrp apinatomy:links / ( apinatomy:fasciculatesIn | apinatomy:endsIn ) ?rlyph .
    ?rlyph apinatomy:ontologyTerms ?region .
    filter not exists { ?rlyph apinatomy:layer ?_ }  # require if ?region where not specified
  } UNION {
    ?neugrp apinatomy:links / ( apinatomy:fasciculatesIn | apinatomy:endsIn ) /
            apinatomy:layerIn / apinatomy:ontologyTerms ?region .
  }
}
ORDER BY ?neupop
neupoplabelprefLabel
ilxtr:neuron-type-keast-3neuron type kblad 3inferior mesenteric ganglion neuron (kblad)
ilxtr:neuron-type-keast-6neuron type kblad 6sympathetic preganglionic neuron innervating pelvic ganglion neuron (kblad)
ilxtr:neuron-type-keast-7neuron type kblad 7sympathetic preganglionic neuron innervating inferior mesenteric ganglion neuron (kblad)
ilxtr:neuron-type-keast-11neuron type kblad 11L1-L2 sensory neuron innervating bladder
ilxtr:neuron-type-sdcol-bneuron type sdcol b
ilxtr:neuron-type-sdcol-dneuron type sdcol d
ilxtr:neuron-type-sdcol-fneuron type sdcol f
ilxtr:neuron-type-sdcol-gneuron type sdcol g
ilxtr:neuron-type-sdcol-hneuron type sdcol h
ilxtr:neuron-type-sdcol-qneuron type sdcol q
ilxtr:neuron-type-sdcol-q-primeneuron type sdcol q’

Bootstrap

Local Variables