A set of SPARQL examples that are used in different SIB resources
Where are the human genes encoding enzymes metabolizing cholesterol expressed?
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX up: <http://purl.uniprot.org/core/>
PREFIX : <http://purl.orthodb.org/>
PREFIX rh:<http://rdf.rhea-db.org/>
PREFIX odbgroup:<http://purl.orthodb.org/odbgroup/>
SELECT *
WHERE {
SERVICE <https://sparql.orthodb.org/sparql/> {
?gene a :Gene; :memberOf odbgroup:2906at28890.
?gene :xref [a :Xref; :xrefResource ?xref].
?xref a :Uniprot.
}
SERVICE <https://sparql.uniprot.org/sparql> {
?xref a up:Protein; up:recommendedName [up:fullName ?name] ;
up:annotation/up:catalyticActivity/up:catalyzedReaction ?reaction .
}
?reaction rdfs:subClassOf rh:Reaction .
?reaction rh:directionalReaction ?directionalReaction .
OPTIONAL { ?directionalReaction rdfs:seeAlso ?xref2 . }
?reaction rh:bidirectionalReaction ?bidirectionalReaction .
OPTIONAL { ?bidirectionalReaction rdfs:seeAlso ?xref2 . }
}