A set of SPARQL examples that are used in different SIB resources
Check there are no entries that have an end position which is less than 0
PREFIX : <http://nextprot.org/rdf/>
PREFIX cv: <http://nextprot.org/rdf/terminology/>
select distinct ?entry where {
?entry :gene ?gene.
?gene :end ?end.
filter (?end< 0 )
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?end")
v2("?entry"):::projected
v3("?gene")
f0[["?end < '0^^xsd:integer'"]]
f0 --> v1
v2 --":gene"--> v3
v3 --":end"--> v1