A set of SPARQL examples for tutorials at SWAT4HCLS
Check there are no entries with an SRM peptide mapping annotation with evidence from SRMAtlas but no xref to SRMAtlas
PREFIX : <http://nextprot.org/rdf/>
PREFIX cv: <http://nextprot.org/rdf/terminology/>
PREFIX source: <http://nextprot.org/rdf/source/>
PREFIX db: <http://nextprot.org/rdf/db/>
select distinct ?entry where {
?entry a :Entry.
?entry :isoform /:srmPeptideMapping /:evidence /:assignedBy source:SRMAtlas.
filter not exists {?entry :reference /:provenance db:SRMAtlas.}
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?entry"):::projected
a2((" "))
a3((" "))
a4((" "))
a1((" "))
c5([":Entry"]):::iri
c3([":db/SRMAtlas"]):::iri
c10([":source/SRMAtlas"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --":reference"--> e0a1
e0a1 --":provenance"--> e0c3
e0v1("?entry"):::projected
e0a1((" ")):::projected
e0c3([":db/SRMAtlas"]):::iri
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> c1
f0 --> a1
f0 --> c2
f0 --> c3
v1 --":reference"--> a1
a1 --":provenance"--> c3
v1 --"a"--> c5
v1 --":isoform"--> a2
a2 --":srmPeptideMapping"--> a3
a3 --":evidence"--> a4
a4 --":assignedBy"--> c10