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_09681

Check there are no entries with a variant annotation with an allele count 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-count ?count.
  filter (?count = 0)
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v1("?count")
  v2("?entry"):::projected 
  v4("?ev")
  v3("?iso")
  a1((" "))
  f0[["?count = '0^^xsd:integer'"]]
  f0 --> v1
  v2 --":isoform"-->  v3
  v3 --":variant"-->  a1
  a1 --":evidence"-->  v4
  v4 --":allele-count"-->  v1