sparql-examples

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

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

NXQ_09640

rq turtle/ttl

Check there are no entries with variant annotations with evidence from dbSNP which are synonymous

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 ?iso.
  ?iso :variant ?variant.
  ?variant :start ?start.
  ?variant :end ?end.
  ?variant :original ?ori.
  ?variant :variation ?var.
  ?variant :evidence /:assignedBy  source:dbSNP.
  filter ( ?start = ?end && ?ori = ?var )
}
:isoform
:variant
:start
:end
:original
:variation
:evidence
:assignedBy
?end
?entry
?iso
?ori
?start
?var
?variant
:source/dbSNP
?start = ?end?ori = ?var