A set of SPARQL examples that are used in different SIB resources
Count all isoforms for a given proteome
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX taxon: <http://purl.uniprot.org/taxonomy/>
PREFIX up: <http://purl.uniprot.org/core/>
PREFIX proteome:<http://purl.uniprot.org/proteomes/>
SELECT
(COUNT(DISTINCT ?sequence) AS ?allIsoforms)
WHERE
{
?protein up:reviewed true .
?protein up:organism taxon:9606 .
?protein up:sequence ?sequence .
?protein up:proteome/^skos:narrower proteome:UP000005640 .
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?allIsoforms")
v1("?protein")
v2("?sequence"):::projected
a1((" "))
c2(["true^^xsd:boolean"]):::literal
c7([http://purl.uniprot.org/proteomes/UP000005640]):::iri
c4(["taxon:9606"]):::iri
v1 --"up:reviewed"--> c2
v1 --"up:organism"--> c4
v1 --"up:sequence"--> v2
v1 --"up:proteome"--> a1
c7 --"skos:narrower"--> a1
bind1[/"count(?sequence)"/]
v2 --o bind1
bind1 --as--o v3