@prefix ex: <https://sparql.metanetx.org/.well-known/sparql-examples/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix schema: <https://schema.org/> .
@prefix sh: <http://www.w3.org/ns/shacl#> .

ex:5 a sh:SPARQLExecutable,
        sh:SPARQLSelectExecutable ;
    rdfs:comment "List the external identifiers that correspond to the KEGG reaction R00703 (lactate dehydrogenase). This crosslinking of external identifiers is the core of MNXref"@en ;
    sh:prefixes _:sparql_examples_prefixes ;
    sh:select """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
}""" ;
    schema:target <https://rdf.metanetx.org/sparql/> .

