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