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_09639

Check there are no entries with variant annotations with evidence from COSMIC 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:Cosmic.
  filter ( ?start = ?end && ?ori = ?var )
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v2("?end")
  v5("?entry"):::projected 
  v6("?iso")
  v3("?ori")
  v1("?start")
  v4("?var")
  v7("?variant")
  a1((" "))
  c9([":source/Cosmic"]):::iri 
  f0[["?start = ?end?ori = ?var"]]
  f0 --> v1
  f0 --> v2
  f0 --> v3
  f0 --> v4
  v5 --":isoform"-->  v6
  v6 --":variant"-->  v7
  v7 --":start"-->  v1
  v7 --":end"-->  v2
  v7 --":original"-->  v3
  v7 --":variation"-->  v4
  v7 --":evidence"-->  a1
  a1 --":assignedBy"-->  c9