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_09409

Check there are no entries with a synthetic peptide from SRMAtlas with an AC which does NOT start with "Pap"

Use at

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

select distinct ?entry where {
  ?entry :isoform /:srmPeptideMapping  ?pm.
  ?pm :evidence /:reference ?ref.
  ?ref :provenance db:SRMAtlas.
  ?ref :accession ?ac.
  filter(!strStarts(?ac,"PAp"))
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v1("?ac")
  v2("?entry"):::projected 
  v3("?pm")
  v4("?ref")
  a1((" "))
  a2((" "))
  c7([":db/SRMAtlas"]):::iri 
  f0[["not starts-with(?ac,'PAp')"]]
  f0 --> v1
  v2 --":isoform"-->  a1
  a1 --":srmPeptideMapping"-->  v3
  v3 --":evidence"-->  a2
  a2 --":reference"-->  v4
  v4 --":provenance"-->  c7
  v4 --":accession"-->  v1