A set of SPARQL examples that are used in different SIB resources
Proteins with 3 disulfide bonds and that are not annotated as hormones
PREFIX : <http://nextprot.org/rdf/>
PREFIX nextprot_cv: <http://nextprot.org/rdf/terminology/>
SELECT DISTINCT ?entry WHERE {
?entry :isoform ?isoform.
?isoform :ptm ?statement.
?statement a :DisulfideBond.
filter not exists { ?entry :isoform / :function / :term /:childOf nextprot_cv:GO_0005179. } # GO Hormone activity
} group by ?entry ?isoform having (count(?statement) =3 )
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?_anon_524857e97b124dceaa8a4ecc8d1a18273359")
v1("?entry"):::projected
v2("?isoform")
v3("?statement")
a2((" "))
a3((" "))
a4((" "))
a1((" "))
c6([":terminology/GO_0005179"]):::iri
c9([":DisulfideBond"]):::iri
f0[[" = '3^^xsd:integer'"]]
f0 --> a1
f1[["not "]]
subgraph f1e0["Exists Clause"]
e0v1 --":isoform"--> e0a1
e0a1 --":function"--> e0a2
e0a2 --":term"--> e0a3
e0a3 --":childOf"--> e0c5
e0v1("?entry"):::projected
e0a1((" ")):::projected
e0a2((" ")):::projected
e0a3((" ")):::projected
e0c5([":terminology/GO_0005179"]):::iri
end
f1--EXISTS--> f1e0
f1 --> v1
f1 --> c2
f1 --> a2
f1 --> c3
f1 --> a3
f1 --> c4
f1 --> a4
f1 --> c5
f1 --> c6
v1 --":isoform"--> a2
a2 --":function"--> a3
a3 --":term"--> a4
a4 --":childOf"--> c6
v1 --":isoform"--> v2
v2 --":ptm"--> v3
v3 --"a"--> c9
bind3[/"count(?statement)"/]
v3 --o bind3
bind3 --as--o v4