A set of SPARQL examples that are used in different SIB resources
Proteins belonging to a family with at least two members in the human proteome
PREFIX : <http://nextprot.org/rdf/>
SELECT DISTINCT ?entry WHERE {
?entry :familyName / :term ?ac.
?member :familyName / :term ?ac.
} group by ?entry having (count(distinct ?member) >= 2 )
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?_anon_524857e97b124dceaa8a4ecc8d1a18273702")
v2("?ac")
v1("?entry"):::projected
v3("?member")
a2((" "))
a3((" "))
a1((" "))
f0[[" >= '2^^xsd:integer'"]]
f0 --> a1
v1 --":familyName"--> a2
a2 --":term"--> v2
v3 --":familyName"--> a3
a3 --":term"--> v2
bind2[/"count(?member)"/]
v3 --o bind2
bind2 --as--o v4