Skip to content
Alpha: see what works today →
Menu

Named question about record

Which judgments name it

A judgment names records as its members: that two are the same, that they differ, or that one is wrong. Rows come in the order a person made the judgments, after a matcher's judgments, which carry no time. Counts says whether one counts under the lens the pod was built with; one that does not was retracted, replaced by a judgment not itself retracted, made with a reference table since replaced, or asserted with a rule query no current rule list runs.

The query

PREFIX cascade: <https://ns.cascadeprotocol.org/cascade#>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>

SELECT ?record ?recordLabel ?made ?judgment ?judgmentLabel ?verdict ?counts
WHERE {
  ?record a cascade:Record .
  ?judgment a cascade:Judgment ; prov:hadMember ?record .
  OPTIONAL { ?judgment prov:generatedAtTime ?made }
  OPTIONAL { ?judgment cascade:verdict ?verdict }
  OPTIONAL { ?judgment cascade:countsUnderLens ?counted }
  BIND (COALESCE(?counted, false) AS ?counts)
  OPTIONAL { ?record rdfs:label ?recordLabel }
  OPTIONAL { ?judgment rdfs:label ?judgmentLabel }
}
ORDER BY ?recordLabel ?record ?made ?judgment

Terms it reads

cascade:Judgment · cascade:Record · cascade:countsUnderLens · cascade:verdict · prov:generatedAtTime · prov:hadMember · rdfs:label

Rules and decision notes that name it

No rule or decision note writes its path.

Its rows on Alex Rivera's pod

The first 10 of 33 rows, as Alex Rivera's explorer shows them. Every row of every question is in answers.json.

recordmadejudgmentverdictcounts
Allergy · Penicillin G · Meridian Health System · alg-pcn-12027-04-02T20:00:00ZSame · the patient · 2027-04-02 · Penicillincascade:Sametrue
Allergy · Penicillin · Larkspur Valley Health · al-8237461Same · Cascade matcher · 5f006452 · Penicillincascade:Sametrue
Allergy · Penicillin · Larkspur Valley Health · al-82374612027-04-02T20:00:00ZSame · the patient · 2027-04-02 · Penicillincascade:Sametrue
Allergy · Penicillin · Larkspur Valley Health · lv-alg-101Same · Cascade matcher · 5f006452 · Penicillincascade:Sametrue
Allergy · Penicillin · Larkspur Valley Health · lv-alg-1012027-04-02T20:00:00ZSame · the patient · 2027-04-02 · Penicillincascade:Sametrue
Allergy · Sulfamethoxazole · Larkspur Valley Health · al-8237462Same · Cascade matcher · 761cfeb7 · Sulfamethoxazolecascade:Sametrue
Allergy · Sulfamethoxazole · Larkspur Valley Health · al-82374622026-12-02T19:00:00ZSame · the patient · 2026-12-02 · Sulfamethoxazolecascade:Sametrue
Allergy · Sulfamethoxazole · Larkspur Valley Health · lv-alg-102Same · Cascade matcher · ee6f88c0 · Sulfamethoxazolecascade:Sametrue
Allergy · Sulfamethoxazole · Meridian Health System · alg-sulfa-1Same · Cascade matcher · 761cfeb7 · Sulfamethoxazolecascade:Sametrue
Allergy · Sulfamethoxazole · Meridian Health System · alg-sulfa-1Same · Cascade matcher · ee6f88c0 · Sulfamethoxazolecascade:Sametrue

queries/questions/record/Which judgments name it.rq on GitHub ↗