A set of SPARQL examples that are used in different SIB resources
Check there are no entries with the keyword KW-0225 (Disease mutation) that do not have a variant responsible for a disease
PREFIX : <http://nextprot.org/rdf/>
PREFIX cv: <http://nextprot.org/rdf/terminology/>
select distinct ?entry where {
?entry :isoform /:keyword /:term cv:KW-0225.
filter not exists {?entry :isoform /:variant /:disease ?dis.}
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?dis")
v1("?entry"):::projected
a3((" "))
a4((" "))
a1((" "))
a2((" "))
c6([":terminology/KW-0225"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --":isoform"--> e0a1
e0a1 --":variant"--> e0a2
e0a2 --":disease"--> e0v2
e0v2("?dis"):::projected
e0v1("?entry"):::projected
e0a1((" ")):::projected
e0a2((" ")):::projected
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> c1
f0 --> a1
f0 --> c2
f0 --> a2
f0 --> c3
f0 --> v2
v1 --":isoform"--> a1
a1 --":variant"--> a2
a2 --":disease"--> v2
v1 --":isoform"--> a3
a3 --":keyword"--> a4
a4 --":term"--> c6