A set of SPARQL examples that are used in different SIB resources
Proteins expressed in liver and that have COSMIC variants associated with liver/hepatic cancer
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