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_09408

Check there are no entries with a natural peptide from PeptideAtlas 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 / :peptideMapping ?pm.
  ?pm :evidence / :reference ?ref.
  ?ref :provenance  db:PeptideAtlas.
  ?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/PeptideAtlas"]):::iri 
  f0[["not starts-with(?ac,'PAp')"]]
  f0 --> v1
  v2 --":isoform"-->  a1
  a1 --":peptideMapping"-->  v3
  v3 --":evidence"-->  a2
  a2 --":reference"-->  v4
  v4 --":provenance"-->  c7
  v4 --":accession"-->  v1