sparql-examples

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

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

NXQ_09407

rq turtle/ttl

Check there are no entries with peptide mapping annotations with peptides of length 6 aa or less

Use at

PREFIX : <http://nextprot.org/rdf/>
PREFIX cv: <http://nextprot.org/rdf/terminology/>

select distinct ?entry where {
  ?entry :isoform / :peptideMapping /:position ?pmpos .
  ?pmpos :start ?start; :end ?end .
  filter((?end - ?start + 1) <= 6 )
}