A set of SPARQL examples that are used in different SIB resources
Check there are no entries with a variant annotation with evidence from COSMIC that do not have an xref starting with COSM
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 /:variant /:evidence ?ev.
?ev :assignedBy source:Cosmic.
?ev :reference /:accession ?xref.
filter (!regex(?xref, "^COSM"))
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?entry"):::projected
v3("?ev")
v1("?xref")
a1((" "))
a2((" "))
a3((" "))
c6([":source/Cosmic"]):::iri
f0[["not regex(?xref,'^COSM')"]]
f0 --> v1
v2 --":isoform"--> a1
a1 --":variant"--> a2
a2 --":evidence"--> v3
v3 --":assignedBy"--> c6
v3 --":reference"--> a3
a3 --":accession"--> v1