A set of SPARQL examples that are used in different SIB resources
Check there are no entries with antibody mapping annotations from HPA for which there is xref from HPA
PREFIX : <http://nextprot.org/rdf/>
PREFIX cv: <http://nextprot.org/rdf/terminology/>
PREFIX source: <http://nextprot.org/rdf/source/>
PREFIX db: <http://nextprot.org/rdf/db/>
select distinct ?entry where {
?entry :isoform ?iso.
?iso :antibodyMapping /:evidence ?ev.
?ev :assignedBy source:Human_protein_atlas.
filter not exists {?ev :fromXref db:HPA.}
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?entry"):::projected
v1("?ev")
v3("?iso")
a1((" "))
c7([":source/Human_protein_atlas"]):::iri
c2([":db/HPA"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --":fromXref"--> e0c2
e0v1("?ev"):::projected
e0c2([":db/HPA"]):::iri
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> c1
f0 --> c2
v1 --":fromXref"--> c2
v2 --":isoform"--> v3
v3 --":antibodyMapping"--> a1
a1 --":evidence"--> v1
v1 --":assignedBy"--> c7