A set of SPARQL examples that are used in different SIB resources
Proteins with more than 10 reported interactions (of 'gold' quality)
PREFIX : <http://nextprot.org/rdf/>
SELECT DISTINCT ?entry WHERE {
?entry :isoform/:binaryInteraction ?interaction.
?interaction :interactant ?interactant; :quality :GOLD.
?interactant a :Entry.
} group by ?entry having (count(distinct ?interactant) > 10)
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?_anon_524857e97b124dceaa8a4ecc8d1a18271245")
v1("?entry"):::projected
v3("?interactant")
v2("?interaction")
a2((" "))
a1((" "))
c6([":GOLD"]):::iri
c8([":Entry"]):::iri
f0[[" > '10^^xsd:integer'"]]
f0 --> a1
v1 --":isoform"--> a2
a2 --":binaryInteraction"--> v2
v2 --":interactant"--> v3
v2 --":quality"--> c6
v3 --"a"--> c8
bind2[/"count(?interactant)"/]
v3 --o bind2
bind2 --as--o v4