sparql-examples

A set of SPARQL examples that are used in different SIB resources

View the Project on GitHub sib-swiss/sparql-examples

NXQ_09164

rq turtle/ttl

Check there are no entries with GO cellular component annotations with evidence from ARUK-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 /:goCellularComponent /:evidence ?ev.
  ?ev :assignedBy source:ARUK-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 ))
}
:isoform
:goCellularComponent
:evidence
:assignedBy
:quality
:evidenceCode
?eco
?entry
?ev
:source/ARUK-UCL
:SILVER
?eco != ':terminology/ECO_0000318'?eco != ':terminology/ECO_0000270'?eco != ':terminology/ECO_0007001'?eco != ':terminology/ECO_0007005'?eco != ':terminology/ECO_0007007'