Skip to content
Alpha: see what works today →
Menu

Named question about pod

What each report says of a variant

Read from the view as an app would: one row for each interpretation entry that names the variant it interprets, newest first within a variant. ?report is the interpretation's entry and ?variant the variant's entry, each as the other pod questions give an entry's IRI; ?classification is the cascade: IRI of the ACMG value the report states, none for a report whose answer is not one of the five, and ?date the day it was issued, or its year or month where the source wrote no day, ordered by the date as written. ?lab is the organization record the view attributes the report to, none for a report that names no lab, and ?labName that record's current name.

The query

PREFIX cascade: <https://ns.cascadeprotocol.org/cascade#>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX pav: <http://purl.org/pav/>
PREFIX prov: <http://www.w3.org/ns/prov#>

SELECT DISTINCT ?report ?variant ?classification ?date ?lab ?labName
WHERE {
  ?report cascade:subjectVariant ?variant ; cascade:entryMember [] .
  OPTIONAL { ?report cascade:acmgClassification ?classification }
  OPTIONAL { ?report cascade:variantInterpretationDate ?date }
  OPTIONAL { ?report prov:wasAttributedTo ?lab .
             OPTIONAL { ?lab pav:hasCurrentVersion/foaf:name ?labName } }
}
ORDER BY ?variant DESC(STR(?date)) ?report

Terms it reads

cascade:acmgClassification · cascade:entryMember · cascade:subjectVariant · cascade:variantInterpretationDate · pav:hasCurrentVersion · prov:wasAttributedTo

Rules and decision notes that name it

No rule or decision note writes its path.

Its rows on Alex Rivera's pod

Alex Rivera's pod gives this question no rows. Open it in Alex Rivera's explorer.

queries/questions/pod/What each report says of a variant.rq on GitHub ↗