A set of SPARQL examples that are used in different SIB resources
Check there are no entries with a variant annotation with the start greater than the sequence length
PREFIX : <http://nextprot.org/rdf/>
PREFIX cv: <http://nextprot.org/rdf/terminology/>
select distinct ?entry where {
?entry :isoform ?iso.
?iso :sequence /:length ?length.
?iso :variant ?var.
?var :start ?start.
filter ( ?start > ?length)
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?entry"):::projected
v4("?iso")
v2("?length")
v1("?start")
v5("?var")
a1((" "))
f0[["?start > ?length"]]
f0 --> v1
f0 --> v2
v3 --":isoform"--> v4
v4 --":sequence"--> a1
a1 --":length"--> v2
v4 --":variant"--> v5
v5 --":start"--> v1