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_09643

Check there are no entries with a variant annotation with an xref starting with rs that do not have evidence from dbSNP or UniProt

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 :reference /:accession ?xref.
  filter (regex(?xref, "^rs"))
  ?ev :assignedBy ?src.
  filter ( ?src not in (source:dbSNP,source:Uniprot))
}
:isoform
:variant
:evidence
:reference
:accession
:assignedBy
?entry
?ev
?src
?xref
?src != ':source/dbSNP'?src != ':source/Uniprot'
regex(?xref,'^rs')