A set of SPARQL examples that are used in different SIB resources
Get tautomer of a given chebi compound
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 .
}