sparql-examples

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

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

neXtProt/NXQ_09634

Check there are no entries with a variant annotation with the end less than 1

Use at

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

select distinct ?entry where {
  ?entry :isoform /:variant ?var.
  ?var :end ?end.
  filter ( ?end < 1)
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v1("?end")
  v2("?entry"):::projected 
  v3("?var")
  a1((" "))
  f0[["?end < '1^^xsd:integer'"]]
  f0 --> v1
  v2 --":isoform"-->  a1
  a1 --":variant"-->  v3
  v3 --":end"-->  v1