A set of SPARQL examples that are used in different SIB resources
Check there are no entries with expression profile annotations with evidence from Bgee to an anatomy term which is different from the anatomy term in the experimental context
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 ?exp.
?exp :term ?term1.
?exp :evidence ?ev.
?ev :assignedBy source:Bgee.
?ev :experimentalContext /:tissue ?term2.
filter (?term1 != ?term2)
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?entry"):::projected
v6("?ev")
v5("?exp")
v4("?iso")
v1("?term1")
v2("?term2")
a1((" "))
c6([":source/Bgee"]):::iri
f0[["?term1 != ?term2"]]
f0 --> v1
f0 --> v2
v3 --":isoform"--> v4
v4 --":expressionProfile"--> v5
v5 --":term"--> v1
v5 --":evidence"--> v6
v6 --":assignedBy"--> c6
v6 --":experimentalContext"--> a1
a1 --":tissue"--> v2