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_09428

Check there are no entries which are PE2-PE4 with a binary-interaction annotations with GOLD experimental evidence

Use at

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

select distinct ?entry where {
  ?entry a :Entry.
  ?entry :existence ?pe.
  filter ( ?pe not in (:Evidence_at_protein_level,:Uncertain ))
  ?entry :isoform ?iso.
  ?iso :binaryInteraction /:evidence ?ev.
  ?ev :quality :GOLD.
  ?ev :evidenceCode cv:ECO_0000006. # experimental evidence
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v2("?entry"):::projected 
  v4("?ev")
  v3("?iso")
  v1("?pe")
  a1((" "))
  c4([":Entry"]):::iri 
  c10([":GOLD"]):::iri 
  c12([":terminology/ECO_0000006"]):::iri 
  f0[["?pe != ':Evidence_at_protein_level'?pe != ':Uncertain'"]]
  f0 --> v1
  v2 --"a"-->  c4
  v2 --":existence"-->  v1
  v2 --":isoform"-->  v3
  v3 --":binaryInteraction"-->  a1
  a1 --":evidence"-->  v4
  v4 --":quality"-->  c10
  v4 --":evidenceCode"-->  c12