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_00100

Proteins expressed in liver and that have COSMIC variants associated with liver/hepatic cancer

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 :detectedExpression/:term/:childOf cv:TS-0564.
  ?iso :variant /:evidence ?ev.
  ?ev :assignedBy source:Cosmic.
  ?ev :experimentalContext /:tissue cv:TS-0564.
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v1("?entry"):::projected 
  v3("?ev")
  v2("?iso")
  a1((" "))
  a2((" "))
  a3((" "))
  a4((" "))
  c5([":terminology/TS-0564"]):::iri 
  c9([":source/Cosmic"]):::iri 
  v1 --":isoform"-->  v2
  v2 --":detectedExpression"-->  a1
  a1 --":term"-->  a2
  a2 --":childOf"-->  c5
  v2 --":variant"-->  a3
  a3 --":evidence"-->  v3
  v3 --":assignedBy"-->  c9
  v3 --":experimentalContext"-->  a4
  a4 --":tissue"-->  c5