Plan, apply and roll back changes to a production ontology, with a blast radius report and a proof an auditor can re-check.
Rust ai-nativedescription-logicsformal-verificationinfrastructure-as-codeisabelle-languageknowledge-graphleanlean4mcpmcp-serverontologyowlowl2reasoningrustshaclsparqltheorem-proving
docs: fix README and CLAUDE.md accuracy
FABIOTESSb65b695d6306
diff --git a/CLAUDE.md b/CLAUDE.mdindex 099fc2b9..27c34981 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -42,6 +42,7 @@ Claude dynamically decides the next tool call based on what the previous tool re| Tool | When to use || ---- | ----------- |+| `onto_status` | To check if the server is running and healthy || `onto_validate` | After generating or modifying Turtle — always validate first || `onto_load` | After validation passes — loads into triple store for querying || `onto_stats` | After loading — sanity check on class/property/triple counts |@@ -62,6 +63,7 @@ Claude dynamically decides the next tool call based on what the previous tool re| `onto_shacl` | To validate loaded data against SHACL shapes (cardinality, datatypes, classes) || `onto_reason` | To run RDFS or OWL-RL inference, materializing inferred triples || `onto_extend` | To run the full pipeline: ingest → SHACL validate → reason in one call |+| `onto_import_schema` | To import a PostgreSQL database schema as an OWL ontology (requires postgres feature) || `onto_plan` | Before applying changes — shows added/removed classes, blast radius, risk score || `onto_apply` | After plan + enforce — applies changes in `safe` or `migrate` mode || `onto_lock` | To protect production IRIs from removal |@@ -72,11 +74,13 @@ Claude dynamically decides the next tool call based on what the previous tool re| `onto_crosswalk` | To look up clinical terminology mappings (ICD-10 ↔ SNOMED ↔ MeSH) || `onto_enrich` | To add skos:exactMatch triples linking classes to clinical codes || `onto_validate_clinical` | To check class labels against clinical crosswalk terminology |-| `onto_align` | To detect alignment candidates (equivalentClass, exactMatch, subClassOf) between two ontologies using 6 weighted signals |+| `onto_align` | To detect alignment candidates (equivalentClass, exactMatch, subClassOf) between two ontologies using 7 weighted signals (6 structural + embedding similarity when embeddings are loaded) || `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 |+| `onto_dl_explain` | To explain why a class is unsatisfiable using DL tableaux reasoning — returns clash trace |+| `onto_dl_check` | To check if one class is subsumed by another using DL tableaux reasoning || `onto_embed` | After loading an ontology — generates text + Poincaré structural embeddings for all classes || `onto_search` | To find classes by natural language description — requires onto_embed first || `onto_similarity` | To compute embedding similarity between two specific IRIs |diff --git a/README.md b/README.mdindex e927afa7..50f27695 100644--- a/README.md+++ b/README.md@@ -343,18 +343,19 @@ The embedding model (~33MB) is downloaded on `open-ontologies init`. All inferen### Schema Alignment-Detect `owl:equivalentClass`, `skos:exactMatch`, `rdfs:subClassOf` candidates between two ontologies using 6 weighted signals:+Detect `owl:equivalentClass`, `skos:exactMatch`, `rdfs:subClassOf` candidates between two ontologies using 7 weighted signals:| Signal | Weight | What it measures || ------ | ------ | ---------------- |-| Label similarity | 0.25 | Jaro-Winkler on normalized labels (camelCase split, lowercased) |-| Property overlap | 0.20 | Jaccard on domain property + range signatures |-| Parent overlap | 0.15 | Jaccard on rdfs:subClassOf parent local names |-| Instance overlap | 0.15 | Jaccard on shared individuals by local name |-| Restriction similarity | 0.15 | Jaccard on OWL restriction signatures (property→filler) |-| Neighborhood similarity | 0.10 | Jaccard on 2-hop property neighborhood |+| Label similarity | 0.20 | Jaro-Winkler on normalized labels (camelCase split, lowercased) |+| Property overlap | 0.15 | Jaccard on domain property + range signatures |+| Parent overlap | 0.12 | Jaccard on rdfs:subClassOf parent local names |+| Instance overlap | 0.12 | Jaccard on shared individuals by local name |+| Restriction similarity | 0.12 | Jaccard on OWL restriction signatures (property→filler) |+| Neighborhood similarity | 0.09 | Jaccard on 2-hop property neighborhood |+| Embedding similarity | 0.20 | Cosine similarity on text embeddings (requires `onto_embed`) |-Candidates above the confidence threshold are auto-applied to the main graph. Use `onto_align_feedback` to accept/reject candidates — feedback is stored in SQLite and used to self-calibrate signal weights over time.+When compiled without the `embeddings` feature, alignment uses the first 6 signals with the original weights (0.25, 0.20, 0.15, 0.15, 0.15, 0.10). Candidates above the confidence threshold are auto-applied to the main graph. Use `onto_align_feedback` to accept/reject candidates — feedback is stored in SQLite and used to self-calibrate signal weights over time.```bash# Compare two ontology files (dry run)@@ -564,8 +565,10 @@ flowchart TD- **Rust** (edition 2024) — single binary, no JVM- **Oxigraph 0.4** — pure Rust RDF/SPARQL engine- **rmcp** — MCP protocol implementation-- **SQLite** (rusqlite) — state, versions, lineage, monitor, enforcer rules, drift feedback+- **SQLite** (rusqlite) — state, versions, lineage, monitor, enforcer rules, drift feedback, embeddings- **Apache Arrow/Parquet** — clinical crosswalk file format+- **tract-onnx** — pure Rust ONNX runtime for text embeddings (optional, `embeddings` feature)+- **tokenizers** — HuggingFace tokenizer for bge-small-en-v1.5 (optional, `embeddings` feature)**Optional companion:** [OpenCheir](https://github.com/fabio-rovai/opencheir) adds workflow enforcement, audit trails, and multi-agent orchestration.