A set of SPARQL examples that are used in different SIB resources
GO_protein
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#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
SELECT ?protein ?go
WHERE {
?protein up:classifiedWith/rdfs:subClassOf* ?go .
GRAPH <https://sparql.uniprot.org/go> {
?go a owl:Class .
}
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?go"):::projected
v1("?protein"):::projected
a1((" "))
c4(["owl:Class"]):::iri
v1 --"up:classifiedWith"--> a1
a1 --"rdfs:subClassOf"--> v2
v2 --"a"--> c4