Validation Pack: AOR-5, flat concept conditions

Unit: applied-ontology-readiness Plan section: Phase B Decisions: ADR-A89 items 1, 2 and 4 (SPARQL), ADR-A87, both Proposed

Invariant

A condition matching by ExactMatch or SetMembership compiles through the shared IR, and its SPARQL artefact decides every question as the ADR-A87 table says. It never denies for absent evidence (ADR-A24).

Test cases

ID Given / When / Then Level +/-
AOR5-01 a set condition with three required concepts, one also excluded / compiled / plan holds both sets, sorted L1 +
AOR5-02 the condition stripped of concepts / compiled / refused L1 -
AOR5-03 a non-default wildcard policy / compiled / refused L1 -
AOR5-04 an interval strategy / compiled as a concept plan / refused L1 -
AOR5-05 candidate in the required set / SPARQL executed / Permitted L1 +
AOR5-06 candidate outside every required concept / executed / Denied L1 -
AOR5-07 candidate both required and excluded / executed / Denied (L10) L1 -
AOR5-08 question with no candidate / executed / Undetermined L1 -
AOR5-09 question with two candidates / executed / Undetermined L1 -
AOR5-10 artefact / inspected / plan typed exe:ConceptMatchPlan, exe:derivedFromVocabularyNode names every concept L1 +
AOR5-11 one plan compiled twice / compared / isomorphic L2 +
AOR5-12 condition-taxonomy.ttl’s exact condition plus two questions / executed / Permitted and Denied L1 +

Every decision case runs the generated query with rdflib’s SPARQL engine.

One command

mise run check:mork-compilers

Pass: 27 passed (the 15 existing compiler tests and the 12 above). Also run mise run check:ontology-catalog, which includes the Eligibility example tests.

Artefacts to inspect

Adversarial probe (run by the agent)

Dropping the exclusion clause failed AOR5-07. Letting two candidates through (< 1 for != 1) failed AOR5-09.

Deviations from the plan

Deliberate non-coverage