A set of SPARQL examples that are used in different SIB resources
Proteins whose gene is located in chromosome 2 that belongs to families with at least 5 members in the human proteome
PREFIX : <http://nextprot.org/rdf/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
select ?entry WHERE {
?entry :familyName / :term/^:term/^:familyName ?member.
?entry :gene / :chromosome "2"^^xsd:string .
} group by ?entry having ( count(distinct ?member) >= 5 )
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?_anon_aaf95e3c346c4c97af230d5bcfeba8ab737")
v1("?entry"):::projected
v2("?member")
a2((" "))
a3((" "))
a4((" "))
a5((" "))
a1((" "))
c6(["2"]):::literal
f0[[" >= '5^^xsd:integer'"]]
f0 --> a1
v1 --":familyName"--> a2
a2 --":term"--> a3
a4 --":term"--> a3
v2 --":familyName"--> a4
v1 --":gene"--> a5
a5 --":chromosome"--> c6
bind2[/"count(?member)"/]
v2 --o bind2
bind2 --as--o v3