A set of SPARQL examples that are used in different SIB resources
Proteins with at least one cross-reference to SMR (Swiss Model Repository) but no cross-references to PDB
PREFIX : <http://nextprot.org/rdf/>
PREFIX db: <http://nextprot.org/rdf/db/>
SELECT DISTINCT ?entry WHERE {
?entry a :Entry.
?entry :reference / :provenance db:SMR.
filter not exists { ?entry :reference / :provenance db:PDB }
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?entry"):::projected
a2((" "))
a1((" "))
c5([":Entry"]):::iri
c6([":db/SMR"]):::iri
c3([":db/PDB"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --":reference"--> e0a1
e0a1 --":provenance"--> e0c3
e0v1("?entry"):::projected
e0a1((" ")):::projected
e0c3([":db/PDB"]):::iri
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> c1
f0 --> a1
f0 --> c2
f0 --> c3
v1 --":reference"--> a1
a1 --":provenance"--> c3
v1 --"a"--> c5
v1 --":reference"--> a2
a2 --":provenance"--> c6