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_09149

Check there are no entries with GO biological process annotations with evidence from SynGO-UCL of quality SILVER and evidence code not IBA, IEP, HMP, HDA or HEP

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 /:goBiologicalProcess /:evidence ?ev.
  ?ev :assignedBy source:SynGO-UCL.
  ?ev :quality :SILVER.
  ?ev :evidenceCode ?eco.
  filter ( ?eco not in ( cv:ECO_0000318,cv:ECO_0000270,cv:ECO_0007001,cv:ECO_0007005,cv:ECO_0007007 ))
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v1("?eco")
  v2("?entry"):::projected 
  v3("?ev")
  a1((" "))
  a2((" "))
  c10([":source/SynGO-UCL"]):::iri 
  c12([":SILVER"]):::iri 
  f0[["?eco != ':terminology/ECO_0000318'?eco != ':terminology/ECO_0000270'?eco != ':terminology/ECO_0007001'?eco != ':terminology/ECO_0007005'?eco != ':terminology/ECO_0007007'"]]
  f0 --> v1
  v2 --":isoform"-->  a1
  a1 --":goBiologicalProcess"-->  a2
  a2 --":evidence"-->  v3
  v3 --":assignedBy"-->  c10
  v3 --":quality"-->  c12
  v3 --":evidenceCode"-->  v1