Open Ontologies is a production-oriented ontology engineering tool, written in Rust and distributed as a single binary. Its core goal is to let users plan changes on production ontologies, see all consequences before applying them, and provide reviewers with proofs that can be independently re-checked without trust.
Purpose
The tool is used for lifecycle management of ontology changes: planning changes, applying changes, monitoring drift, certifying engine-derived results, and rolling back when a change is wrong. It emphasizes semantic-level impact analysis rather than textual diffs. The tool itself is not an ontology editor; for drawing class hierarchies, tools such as Protégé should be used; Open Ontologies is used before changes enter production.
Main capabilities
- Semantic change plans: A Terraform-like plan/apply/rollback workflow, but the plan is semantic rather than syntactic. Textual diffs (such as git diff) cannot show semantic consequences; this tool can.
- Impact scope reports: Show all consequences of a change, including the large number of new entailments that a single triple change may bring.
- Proof certificates: Each run generates a certificate containing two tab-separated files (asserted.tsv and derivations.tsv), recording assertions and derivation steps. The certificate can be verified by an independent Lean 4 checker, and the checker has a soundness theorem (OOCert.certificate_sound). Forged conclusions are rejected and the violated rule is indicated.
- Certificate review: Anyone holding the certificate files can independently review them at any time, without an instance of the software or a network. The command is
oo-cert asserted.tsv derivations.tsv. - Digest binding: The certificate records the digest of the assertions used (asserted.sha256); a user holding the store can runcertificate-check <dir>to verify whether the digest matches. This command states its limitations: the digest binds the certificate to bytes, not the certificate to the state of the world. - Reasoning and validation: Supports RDFS/OWL reasoning and can detect inconsistencies. For example, on the HQDM file, the tableaux engine found 190 satisfiable named classes and 39 unsatisfiable classes, consistent with HermiT's results (but HermiT's results in this repository are only an opinion and do not constitute proof).
- Crosswalk validation: For SSSOM-format mappings, the engine reasons over both sides separately, compares entailments through the mappings, and reports the tightest match type supported by the evidence. Unsupported exactMatch is downgraded with a reason, and terms not covered by the crosswalk are listed. If a translated statement causes a conflict in the target, it is reported as a disagreement requiring human resolution.
- Module extraction:
onto_module_extractcomputes signature-based syntactic locality modules, guaranteeing that every entailment of the full ontology over the signature is also an entailment of the subset. This guarantee cites the theorem of Cuenca Grau et al. (JAIR 2008), but the tool does not machine-check it, and the report explicitly states this. On the repository's pizza ontology, the module is 238 of 1345 axioms, with 0 conclusions lost in the run (2583 differences in total). - Conservativity checking:
onto_conservative_checkanswers whether newly added axioms change any conclusions over names already used by the ontology. - Matrix certificates:
oo-matcertrecomputes the matrix product from the definition, and on acceptance prints MatCert.mul_of_check. Integers only. Freivalds' algorithm is cheaper but probabilistic, so it remains an opinion printed with bounds. Floating point reports a tolerance, because proofs over the reals do not apply to IEEE-754. - MCP server: The
servecommand starts an MCP server, using JSON-RPC over stdin/stdout, and can integrate with clients such as Claude and Cursor.
Usage
The tool is distributed as a single binary. Basic workflow: plan changes, apply changes, monitor drift, certify derivations, roll back. CLI subcommands such as open-ontologies validate <file.ttl>. After the MCP server starts, it may appear to have stopped while it is actually waiting for a client; this is normal behavior.
Connecting Claude: For Claude Code, in ~/.claude/settings.json add the configuration block; for Claude Desktop, in ~/Library/Application Support/Claude/claude_desktop_config.json add. After restarting the client,onto_* tools are available. For configuration of Cursor, Windsurf, Zed, and VS Code, see docs/quickstart.md.
Certificate checking:oo-cert asserted.tsv derivations.tsv, exit code 0 means accepted. Forging the conclusion will result in exit code 1 and point out the rule.
Applicable scenarios
- Change management of a production ontology, where the scope of impact needs to be understood in advance.
- Need to provide auditors with independently reviewable proof rather than relying on trust.
- Quality validation of ontology alignment and cross-mapping.
- Modular extraction and conservativity checking.
- Ontology operations integrated with AI clients (Claude, Cursor, etc.) via MCP.
Limitations
- Not an ontology editor, and not used for drawing class hierarchies.
- Storage is in memory by default unless
OPEN_ONTOLOGIES_STORAGE_MODE=persistentis set. After loading, reasoning starts from empty storage, may not be able to authenticate anything, and the tool will give a warning but it is easy to overlook. --data-diris a flag rather than an environment variable; when unspecified, the demo will write to~/.open-ontologies, which may affect real work.- Some tools require optional Cargo features: four tools require embeddings, two require plugins, and two require postgres or duckdb. Released binaries and GHCR images use the default feature set, so they do not include these eight tools.
- Certificate digests bind bytes rather than world state; after storage changes, restoring the original state will yield the same answer. Type-level formal work is decision 0010 and is still in progress.
- The guarantees of module extraction reference external theorems; the tool does not perform machine checking, and there are no files about locality under lean/.
- The Python package open-ontologies-lite is a second engine, pure Python reasoning, requiring no Rust toolchain, and its certificates are checked by the same Lean binary. Both engines run the same algorithms and rule tables; their consistency mainly rules out transcription errors and cannot rule out shared misreadings of W3C rules; independent verification comes from the Lean checker.
- The repository also contains parts such as alignment, embeddings, PDDL planning, clinical cross-mapping, plugin marketplace, and CIVeX, each with its own documentation and code, which are not covered on this page.
License and support
The engine uses the MIT license and remains MIT. For the hosted platform version, see tesseractsemantics.com. Enterprise support is also available through that website.