A set of SPARQL examples that are used in different SIB resources
Check there are no entries with a natural peptide from MassIVE with an AC which does NOT start with "MSVp"
PREFIX : <http://nextprot.org/rdf/>
PREFIX cv: <http://nextprot.org/rdf/terminology/>
select distinct ?entry where {
?entry :isoform /:peptideMapping /:evidence ?ev1.
?ev1 :assignedBy ?src.
filter (regex (?src,'MassIVE'))
?ev1 :reference /:accession ?pepac .
filter (!regex (?pepac,'MSVp'))
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?entry"):::projected
v4("?ev1")
v1("?pepac")
v2("?src")
a1((" "))
a2((" "))
a3((" "))
f0[["not regex(?pepac,'MSVp')"]]
f0 --> v1
f1[["regex(?src,'MassIVE')"]]
f1 --> v2
v3 --":isoform"--> a1
a1 --":peptideMapping"--> a2
a2 --":evidence"--> v4
v4 --":assignedBy"--> v2
v4 --":reference"--> a3
a3 --":accession"--> v1