A set of SPARQL examples that are used in different SIB resources
Proteins which have genes of length greater than 2 million bp
PREFIX : <http://nextprot.org/rdf/>
SELECT DISTINCT ?entry WHERE {
?entry :gene / :length ?l.
filter (?l > 2000000)
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?entry"):::projected
v1("?l")
a1((" "))
f0[["?l > '2000000^^xsd:integer'"]]
f0 --> v1
v2 --":gene"--> a1
a1 --":length"--> v1