A set of SPARQL examples that are used in different SIB resources
Number of reviewed entries (UniProtKB/Swiss-Prot) that are related to kinase activity
PREFIX GO: <http://purl.obolibrary.org/obo/GO_>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX taxon: <http://purl.uniprot.org/taxonomy/>
PREFIX up: <http://purl.uniprot.org/core/>
SELECT
(COUNT(DISTINCT(?protein)) AS ?pc)
WHERE
{
?protein rdf:type up:Protein ;
up:reviewed true ;
up:organism taxon:9606 ;
up:classifiedWith|(up:classifiedWith/rdfs:subClassOf) GO:0016301 .
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?pc")
v1("?protein"):::projected
a1((" "))
c8(["GO:0016301"]):::iri
c4(["true^^xsd:boolean"]):::literal
c2(["up:Protein"]):::iri
c6(["taxon:9606"]):::iri
v1 --"a"--> c2
v1 --"up:reviewed"--> c4
v1 --"up:organism"--> c6
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v1 --"up:classifiedWith"--> a1
a1 --"rdfs:subClassOf"--> c8
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v1 --"up:classifiedWith"--> c8
end
union0r <== or ==> union0l
end
bind1[/"count(?protein)"/]
v1 --o bind1
bind1 --as--o v2