A set of SPARQL examples that are used in different SIB resources
List UniProtKB proteins with genetic replicon that they are encoded on using the Proteome data.
PREFIX taxon: <http://purl.uniprot.org/taxonomy/>
PREFIX up: <http://purl.uniprot.org/core/>
SELECT
DISTINCT
?proteomeData
?replicon
?proteome
WHERE {
# reviewed entries (UniProtKB/Swiss-Prot)
?protein up:reviewed true .
# restricted to Human taxid
?uniprot up:organism taxon:9606 .
?uniprot up:proteome ?proteomeData .
BIND( strbefore( str(?proteomeData), "#" ) as ?proteome )
BIND( strafter( str(?proteomeData), "#" ) as ?replicon )
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?protein")
v4("?proteome"):::projected
v3("?proteomeData"):::projected
v5("?replicon"):::projected
v2("?uniprot")
c2(["true^^xsd:boolean"]):::literal
c4(["taxon:9606"]):::iri
v1 --"up:reviewed"--> c2
v2 --"up:organism"--> c4
v2 --"up:proteome"--> v3
bind0[/"substring-before(str(?proteomeData),'#')"/]
v3 --o bind0
bind0 --as--o v4
bind1[/"substring-after(str(?proteomeData),'#')"/]
v3 --o bind1
bind1 --as--o v5