A set of SPARQL examples that are used in different SIB resources
Proteins with a mature chain of from 300 to 400 residues
PREFIX : <http://nextprot.org/rdf/>
SELECT DISTINCT ?entry WHERE {
?entry :isoform ?iso.
?iso :matureProtein [ :start ?mstart ; :end ?mend].
filter (?mend-?mstart > 0). # chain fully defined
bind(?mend - ?mstart as ?mlen)
filter(?mlen >= 300 && ?mlen <= 400)
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?entry"):::projected
v5("?iso")
v2("?mend")
v6("?mlen")
v3("?mstart")
a1((" "))
f0[["?mlen >= '300^^xsd:integer'?mlen <= '400^^xsd:integer'"]]
f0 --> v6
f1[["?mend - ?mstart > '0^^xsd:integer'"]]
f1 --> v2
f1 --> v3
v4 --":isoform"--> v5
a1 --":start"--> v3
a1 --":end"--> v2
v5 --":matureProtein"--> a1
bind2[/"?mend - ?mstart"/]
v2 --o bind2
v3 --o bind2
bind2 --as--o v6