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_09654

Check there are no entries with peptide mapping annotations with evidence from MassIVE that is negative

Use at

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

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