Plan, apply and roll back changes to a production ontology, with a blast radius report and a proof an auditor can re-check.
0001 · An inference is not an assertion
- Status: implemented for the OWL-RL family ·
InferenceTarget::Inferredwrites tohttps://open-ontologies.org/graph/inferred,serializewithholds that graph from the triple formats,onto_reasontakesinference_graph· opt-in, default unchanged · theowl-dltableaux path refuses the target rather than pretending to honour it · not done:onto_pack,onto_shaclandonto_queryhave not been told which dataset they want - Written: 2026-09-04
- Related: flaw hunt 30 Aug 2026 defect D2; the temporal named-graph work of issue #95, whose serialiser fix this reuses and narrows
The problem
reason merged materialised triples into the default graph with no marker. After a run,
SELECT DISTINCT ?g WHERE { GRAPH ?g { ?s ?p ?o } } returned empty and an inferred triple was
byte-identical in form to one a person had written. save then wrote them out: a source file of
8 triples came back as 9, newly asserting <http://ex.org/ghost> a <http://ex.org/Person>, which
nobody ever wrote and which is only true under a range entailment over a dangling reference.
The laundering was therefore not transient. It could be, and would be, published. For a tool whose subject is register integrity that is the wrong defect to be carrying.
Decisions
- A separate graph, not a marker triple. Both make the distinction recordable; they fail in opposite directions. A marker obliges every consumer to filter, and the consumer that forgets publishes an inference as an assertion. A separate graph means the consumer that forgets sees fewer triples and never wrong ones. Choose the defence whose failure mode is silence.
- The triple formats withhold the inference graph; the dataset formats keep it. This is the
part that actually closes the defect, and naming the graph alone would not have.
serializedeliberately flattens named graphs into the default graph for Turtle, RDF/XML and N-Triples, because that is the only thing a triple format can do (issue #95). Flattening the inference graph is exactly the laundering, so it is dropped instead. TriG, N-Quads and JSON-LD can carry the graph name, so they carry it and lose nothing. - Opt-in, and the default is untouched. Existing callers read inferences out of the default
graph,
onto_queryamong them. Flipping the default is a behaviour change for every downstream pipeline and is a separate decision, taken deliberately, not a side effect of fixing the provenance gap. owl-dlrefuses the target rather than silently ignoring it. The tableaux path materialises through its own code and has not been taught the graph. Accepting the flag and merging into the default graph anyway would leave a caller believing the inferences had been kept apart. An error naming the two profiles that do support it is the honest answer, and matches the discipline the SHACL layer already keeps for unimplemented constraint components.
Dead ends
- A marker triple on each inferred statement. Rejected on decision 1, and also because a marker on a triple has nowhere to live in RDF without reification, which changes the shape of the data to record a fact about it.
- Refusing to
saveat all after a reason run. Considered because it is the loudest possible signal. Rejected: it punishes the legitimate case, which is saving what you asserted, and the narrower rule already makes the wrong outcome impossible.
Open questions
onto_shaclandonto_querystill read the default graph. With the flag on, a shape now validates the asserted graph alone. That is arguably the more useful default, since validating the closure is what turns a genuine failure into a pass (defect D3), but it is a choice nobody has made explicitly and it should be made rather than inherited.onto_packwrites sorted N-Triples. A pack built after a reasoning run therefore now excludes the inferences. That is the safe direction and probably the right one, since a pack is a promotable artefact, but the manifest should say so rather than leaving it to be discovered.all_triples()was the hole in this decision, and it is closed. It reads the whole store including named graphs, so a second reasoning run consumed the first run's output as premises: OWL-RL is monotone, so the closure was unchanged andinferred_countcorrectly reported zero new triples, butinitial_triplesthen included inferences and no longer meant "what was asserted", andasserted.tsvlisted them as axioms. That made this decision protectsaveand not the certificate, which is not what it says. Since 15 September 2026 both certified paths readGraphStore::triples_outside(&[INFERRED_GRAPH])instead, and reportgraphs_readandgraphs_excluded.all_triples()is unchanged and still means every graph; its doc comment now says which callers must not use it. See TCB-8 indocs/trusted-computing-base.md.