Skip to content

Plan, apply and roll back changes to a production ontology, with a blast radius report and a proof an auditor can re-check.

docs: update README (39 tools, benchmark results) and CLAUDE.md

FABIOTESS83498b85326a
diff --git a/CLAUDE.md b/CLAUDE.md
index 688ea914..98744062 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -75,6 +75,8 @@ Claude dynamically decides the next tool call based on what the previous tool re
| `onto_align` | To detect alignment candidates (equivalentClass, exactMatch, subClassOf) between two ontologies using 6 weighted signals |
| `onto_align_feedback` | To accept/reject alignment candidates for self-calibrating confidence weights |
| `onto_lineage` | To view the session's lineage trail (plan → enforce → apply → monitor → drift) |
+| `onto_lint_feedback` | To accept/dismiss a lint issue — teaches lint to suppress repeatedly dismissed warnings |
+| `onto_enforce_feedback` | To accept/dismiss an enforce violation — teaches enforce to suppress repeatedly dismissed violations |
## Ontology Lifecycle
diff --git a/README.md b/README.md
index d24c68b8..158aba9a 100644
--- a/README.md
+++ b/README.md
@@ -4,7 +4,7 @@
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
-Open Ontologies is a standalone MCP server and CLI for AI-native ontology engineering. It exposes 37 tools that let Claude validate, query, diff, lint, version, and persist RDF/OWL ontologies using an in-memory Oxigraph triple store — plus plan changes, detect drift, enforce design patterns, monitor health, align ontologies, and track lineage.
+Open Ontologies is a standalone MCP server and CLI for AI-native ontology engineering. It exposes 39 tools that let Claude validate, query, diff, lint, version, and persist RDF/OWL ontologies using an in-memory Oxigraph triple store — plus plan changes, detect drift, enforce design patterns, monitor health, align ontologies, track lineage, and learn from user feedback.
Written in Rust, ships as a single binary. No JVM, no Protege, no GUI.
@@ -120,7 +120,7 @@ This is not a fixed pipeline. Claude is the orchestrator — it decides what to
## Tools
-37 tools organized by function:
+39 tools organized by function:
| Category | Tools | Purpose |
| -------- | ----- | ------- |
@@ -132,6 +132,7 @@ This is not a fixed pipeline. Claude is the orchestrator — it decides what to
| **Lifecycle** | `plan`, `apply`, `lock`, `drift`, `enforce`, `monitor`, `monitor-clear`, `lineage` | Terraform-style change management |
| **Alignment** | `align`, `align-feedback` | Cross-ontology class matching with self-calibrating confidence |
| **Clinical** | `crosswalk`, `enrich`, `validate-clinical` | ICD-10 / SNOMED / MeSH crosswalks |
+| **Feedback** | `lint-feedback`, `enforce-feedback` | Self-calibrating suppression — teach lint/enforce to stop repeating dismissed warnings |
| **Reasoning** | `reason` (rdfs, owl-rl, owl-rl-ext, owl-dl), `dl_explain`, `dl_check` | Native SHOIQ tableaux reasoner |
All tools are available both as MCP tools (prefixed `onto_`) and as CLI subcommands.
@@ -234,6 +235,8 @@ flowchart LR
**Lineage** — Append-only audit trail of all lifecycle operations.
+**Feedback** — Lint and enforce learn from your decisions. Dismiss a warning 3 times and it's suppressed; accept it once and it sticks. Same self-calibrating pattern used by `align` and `drift`.
+
### Schema Alignment
Detect `owl:equivalentClass`, `skos:exactMatch`, `rdfs:subClassOf` candidates between two ontologies using 6 weighted signals:
@@ -379,6 +382,31 @@ Category recall is lower because TTL files use fine-grained categories ("animal
The benchmark runs the full MCP pipeline: `onto_clear` → `onto_validate` (×10) → `onto_load` (×10) → `onto_stats` → `onto_lint` (×10) → `onto_query` (×6) via the real MCP server using the official MCP Python SDK over JSON-RPC 2.0 stdio. Files: [`benchmark/vision/`](benchmark/vision/)
+### Reasoning Performance — HermiT vs Open Ontologies
+
+Real benchmarks, not marketing claims. Java 25, HermiT 1.4.3.456, OWL API 4.5.29.
+
+**Pizza Ontology (4,179 triples)**
+
+| Tool | Time | Result |
+| ---- | ---- | ------ |
+| HermiT | 213ms | 312 subsumptions |
+| Open Ontologies (OWL-RL) | 43ms | Load + rule-based inference |
+| Open Ontologies (OWL-DL) | 19ms | Consistency check, SHOIQ tableaux |
+
+**LUBM Scaling (load + reason cycle)**
+
+| Axioms | Open Ontologies | HermiT | Speedup |
+| ------ | --------------- | ------- | ------- |
+| 1,000 | 15ms | 112ms | **7.5x** |
+| 5,000 | 14ms | 410ms | **29x** |
+| 10,000 | 14ms | 1,200ms | **86x** |
+| 50,000 | 15ms | 24,490ms | **1,633x** |
+
+OO's time stays flat — OWL-RL is SPARQL-based rule application, not tableaux expansion. HermiT's tableaux algorithm grows super-linearly with ontology size. Both produce correct results; different reasoning strategies for different use cases.
+
+Scripts and results: [`benchmark/reasoner/`](benchmark/reasoner/)
+
## Architecture
```mermaid