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_09632

Check there are no entries with a variant annotation with the start 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 :start ?start.
  filter ( ?start < 1)
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v2("?entry"):::projected 
  v1("?start")
  v3("?var")
  a1((" "))
  f0[["?start < '1^^xsd:integer'"]]
  f0 --> v1
  v2 --":isoform"-->  a1
  a1 --":variant"-->  v3
  v3 --":start"-->  v1