A set of SPARQL examples that are used in different SIB resources
entry, associated chebi and super chebi
PREFIX up: <http://purl.uniprot.org/core/>
PREFIX rh: <http://rdf.rhea-db.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT ?entry ?chebi ?superchebi
WHERE {
?entry rh:chebi ?chebi.
?chebi (rdfs:subClassOf)+ ?superchebi.
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?chebi"):::projected
v1("?entry"):::projected
v3("?superchebi"):::projected
v1 --"rh:chebi"--> v2
v2 --"rdfs:subClassOf"--> v3