A set of SPARQL examples for tutorials at SWAT4HCLS
Check there are no entries with an xref to SRMAtlas but no SRM peptide mapping annotation with evidence from 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 :reference /:provenance db:SRMAtlas.
filter not exists {?entry :isoform /:srmPeptideMapping /:evidence /:assignedBy source:SRMAtlas.}
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?entry"):::projected
a4((" "))
a1((" "))
a2((" "))
a3((" "))
c7([":Entry"]):::iri
c10([":db/SRMAtlas"]):::iri
c5([":source/SRMAtlas"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --":isoform"--> e0a1
e0a1 --":srmPeptideMapping"--> e0a2
e0a2 --":evidence"--> e0a3
e0a3 --":assignedBy"--> e0c5
e0v1("?entry"):::projected
e0a1((" ")):::projected
e0a2((" ")):::projected
e0a3((" ")):::projected
e0c5([":source/SRMAtlas"]):::iri
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> c1
f0 --> a1
f0 --> c2
f0 --> a2
f0 --> c3
f0 --> a3
f0 --> c4
f0 --> c5
v1 --":isoform"--> a1
a1 --":srmPeptideMapping"--> a2
a2 --":evidence"--> a3
a3 --":assignedBy"--> c5
v1 --"a"--> c7
v1 --":reference"--> a4
a4 --":provenance"--> c10