@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix ex: <https://sparql.rhea-db.org/.well-known/sparql-examples/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix schema: <https://schema.org/> .
@prefix sh: <http://www.w3.org/ns/shacl#> .

ex:96_Get_tautomer_of_a_given_chebi_compound a sh:SPARQLExecutable, sh:SPARQLSelectExecutable;
  rdfs:comment "Get tautomer of a given chebi compound"@en ;
  sh:select """PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX rh:<http://rdf.rhea-db.org/>
PREFIX obo:<http://purl.obolibrary.org/obo/>
PREFIX CHEBI:<http://purl.obolibrary.org/obo/CHEBI_>
PREFIX chebihash:<http://purl.obolibrary.org/obo/chebi#>
PREFIX owl:<http://www.w3.org/2002/07/owl#>
select
  ?chebi
  ?chebiName
  ?chebiTautomer
  ?chebiTautomerName
where {
  BIND(CHEBI:57416 AS ?chebi)
  ?chebi rdfs:subClassOf ?chebiRestriction .
  ?chebiRestriction a owl:Restriction .
  ?chebiRestriction owl:onProperty chebihash:is_tautomer_of .
  ?chebiRestriction owl:someValuesFrom ?chebiTautomer .
  ?chebi rdfs:label ?chebiName .
  ?chebiTautomer rdfs:label ?chebiTautomerName .
}""";
  schema:target <https://sparql.rhea-db.org/sparql> .
