A set of SPARQL examples for tutorials at SWAT4HCLS
Check there are no entries with antibody mapping annotations for which the antibody AC does NOT start with "HPA"
PREFIX : <http://nextprot.org/rdf/>
PREFIX cv: <http://nextprot.org/rdf/terminology/>
select distinct ?entry where {
?entry :isoform ?iso.
?iso :antibodyMapping /:evidence /:reference /:accession ?ac.
filter (!regex (?ac,"^HPA"))
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?ac")
v2("?entry"):::projected
v3("?iso")
a1((" "))
a2((" "))
a3((" "))
f0[["not regex(?ac,'^HPA')"]]
f0 --> v1
v2 --":isoform"--> v3
v3 --":antibodyMapping"--> a1
a1 --":evidence"--> a2
a2 --":reference"--> a3
a3 --":accession"--> v1