A set of SPARQL examples that are used in different SIB resources
Human anatomic entities at young adult developmental stage
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX up: <http://purl.uniprot.org/core/>
PREFIX genex: <http://purl.org/genex#>
PREFIX obo: <http://purl.obolibrary.org/obo/>
SELECT DISTINCT ?anatomicalEntity ?stageName {
?condition genex:hasAnatomicalEntity ?anatEntity ;
genex:hasDevelopmentalStage ?stage ;
obo:RO_0002162/up:commonName ?commonName .
?anatEntity rdfs:label ?anatomicalEntity .
?stage rdfs:label ?stageName .
FILTER( LCASE(?commonName) = "human" )
FILTER( CONTAINS(LCASE(?stageName), "young adult") )
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?anatEntity")
v6("?anatomicalEntity"):::projected
v2("?commonName")
v3("?condition")
v5("?stage")
v1("?stageName"):::projected
a1((" "))
f0[["contains(lower-case(?stageName),'young adult')"]]
f0 --> v1
f1[["lower-case(?commonName) = 'human'"]]
f1 --> v2
v3 --"genex:hasAnatomicalEntity"--> v4
v3 --"genex:hasDevelopmentalStage"--> v5
v3 --"obo:RO_0002162"--> a1
a1 --"up:commonName"--> v2
v4 --"rdfs:label"--> v6
v5 --"rdfs:label"--> v1