A set of SPARQL examples that are used in different SIB resources
Proteins which are "Receptor binding" according to GO and have the Swiss-Prot keyword "Immunity"
PREFIX : <http://nextprot.org/rdf/>
PREFIX nextprot_cv: <http://nextprot.org/rdf/terminology/>
SELECT DISTINCT ?entry WHERE {
?entry :isoform ?iso.
?iso :function ?statement.
?statement :term / :childOf nextprot_cv:GO_0005102.
filter not exists { ?statement :negativeEvidence ?negev. } # No negative function evidence
?iso :uniprotKeyword/:term nextprot_cv:KW-0391.
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?entry"):::projected
v4("?iso")
v2("?negev")
v1("?statement")
a1((" "))
a2((" "))
c8([":terminology/KW-0391"]):::iri
c6([":terminology/GO_0005102"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --":negativeEvidence"--> e0v2
e0v2("?negev"):::projected
e0v1("?statement"):::projected
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> c1
f0 --> v2
v1 --":negativeEvidence"--> v2
v3 --":isoform"--> v4
v4 --":function"--> v1
v1 --":term"--> a1
a1 --":childOf"--> c6
v4 --":uniprotKeyword"--> a2
a2 --":term"--> c8