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_09612

Check there are no entries with PTM info annotations from neXtProt for which the evidence code is NOT experimental evidence or sequence similarity evidence used in manual assertion

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 /:ptmInfo /:evidence ?ev1.
  ?ev1 :assignedBy source:NextProt.
  ?ev1 :evidenceCode ?eco.
  filter (?eco not in (cv:ECO_0000006,cv:ECO_0000250))
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v1("?eco")
  v2("?entry"):::projected 
  v3("?ev1")
  a1((" "))
  a2((" "))
  c7([":source/NextProt"]):::iri 
  f0[["?eco != ':terminology/ECO_0000006'?eco != ':terminology/ECO_0000250'"]]
  f0 --> v1
  v2 --":isoform"-->  a1
  a1 --":ptmInfo"-->  a2
  a2 --":evidence"-->  v3
  v3 --":assignedBy"-->  c7
  v3 --":evidenceCode"-->  v1