Skip to content
Alpha: see what works today →
Menu

Named question about judgment

Who judged what

Everything each judgment says: when a person made it, by whom and in what role, its verdict, what it names, the reason given, any judgment it replaces, and, for a matcher judgment, each rule list version it is asserted under, since a matcher judgment carries no time; and each person's retraction, an activity, with the judgment it invalidated and no verdict. A judgment is never edited; a later one replaces it, or a retraction takes it back.

The query

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

SELECT DISTINCT ?judgment ?judgmentLabel ?made ?verdict ?author ?authorLabel ?role ?member ?memberLabel ?reason
       ?replaces ?replacesLabel ?retracts ?retractsLabel ?assertedUnder
WHERE {
  { ?judgment a cascade:Judgment ; prov:wasAttributedTo ?author .
    OPTIONAL { ?judgment prov:generatedAtTime ?made }
    OPTIONAL { ?judgment rdfs:label ?judgmentLabel }
    OPTIONAL { ?author rdfs:label ?authorLabel }
    OPTIONAL { ?judgment cascade:verdict ?verdict }
    OPTIONAL { ?judgment prov:wasGeneratedBy/prov:qualifiedAssociation [ prov:agent ?author ; prov:hadRole ?role ] }
    OPTIONAL { ?judgment prov:hadMember ?member .
               OPTIONAL { ?member rdfs:label ?memberLabel } }
    OPTIONAL { ?judgment dct:description ?reason }
    OPTIONAL { ?judgment dct:replaces ?replaces .
               OPTIONAL { ?replaces rdfs:label ?replacesLabel } }
    OPTIONAL { ?assertion cascade:assertedJudgment ?judgment ; cascade:assertedUnderRuleListVersion ?assertedUnder } }
  UNION
  { ?judgment a prov:Activity ; prov:invalidated ?retracts ; prov:wasAssociatedWith ?author .
    OPTIONAL { ?judgment prov:startedAtTime ?made }
    OPTIONAL { ?judgment rdfs:label ?judgmentLabel }
    OPTIONAL { ?author rdfs:label ?authorLabel }
    OPTIONAL { ?judgment prov:qualifiedAssociation [ prov:agent ?author ; prov:hadRole ?role ] }
    OPTIONAL { ?judgment dct:description ?reason }
    OPTIONAL { ?retracts rdfs:label ?retractsLabel } }
}
ORDER BY ?made ?judgmentLabel ?judgment ?memberLabel ?member ?role ?replaces ?retracts ?assertedUnder

Terms it reads

cascade:Judgment · cascade:assertedJudgment · cascade:assertedUnderRuleListVersion · cascade:verdict · dct:description · dct:replaces · prov:Activity · prov:agent · prov:generatedAtTime · prov:hadMember · prov:hadRole · prov:invalidated · prov:qualifiedAssociation · prov:startedAtTime · prov:wasAssociatedWith · prov:wasAttributedTo · prov:wasGeneratedBy · 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 39 rows, as Alex Rivera's explorer shows them. Every row of every question is in answers.json.

judgmentverdictauthormemberassertedUnder
Same · Cascade matcher · 128da4fd · Asthmacascade:SameCascade matcherCondition · Asthma · Larkspur Valley Health · lv-cond-202urn:uuid:ae65e38f-9301-4831-b0b2-f54005d465e1
Same · Cascade matcher · 128da4fd · Asthmacascade:SameCascade matcherCondition · Asthma · Larkspur Valley Health · pr-30018urn:uuid:ae65e38f-9301-4831-b0b2-f54005d465e1
Same · Cascade matcher · 30cdc218 · Influenza, seasonalcascade:SameCascade matcherImmunization · Influenza, seasonal · Larkspur Valley Health · im-5501urn:uuid:ae65e38f-9301-4831-b0b2-f54005d465e1
Same · Cascade matcher · 30cdc218 · Influenza, seasonalcascade:SameCascade matcherImmunization · Influenza, seasonal · Meridian Health System · imm-flu-2025urn:uuid:ae65e38f-9301-4831-b0b2-f54005d465e1
Same · Cascade matcher · 441ab5d9 · Colonoscopycascade:SameCascade matcherProcedure · Colonoscopy · Larkspur Valley Health · lv-proc-401urn:uuid:ae65e38f-9301-4831-b0b2-f54005d465e1
Same · Cascade matcher · 441ab5d9 · Colonoscopycascade:SameCascade matcherProcedure · Colonoscopy · Larkspur Valley Health · px-55120urn:uuid:ae65e38f-9301-4831-b0b2-f54005d465e1
Same · Cascade matcher · 441ab5d9 · Colonoscopycascade:SameCascade matcherProcedure · Colonoscopy · Meridian Health System · proc-colonoscopy-1urn:uuid:ae65e38f-9301-4831-b0b2-f54005d465e1
Same · Cascade matcher · 5f006452 · Penicillincascade:SameCascade matcherAllergy · Penicillin · Larkspur Valley Health · al-8237461urn:uuid:ae65e38f-9301-4831-b0b2-f54005d465e1
Same · Cascade matcher · 5f006452 · Penicillincascade:SameCascade matcherAllergy · Penicillin · Larkspur Valley Health · lv-alg-101urn:uuid:ae65e38f-9301-4831-b0b2-f54005d465e1
Same · Cascade matcher · 761cfeb7 · Sulfamethoxazolecascade:SameCascade matcherAllergy · Sulfamethoxazole · Larkspur Valley Health · al-8237462urn:uuid:ae65e38f-9301-4831-b0b2-f54005d465e1

queries/questions/judgment/Who judged what.rq on GitHub ↗