A set of SPARQL examples that are used in different SIB resources
Check there are no topological domains with no entry associated
PREFIX : <http://nextprot.org/rdf/>
PREFIX cv: <http://nextprot.org/rdf/terminology/>
select distinct ?topoac where {
?topo a :TopologicalDomain .
?topo :term ?topoac .
filter not exists {?member :isoform /:topology / :term ?topoac .}
}
order by ?topoac
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?member")
v3("?topo")
v1("?topoac"):::projected
a1((" "))
a2((" "))
c5([":TopologicalDomain"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --":isoform"--> e0a1
e0a1 --":topology"--> e0a2
e0a2 --":term"--> e0v2
e0v1("?member"):::projected
e0v2("?topoac"):::projected
e0a1((" ")):::projected
e0a2((" ")):::projected
end
f0--EXISTS--> f0e0
f0 --> v2
f0 --> c1
f0 --> a1
f0 --> c2
f0 --> a2
f0 --> c3
f0 --> v1
v2 --":isoform"--> a1
a1 --":topology"--> a2
a2 --":term"--> v1
v3 --"a"--> c5
v3 --":term"--> v1