A set of SPARQL examples that are used in different SIB resources
Find the similar proteins for UniProtKB entry P05067 sorted by UniRef cluster identity
PREFIX uniprotkb: <http://purl.uniprot.org/uniprot/>
PREFIX up: <http://purl.uniprot.org/core/>
SELECT
?similar ?identity
FROM <http://sparql.uniprot.org/uniref>
FROM <http://sparql.uniprot.org/uniprot>
WHERE
{
BIND (uniprotkb:P05607 AS ?protein)
?cluster up:member ?member ;
up:member/up:sequenceFor ?protein;
up:identity ?identity .
?member up:sequenceFor ?similar .
FILTER(!sameTerm(?similar, ?protein))
}
ORDER BY DESC(?identity)
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?cluster")
v1("?identity"):::projected
v5("?member")
v4("?protein")
v2("?similar"):::projected
a1((" "))
f0[["not sameterm(?similar,?protein)"]]
f0 --> v2
f0 --> v4
bind1[/"'uniprotkb:P05607'"/]
bind1 --as--o v4
v4 --"up:member"--> v5
v4 --"up:member"--> a1
a1 --"up:sequenceFor"--> v4
v4 --"up:identity"--> v1
v5 --"up:sequenceFor"--> v2