A set of SPARQL examples that are used in different SIB resources
Check there are no entries with expression profile annotations with evidence from EST which are NOT from Bgee
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 /:evidence ?ev.
?ev :evidenceCode cv:ECO_0000009. # EST
filter not exists { ?ev :assignedBy source:Bgee }
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?entry"):::projected
v1("?ev")
v3("?iso")
a1((" "))
c2([":source/Bgee"]):::iri
c7([":terminology/ECO_0000009"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --":assignedBy"--> e0c2
e0v1("?ev"):::projected
e0c2([":source/Bgee"]):::iri
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> c1
f0 --> c2
v1 --":assignedBy"--> c2
v2 --":isoform"--> v3
v3 --":expressionProfile"--> a1
a1 --":evidence"--> v1
v1 --":evidenceCode"--> c7