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_09687

Check there are no entries whose gene is on chromosome unknown with a variant annotation with evidence from gnomAD

Use at

PREFIX : <http://nextprot.org/rdf/>
PREFIX cv: <http://nextprot.org/rdf/terminology/>
PREFIX source: <http://nextprot.org/rdf/source/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>

select distinct ?entry where {
  ?entry :gene / :chromosome "unknown"^^xsd:string.
  ?entry :isoform ?iso.
  ?iso :variant /:evidence ?ev.
  ?ev :assignedBy source:gnomAD.
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v1("?entry"):::projected 
  v3("?ev")
  v2("?iso")
  a1((" "))
  a2((" "))
  c8([":source/gnomAD"]):::iri 
  c3(["unknown"]):::literal 
  v1 --":gene"-->  a1
  a1 --":chromosome"-->  c3
  v1 --":isoform"-->  v2
  v2 --":variant"-->  a2
  a2 --":evidence"-->  v3
  v3 --":assignedBy"-->  c8