sparql-examples

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

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

NXQ_09688

rq turtle/ttl

Check there are no entries with a variant annotation with evidence from gnomAD that do not have a homozygote count

Use at

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

select distinct ?entry where {
  ?entry :isoform /:variant /:evidence ?ev.
  ?ev :assignedBy source:gnomAD.
  filter not exists {?ev :homozygote-count ?count.}
}
:homozygote-count
:isoform
:variant
:evidence
:assignedBy
EXISTS
Exists Clause
:homozygote-count
?count
?ev
?count
?entry
?ev
:source/gnomAD
not
c1