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_00222

Proteins with both RNA-seq expression and observed IHC expression "high" in brain or one of its subparts

Use at

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

SELECT DISTINCT ?entry WHERE {
 ?entry :isoform ?iso .
 ?iso :expression ?exprna, ?expihc.
 ?exprna :term ?rnatiss .
 ?exprna :evidence ?evirna.
 ?evirna :observedExpression :Positive.
 ?evirna :evidenceCode nextprot_cv:ECO_0000295. # RNA-seq
 ?rnatiss :childOf nextprot_cv:TS-0095. #brain
 ?expihc :quality :GOLD .
 ?expihc :term ?ihctiss .
 ?expihc :evidence ?eviihc.
 ?eviihc :evidenceCode nextprot_cv:ECO_0001055. #IHC
 ?eviihc :observedExpression :High.
 ?ihctiss :childOf ?rnatiss .
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v1("?entry"):::projected 
  v8("?eviihc")
  v6("?evirna")
  v4("?expihc")
  v3("?exprna")
  v7("?ihctiss")
  v2("?iso")
  v5("?rnatiss")
  c6([":Positive"]):::iri 
  c8([":terminology/ECO_0000295"]):::iri 
  c13([":terminology/ECO_0001055"]):::iri 
  c14([":High"]):::iri 
  c12([":GOLD"]):::iri 
  c10([":terminology/TS-0095"]):::iri 
  v1 --":isoform"-->  v2
  v2 --":expression"-->  v3
  v2 --":expression"-->  v4
  v3 --":term"-->  v5
  v3 --":evidence"-->  v6
  v6 --":observedExpression"-->  c6
  v6 --":evidenceCode"-->  c8
  v5 --":childOf"-->  c10
  v4 --":quality"-->  c12
  v4 --":term"-->  v7
  v4 --":evidence"-->  v8
  v8 --":evidenceCode"-->  c13
  v8 --":observedExpression"-->  c14
  v7 --":childOf"-->  v5