sparql-examples

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

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

5

List the external identifiers that correspond to the KEGG reaction R00703 (lactate dehydrogenase). This crosslinking of external identifiers is the core of MNXref

Use at

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

# List the external identifiers that correspond to the KEGG
# reaction *R00703* (lactate dehydrogenase). This crosslinking
# of external identifiers is the core of MNXref.

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