A set of SPARQL examples that are used in different SIB resources
Proteins with a 3D structure in complex with another human protein which is not reported as binary interactant
PREFIX : <http://nextprot.org/rdf/>
PREFIX db: <http://nextprot.org/rdf/db/>
SELECT DISTINCT ?entry WHERE {
?entry a :Entry.
?entry :reference ?ref.
?ref :provenance db:PDB; :accession ?ac.
?entry2 a :Entry.
?ac ^:accession/^:reference ?entry2.
filter(?entry != ?entry2).
filter not exists{?entry :isoform /:binaryInteraction / :interactant ?entry2.}
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?ac")
v1("?entry"):::projected
v2("?entry2")
v3("?ref")
a3((" "))
a1((" "))
a2((" "))
c5([":Entry"]):::iri
c8([":db/PDB"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --":isoform"--> e0a1
e0a1 --":binaryInteraction"--> e0a2
e0a2 --":interactant"--> e0v2
e0v1("?entry"):::projected
e0v2("?entry2"):::projected
e0a1((" ")):::projected
e0a2((" ")):::projected
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> c1
f0 --> a1
f0 --> c2
f0 --> a2
f0 --> c3
f0 --> v2
v1 --":isoform"--> a1
a1 --":binaryInteraction"--> a2
a2 --":interactant"--> v2
f1[["?entry != ?entry2"]]
f1 --> v1
f1 --> v2
v1 --"a"--> c5
v1 --":reference"--> v3
v3 --":provenance"--> c8
v3 --":accession"--> v4
v2 --"a"--> c5
a3 --":accession"--> v4
v2 --":reference"--> a3