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_00221

Proteins with RNA-seq observed expression "not detected" and IHC observed expression : "high" (same tissue or children)

Use at

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

SELECT DISTINCT ?entry WHERE {
 ?entry :isoform ?iso .
 ?iso :expression ?exp, ?exp2.
 ?exp :term ?tiss .
 ?exp :negativeEvidence / :evidenceCode nextprot_cv:ECO_0000295. # RNA-seq
 ?exp2 :quality :GOLD .
 ?exp2 :term ?tiss2 .
 ?exp2 :evidence ?evi2.
 ?evi2 :evidenceCode nextprot_cv:ECO_0001055. # IHC
 ?evi2 :observedExpression :High.
 ?tiss2 :childOf ?tiss . # same tissue or children
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v1("?entry"):::projected 
  v7("?evi2")
  v3("?exp")
  v4("?exp2")
  v2("?iso")
  v5("?tiss")
  v6("?tiss2")
  a1((" "))
  c6([":terminology/ECO_0000295"]):::iri 
  c10([":terminology/ECO_0001055"]):::iri 
  c12([":High"]):::iri 
  c8([":GOLD"]):::iri 
  v1 --":isoform"-->  v2
  v2 --":expression"-->  v3
  v2 --":expression"-->  v4
  v3 --":term"-->  v5
  v3 --":negativeEvidence"-->  a1
  a1 --":evidenceCode"-->  c6
  v4 --":quality"-->  c8
  v4 --":term"-->  v6
  v4 --":evidence"-->  v7
  v7 --":evidenceCode"-->  c10
  v7 --":observedExpression"-->  c12
  v6 --":childOf"-->  v5