sparql-examples

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

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

NXQ_09671

rq turtle/ttl

Check there are no entries with expression profile annotations with evidence from RNA-seq which are NOT from HPA or Bgee

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 ?iso.
  ?iso :expressionProfile /:evidence ?ev.
  ?ev :evidenceCode cv:ECO_0000295. # RNA-seq
  ?ev :assignedBy ?src.
  filter ( ?src not in (source:Human_protein_atlas,source:Bgee))
}
:isoform
:expressionProfile
:evidence
:evidenceCode
:assignedBy
?entry
?ev
?iso
?src
:terminology/ECO_0000295
?src != ':source/Human_protein_atlas'?src != ':source/Bgee'