sparql-examples

A set of SPARQL examples that are used in different SIB resources

View the Project on GitHub sib-swiss/sparql-examples

neXtProt/NXQ_09652

Check there are no entries with peptide mapping annotations with evidence from MassIVE of quality SILVER

Use at

PREFIX : <http://nextprot.org/rdf/>
PREFIX cv: <http://nextprot.org/rdf/terminology/>

select distinct ?entry where {
  ?entry :isoform /:peptideMapping /:evidence ?ev1.
  ?ev1 :quality :SILVER.
  ?ev1 :assignedBy ?src.
  filter (regex (?src,'MassIVE'))
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v2("?entry"):::projected 
  v3("?ev1")
  v1("?src")
  a1((" "))
  a2((" "))
  c6([":SILVER"]):::iri 
  f0[["regex(?src,'MassIVE')"]]
  f0 --> v1
  v2 --":isoform"-->  a1
  a1 --":peptideMapping"-->  a2
  a2 --":evidence"-->  v3
  v3 --":quality"-->  c6
  v3 --":assignedBy"-->  v1