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_09683

Check there are no entries with a variant annotation with an allele number of 0

Use at

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

select distinct ?entry where {
  ?entry :isoform ?iso.
  ?iso :variant /:evidence ?ev.
  ?ev :allele-number ?allele.
  filter (?allele = 0)
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v1("?allele")
  v2("?entry"):::projected 
  v4("?ev")
  v3("?iso")
  a1((" "))
  f0[["?allele = '0^^xsd:integer'"]]
  f0 --> v1
  v2 --":isoform"-->  v3
  v3 --":variant"-->  a1
  a1 --":evidence"-->  v4
  v4 --":allele-number"-->  v1