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
?protein up:organism taxon:9606 .
?protein 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")
v3("?proteome"):::projected
v2("?proteomeData"):::projected
v4("?replicon"):::projected
c2(["true^^xsd:boolean"]):::literal
c4(["taxon:9606"]):::iri
v1 --"up:reviewed"--> c2
v1 --"up:organism"--> c4
v1 --"up:proteome"--> v2
bind0[/"substring-before(str(?proteomeData),'#')"/]
v2 --o bind0
bind0 --as--o v3
bind1[/"substring-after(str(?proteomeData),'#')"/]
v2 --o bind1
bind1 --as--o v4