sparql-examples

A set of SPARQL examples that are used in different SIB resources

View the Project on GitHub sib-swiss/sparql-examples

NXQ_00203

rq turtle/ttl

Proteins with a mature chain of from 300 to 400 residues

Use at

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)
}