A set of SPARQL examples that are used in different SIB resources
Check there are no entries with subcellular location note annotations from HPA for which there is no subcellular location annotation from HPA
PREFIX : <http://nextprot.org/rdf/>
PREFIX cv: <http://nextprot.org/rdf/terminology/>
PREFIX source: <http://nextprot.org/rdf/source/>
select distinct ?entry where {
?entry :isoform ?iso.
?iso :subcellularLocationNote /:evidence /:assignedBy source:Human_protein_atlas.
filter not exists {?iso :subcellularLocation /:evidence /:assignedBy source:Human_protein_atlas}
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?entry"):::projected
v1("?iso")
a3((" "))
a4((" "))
a1((" "))
a2((" "))
c4([":source/Human_protein_atlas"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --":subcellularLocation"--> e0a1
e0a1 --":evidence"--> e0a2
e0a2 --":assignedBy"--> e0c4
e0v1("?iso"):::projected
e0a1((" ")):::projected
e0a2((" ")):::projected
e0c4([":source/Human_protein_atlas"]):::iri
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> c1
f0 --> a1
f0 --> c2
f0 --> a2
f0 --> c3
f0 --> c4
v1 --":subcellularLocation"--> a1
a1 --":evidence"--> a2
a2 --":assignedBy"--> c4
v2 --":isoform"--> v1
v1 --":subcellularLocationNote"--> a3
a3 --":evidence"--> a4
a4 --":assignedBy"--> c4