Skip to content
Alpha: see what works today →
Menu

Named question about profile

Which judgments name it

An About or a NotAbout judgment names a patient profile as its member and says whether it is the subject's; until an About counts that no counting NotAbout outranks, the records that name the profile are in no view. Rows come in the order the judgments were made.

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 DISTINCT ?profile ?profileLabel ?made ?judgment ?judgmentLabel ?verdict ?counts
WHERE {
  ?version cascade:patient ?profile .
  ?judgment a cascade:Judgment ; prov:hadMember ?profile ; prov:generatedAtTime ?made .
  OPTIONAL { ?judgment cascade:verdict ?verdict }
  OPTIONAL { ?judgment cascade:countsUnderLens ?counted }
  BIND (COALESCE(?counted, false) AS ?counts)
  OPTIONAL { ?profile rdfs:label ?profileLabel }
  OPTIONAL { ?judgment rdfs:label ?judgmentLabel }
}
ORDER BY ?profileLabel ?profile ?made ?judgment

Terms it reads

cascade:Judgment · cascade:countsUnderLens · cascade:patient · 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

4 rows, as Alex Rivera's explorer shows them.

profilemadejudgmentverdictcounts
Patient profile · Larkspur Valley Health · first received 2026-10-142026-10-14T15:42:30ZAbout · the patient · 2026-10-14 · a patient profilecascade:Abouttrue
Patient profile · Larkspur Valley Health · first received 2027-03-182027-03-18T12:00:30ZAbout · the patient · 2027-03-18 · a patient profilecascade:Abouttrue
Patient profile · Meridian Health System · first received 2026-09-012026-09-01T10:00:30ZAbout · the patient · 2026-09-01 · a patient profilecascade:Abouttrue
Patient profile · Meridian Health System · first received 2027-02-102027-02-10T17:21:30ZAbout · the patient · 2027-02-10 · a patient profilecascade:Aboutfalse

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