A set of SPARQL examples that are used in different SIB resources
Check there are no entries with a peptide mapping annotation with evidence from PeptideAtlas but no xref to PeptideAtlas
PREFIX : <http://nextprot.org/rdf/>
PREFIX cv: <http://nextprot.org/rdf/terminology/>
PREFIX db: <http://nextprot.org/rdf/db/>
select distinct ?entry where {
?entry a :Entry.
?entry :isoform /:peptideMapping /:evidence /:assignedBy ?src.
filter (regex (?src,'PeptideAtlas'))
filter not exists {?entry :reference /:provenance db:PeptideAtlas.}
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?entry"):::projected
v2("?src")
a2((" "))
a3((" "))
a4((" "))
a1((" "))
c6([":Entry"]):::iri
c3([":db/PeptideAtlas"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --":reference"--> e0a1
e0a1 --":provenance"--> e0c3
e0v1("?entry"):::projected
e0a1((" ")):::projected
e0c3([":db/PeptideAtlas"]):::iri
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> c1
f0 --> a1
f0 --> c2
f0 --> c3
v1 --":reference"--> a1
a1 --":provenance"--> c3
f1[["regex(?src,'PeptideAtlas')"]]
f1 --> v2
v1 --"a"--> c6
v1 --":isoform"--> a2
a2 --":peptideMapping"--> a3
a3 --":evidence"--> a4
a4 --":assignedBy"--> v2