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