Wink Pings

Git diff shows only one line, but it produces 901 inferences

A standard RDFS declaration has a text diff of only one line, yet the reasoner derives 901 new conclusions. Open Ontologies wants to fill in the ignored step between plan and apply for knowledge graphs, and also lets third parties independently verify reasoning with a Lean checker.

Git diff shows only one line, but the semantic layer may gain 901 additional inferences.

This is the actual number on the Open Ontologies demo page. The tool is written in Rust as a single binary, under the MIT license, and the author Fabio Rovai positions it as Terraform for knowledge graphs, but emphasizes one thing: it is not an ontology editor—Protégé is still the place to draw class hierarchies. What you use it for is checks before changes go live: what this change will infer, how many triples it affects, how risky it is, and how to roll back if something goes wrong.

Asserted edges are added by humans, inferred edges are generated by the engine, and the Lean 4 checker verifies certificates

In the demo, someone adds a declaration to base.ttl, ex:hasParent rdfs:domain ex:Person. This means any individual with the hasParent property belongs to the Person class. The text diff is only one line. The reported blast radius is 0 triples affected, with a risk score of low. The next line of the same report says: the owl-rl rule set derived 901 new conclusions in 0.04 seconds.

Blast radius is zero, yet there are 901 new inferences. The two numbers do not contradict each other; they are talking about different layers. The text layer has nothing added or removed, but in the semantic layer every person in the graph who already has a hasParent relationship is inferred to be of type Person. You changed one class declaration line, but you moved the type membership of hundreds of individuals.

Git diff tells you which characters changed; the reasoner tells you what those characters mean. You already have the former; the latter is the gap this tool wants to fill.

The loop it offers is plan, apply, watch drift, rollback. In the plan phase, besides listing inferences, it can also calculate blast radius and a risk score. Someone in the replies asked whether the preview would explain why each inference holds. The answer is the derivations file derivations.tsv, where each line gives the rule name, the conclusion, and the premises used for that conclusion. The checker re-derives line by line, confirming that each step either cites an asserted fact or cites an earlier derivation line.

An ordinary reasoner says “it holds”; this one also gives you a certificate

After an ordinary reasoner gives an answer, the guarantee you can get is that the reasoner says so. A second reasoner can cross-validate, but when the two disagree, you only know that one of them is wrong. Open Ontologies gives you one more thing: a certificate. asserted.tsv records premises, and derivations.tsv records rules, conclusions, and premises line by line. An independent Lean 4 checker re-derives each line, confirming that each line’s conclusion comes either directly from assertions or from earlier derivation lines. The checker does not share engine code.

Running the Lean certificate checker in the terminal: three derivation edges on the vendor graph are accepted, and one forged conclusion is rejected

There is another step in the demo: someone changes Drink in a conclusion to Beer, leaving the premises untouched. The checker exits with code 1 and points out the violated rule and the specific line number. This mechanism separates two things: whether facts are added correctly, and whether inferences are derived correctly. You do not need to trust the ontology author, the Rust engine, or even the checker author, because the certificate and checker can be handed to a third party to rerun.

One commenter put it more directly: the Lean checker is the key to making this credible; without it, an agent editing an ontology is just vibe ontology. Another comment asked: a hallucinated fact fanning out into 901 conclusions is exactly the scenario that needs human approval, like terraform apply in production. In the tool’s design, plan and apply are separate, but how far an agent can go via MCP depends on how the caller configures it.

What it found on real data

This is not just a toy demo. HQDM published two files, an RDFS version and an OWL version. The tool ran different checks on the two files. In the RDFS file, there are 23 terms used as classes but never declared, 12 rdfs:range declarations pointing to relationships rather than classes, and 13 pairs of names that differ only by a trailing underscore. The OWL file passes three structural checks but is internally incoherent: 190 named classes are satisfiable, 39 are unsatisfiable, and HermiT also judges the same 39 to be unsatisfiable.

Audit results for the two HQDM files, with undeclared classes and unsatisfiable classes marked in red

The README explicitly states that this image does not constitute proof; it is just the second run of the same machine on someone else’s files. The counts are recomputed by tests. This style of presenting conclusions and evidence separately appears repeatedly in the project.

What it explicitly does not do

The README draws boundaries in several places. The tool is not an ontology editor. The default storage is in-memory mode; if you do not set OPEN_ONTOLOGIES_STORAGE_MODE=persistent, then after load and then reason, it starts from empty storage and can prove nothing. The tool will warn you, but warnings are easy to overlook in the output. Another pitfall is that --data-dir is a command-line flag rather than an environment variable; running the demo without it writes to ~/.open-ontologies.

Certificate digest binding also has limits. asserted.sha256 records the digest of the asserted bytes. If the storage is changed and then changed back, the digest is the same and the checker still passes. The digest binds to bytes, not to world state. The command itself states this limitation.

There is also a statement from the author: trust claims that rely on transitivity, such as a certain match type, can be downgraded through inference checks, but the check only compares the positions of two terms in their respective hierarchies, not their meanings. Two terms that are siblings under a common parent look the same. So it can refute stronger matching claims; it never makes a claim stronger.

How to use it

There are several installation methods: download the binary directly on macOS and Linux, or docker pull ghcr.io/fabio-rovai/open-ontologies:latest. Running open-ontologies serve starts an MCP service, which Claude Code and Cursor can connect to. Text diff is responsible for telling you which characters changed; this tool is responsible for telling you what those characters grew into in the graph.

Terraform lets people see how infrastructure will change before apply. This tool wants to let people see how knowledge will grow before apply. Whether 901 inferences are a safety signal or a risk signal depends on who added that fact and whether anyone looked at the plan. It does not make that judgment for people; it just puts the information needed for judgment before apply.

发布时间: 2026-11-30 21:29