A set of SPARQL examples that are used in different SIB resources
protein, GO-term and superClass
PREFIX up: <http://purl.uniprot.org/core/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT ?protein ?goTerm ?superGO
WHERE {
?protein up:classifiedWith ?goTerm.
?goTerm rdfs:subClassOf ?superGO.
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?goTerm"):::projected
v1("?protein"):::projected
v3("?superGO"):::projected
v1 --"up:classifiedWith"--> v2
v2 --"rdfs:subClassOf"--> v3