SPARQL examples for the EMI
View the Project on GitHub earth-metabolome-initiative/sparql-examples
List the external identifiers that correspond to the KEGG reaction R00703 (lactate dehydrogenase). This crosslinking of external identifiers is the core of MNXref
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
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