@prefix ex: <https://sparql.rhea-db.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:98_Get_chebi_compound_of_a_given_InChI a sh:SPARQLExecutable,
        sh:SPARQLSelectExecutable ;
  rdfs:comment """Get chebi compound of a given InChI"""@en ;
  sh:select """
PREFIX rh:<http://rdf.rhea-db.org/>
PREFIX obo:<http://purl.obolibrary.org/obo/>
PREFIX chebihash:<http://purl.obolibrary.org/obo/chebi/>
SELECT
  ?chebi
  ?inchi
WHERE {
  BIND("InChI=1S/C5H9NO4/c6-3(5(9)10)1-2-4(7)8/h3H,1-2,6H2,(H,7,8)(H,9,10)/t3-/m0/s1" AS ?inchi)
  ?chebi chebihash:inchi ?inchi .
}""";
 schema:target <https://sparql.rhea-db.org/sparql> .
