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_09244

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

Use at

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

select distinct ?entry where {
  ?entry :isoform /:peptideMapping /:evidence ?ev1.
  ?ev1 :quality :SILVER.
  ?ev1 :assignedBy ?src.
  filter ( ?src not in (source:PeptideAtlas_human_adrenal_gland,
source:PeptideAtlas_human_brain,
source:PeptideAtlas_human_breast,
source:PeptideAtlas_human_digestive_system,
source:PeptideAtlas_human_eye,
source:PeptideAtlas_human_female_reproductive_system,
source:PeptideAtlas_human_heart,
source:PeptideAtlas_human_kidney,
source:PeptideAtlas_human_liver,
source:PeptideAtlas_human_lung,
source:PeptideAtlas_human_male_reproductive_system,
source:PeptideAtlas_human_others,
source:PeptideAtlas_human_pancreas,
source:PeptideAtlas_human_plasma,
source:PeptideAtlas_human_spleen,
source:PeptideAtlas_human_urinary_bladder,
source:PeptideAtlas_human_urine,
source:PeptideAtlas_human_phosphoproteome))
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v2("?entry"):::projected 
  v3("?ev1")
  v1("?src")
  a1((" "))
  a2((" "))
  c23([":SILVER"]):::iri 
  f0[["?src != ':source/PeptideAtlas_human_adrenal_gland'?src != ':source/PeptideAtlas_human_brain'?src != ':source/PeptideAtlas_human_breast'?src != ':source/PeptideAtlas_human_digestive_system'?src != ':source/PeptideAtlas_human_eye'?src != ':source/PeptideAtlas_human_female_reproductive_system'?src != ':source/PeptideAtlas_human_heart'?src != ':source/PeptideAtlas_human_kidney'?src != ':source/PeptideAtlas_human_liver'?src != ':source/PeptideAtlas_human_lung'?src != ':source/PeptideAtlas_human_male_reproductive_system'?src != ':source/PeptideAtlas_human_others'?src != ':source/PeptideAtlas_human_pancreas'?src != ':source/PeptideAtlas_human_plasma'?src != ':source/PeptideAtlas_human_spleen'?src != ':source/PeptideAtlas_human_urinary_bladder'?src != ':source/PeptideAtlas_human_urine'?src != ':source/PeptideAtlas_human_phosphoproteome'"]]
  f0 --> v1
  v2 --":isoform"-->  a1
  a1 --":peptideMapping"-->  a2
  a2 --":evidence"-->  v3
  v3 --":quality"-->  c23
  v3 --":assignedBy"-->  v1