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_09673

Check there are no entries with expression profile annotations with evidence from IHC which are NOT from HPA

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_0001055. # IHC
  filter not exists { ?ev :assignedBy source:Human_protein_atlas }
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v2("?entry"):::projected 
  v1("?ev")
  v3("?iso")
  a1((" "))
  c7([":terminology/ECO_0001055"]):::iri 
  c2([":source/Human_protein_atlas"]):::iri 
  f0[["not  "]]
  subgraph f0e0["Exists Clause"]
    e0v1 --":assignedBy"-->  e0c2
    e0v1("?ev"):::projected 
    e0c2([":source/Human_protein_atlas"]):::iri 
  end
  f0--EXISTS--> f0e0
  f0 --> v1
  f0 --> c1
  f0 --> c2
  v1 --":assignedBy"-->  c2
  v2 --":isoform"-->  v3
  v3 --":expressionProfile"-->  a1
  a1 --":evidence"-->  v1
  v1 --":evidenceCode"-->  c7