sparql-examples

A set of SPARQL examples that are used in different SIB resources

View the Project on GitHub sib-swiss/sparql-examples

4

Retrieve the MNXref reaction identifier, that corresponds to the KEGG reaction R00703 (lactate dehydrogenase).

Use at

PREFIX keggR: <https://identifiers.org/kegg.reaction:>
PREFIX mnx: <https://rdf.metanetx.org/schema/>

# Retrieve the MNXref reaction identifier, that corresponds to
# the KEGG reaction *R00703* (lactate dehydrogenase).

SELECT ?reaction ?reference
FROM <https://rdf.metanetx.org/> WHERE {
    ?reaction a mnx:REAC .
    ?reaction mnx:reacXref keggR:R00703 .
    ?reaction mnx:reacRefer ?reference
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v1("?reaction"):::projected 
  v2("?reference"):::projected 
  c4(["kegg.reaction:R00703"]):::iri 
  c2(["mnx:REAC"]):::iri 
  v1 --"a"-->  c2
  v1 --"mnx:reacXref"-->  c4
  v1 --"mnx:reacRefer"-->  v2