A set of SPARQL examples that are used in different SIB resources
Select all reactions with cross-references
PREFIX rh:<http://rdf.rhea-db.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT
DISTINCT ?reaction
WHERE {
?reaction rdfs:subClassOf rh:Reaction .
?reaction rh:directionalReaction ?directionalReaction .
?reaction rh:bidirectionalReaction ?bidirectionalReaction .
OPTIONAL { ?directionalReaction rdfs:seeAlso ?xref . }
OPTIONAL { ?bidirectionalReaction rdfs:seeAlso ?xref . }
FILTER (BOUND(?xref))
}
ORDER BY ?reaction