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.

improve: resolve owl:imports in benchmark, update tool count to 48

FABIOTESSfb646e7fe66f
diff --git a/README.md b/README.md
index 4ca93b30..42d54469 100644
--- a/README.md
+++ b/README.md
@@ -30,7 +30,7 @@
---
-Open Ontologies is a **Rust MCP server** and **desktop Studio** for AI-native ontology engineering. It exposes **43 tools** that let Claude build, validate, query, diff, lint, version, reason over, align, and persist RDF/OWL ontologies using an in-memory Oxigraph triple store — with Terraform-style lifecycle management, a marketplace of 29 standard ontologies, clinical crosswalks, semantic embeddings, and a full lineage audit trail.
+Open Ontologies is a **Rust MCP server** and **desktop Studio** for AI-native ontology engineering. It exposes **48 tools** that let Claude build, validate, query, diff, lint, version, reason over, align, and persist RDF/OWL ontologies using an in-memory Oxigraph triple store — with Terraform-style lifecycle management, a marketplace of 29 standard ontologies, clinical crosswalks, semantic embeddings, and a full lineage audit trail.
The **Studio** wraps the engine in a visual desktop environment: 3D force-directed graph, AI chat panel, Protégé-style property inspector, and lineage viewer.
@@ -240,42 +240,42 @@ One sentence input: *"Build a Pizza ontology following the Manchester tutorial s
### Ontology Marketplace — 29 Standard Ontologies
-All 29 marketplace ontologies fetched, loaded, and reasoned over with both RDFS and OWL-RL profiles. Class/property counts include implicit definitions (via `rdfs:subClassOf`, `rdfs:domain`/`range`, `owl:equivalentClass`, `rdf:Property`).
+All 29 marketplace ontologies fetched, `owl:imports` resolved, loaded, and reasoned over with both RDFS and OWL-RL profiles:
| Ontology | Classes | Properties | Triples | + RDFS | + OWL-RL | Fetch | RDFS | OWL-RL |
| --- | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: |
-| OWL 2 | 26 | 4 | 450 | +23 | +23 | 554ms | 3ms | 1ms |
-| RDF Schema | 6 | 0 | 87 | +35 | +35 | 526ms | 2ms | 1ms |
-| RDF Concepts | 7 | 0 | 127 | +31 | +31 | 604ms | 2ms | 1ms |
-| BFO (ISO 21838) | 35 | 0 | 1,221 | +186 | +186 | 1,151ms | 5ms | 4ms |
-| DOLCE/DUL | 93 | 118 | 1,917 | +666 | +692 | 2,360ms | 15ms | 12ms |
-| Schema.org | 1,009 | 0 | 17,823 | +4,031 | **+13,670** | 821ms | 57ms | 124ms |
-| FOAF | 28 | 60 | 631 | +4 | +31 | 1,639ms | 2ms | 2ms |
-| SKOS | 5 | 18 | 252 | +55 | +55 | 234ms | 2ms | 1ms |
-| Dublin Core Elements | 0 | 0 | 107 | +0 | +0 | 461ms | 1ms | 1ms |
-| Dublin Core Terms | 22 | 0 | 700 | +256 | +261 | 241ms | 4ms | 3ms |
-| DCAT | 19 | 39 | 1,695 | +13 | +40 | 865ms | 6ms | 5ms |
-| VoID | 8 | 8 | 216 | +0 | +0 | 1,116ms | 2ms | 1ms |
-| DOAP | 17 | 0 | 741 | +0 | +0 | 662ms | 3ms | 2ms |
-| PROV-O | 39 | 50 | 1,146 | +202 | +203 | 487ms | 4ms | 3ms |
-| OWL-Time | 23 | 58 | 1,296 | +165 | +165 | 290ms | 6ms | 4ms |
-| W3C Organization | 22 | 33 | 748 | +9 | +21 | 544ms | 3ms | 3ms |
-| SSN | 0 | 0 | 40 | +0 | +0 | 989ms | 1ms | 1ms |
-| SOSA | 0 | 0 | 47 | +0 | +0 | 727ms | 1ms | 1ms |
-| GeoSPARQL | 12 | 54 | 796 | +4 | +12 | 746ms | 3ms | 2ms |
-| LOCN | 2 | 0 | 206 | +0 | +0 | 703ms | 1ms | 1ms |
-| SHACL | 40 | 0 | 1,128 | +268 | +268 | 475ms | 6ms | 3ms |
-| vCard | 75 | 84 | 882 | +0 | +46 | 632ms | 3ms | 3ms |
-| ODRL | 71 | 50 | 2,157 | +73 | +76 | 853ms | 6ms | 5ms |
-| Creative Commons | 6 | 0 | 115 | +0 | +49 | 1,121ms | 2ms | 1ms |
-| SIOC | 14 | 83 | 615 | +0 | +2 | 914ms | 2ms | 2ms |
-| ADMS | 4 | 13 | 151 | +0 | +0 | 877ms | 1ms | 1ms |
-| GoodRelations | 98 | 102 | 1,834 | +15 | +42 | 1,975ms | 6ms | 6ms |
-| FIBO (metadata) | 0 | 0 | 45 | +0 | +0 | 1,474ms | 1ms | 1ms |
-| QUDT | 73 | 175 | 2,434 | +1,574 | +1,581 | 2,644ms | 14ms | 9ms |
-| **Total** | **1,754** | **949** | **39,607** | **+7,610** | **+17,489** | — | — | — |
-
-29/29 ontologies loaded, reasoned, and validated. RDFS adds 19% more triples. OWL-RL adds **44%** — transitive/symmetric/inverse properties and equivalentClass expansion discover significantly more implicit knowledge. Schema.org jumps from +4,031 (RDFS) to +13,670 (OWL-RL) inferred triples in 124ms.
+| OWL 2 | 32 | 4 | 537 | +230 | +230 | 681ms | 6ms | 3ms |
+| RDF Schema | 6 | 0 | 87 | +35 | +35 | 522ms | 2ms | 1ms |
+| RDF Concepts | 7 | 0 | 127 | +31 | +31 | 545ms | 2ms | 2ms |
+| BFO (ISO 21838) | 35 | 0 | 1,221 | +186 | +186 | 1,141ms | 5ms | 4ms |
+| DOLCE/DUL | 93 | 118 | 1,917 | +666 | +692 | 2,208ms | 13ms | 12ms |
+| Schema.org | 1,009 | 0 | 17,823 | +4,031 | **+13,670** | 558ms | 57ms | 117ms |
+| FOAF | 28 | 60 | 631 | +4 | +31 | 940ms | 3ms | 2ms |
+| SKOS | 5 | 18 | 252 | +55 | +55 | 218ms | 2ms | 1ms |
+| Dublin Core Elements | 0 | 0 | 107 | +0 | +0 | 371ms | 2ms | 1ms |
+| Dublin Core Terms | 22 | 0 | 700 | +256 | +261 | 259ms | 4ms | 3ms |
+| DCAT | 58 | 89 | 2,841 | +223 | +254 | 975ms | 15ms | 11ms |
+| VoID | 8 | 8 | 216 | +0 | +0 | 531ms | 2ms | 2ms |
+| DOAP | 17 | 0 | 741 | +0 | +0 | 727ms | 2ms | 2ms |
+| PROV-O | 39 | 50 | 1,146 | +202 | +203 | 472ms | 5ms | 4ms |
+| OWL-Time | 23 | 58 | 1,296 | +165 | +165 | 256ms | 5ms | 4ms |
+| W3C Organization | 22 | 33 | 748 | +9 | +21 | 639ms | 4ms | 3ms |
+| SSN | 35 | 38 | 1,815 | +84 | +84 | 519ms | 6ms | 4ms |
+| SOSA | 29 | 23 | 396 | +0 | +0 | 1,264ms | 3ms | 2ms |
+| GeoSPARQL | 12 | 54 | 796 | +4 | +12 | 733ms | 3ms | 3ms |
+| LOCN | 2 | 0 | 206 | +0 | +0 | 1,031ms | 2ms | 1ms |
+| SHACL | 40 | 0 | 1,128 | +268 | +268 | 662ms | 5ms | 3ms |
+| vCard | 75 | 84 | 882 | +0 | +46 | 854ms | 3ms | 3ms |
+| ODRL | 71 | 50 | 2,157 | +73 | +76 | 798ms | 6ms | 5ms |
+| Creative Commons | 6 | 0 | 115 | +0 | +49 | 184ms | 1ms | 1ms |
+| SIOC | 14 | 83 | 615 | +0 | +2 | 863ms | 3ms | 2ms |
+| ADMS | 4 | 13 | 151 | +0 | +0 | 747ms | 3ms | 1ms |
+| GoodRelations | 98 | 102 | 1,834 | +15 | +42 | 2,299ms | 6ms | 6ms |
+| FIBO (metadata) | 0 | 0 | 45 | +0 | +0 | 1,524ms | 3ms | 1ms |
+| QUDT | 73 | 175 | 2,434 | +1,574 | +1,581 | 2,934ms | 14ms | 9ms |
+| **Total** | **1,863** | **1,060** | **42,964** | **+8,111** | **+17,994** | — | — | — |
+
+29/29 ontologies loaded, imports resolved, and reasoned. RDFS adds 18% more triples. OWL-RL adds **41%** — transitive/symmetric/inverse properties and equivalentClass expansion discover significantly more implicit knowledge. Schema.org jumps from +4,031 (RDFS) to +13,670 (OWL-RL) inferred triples in 117ms.
### Reasoning Performance — vs HermiT
@@ -294,7 +294,7 @@ Full benchmark writeup: [docs/benchmarks.md](docs/benchmarks.md)
## Tools
-43 tools organized by function — available as MCP tools (prefixed `onto_`) and CLI subcommands:
+48 tools organized by function — available as MCP tools (prefixed `onto_`) and CLI subcommands:
| Category | Tools | Purpose |
| --- | --- | --- |
@@ -333,7 +333,7 @@ flowchart TD
REST["REST API\n/api/query · /api/update\n/api/save · /api/load · /api/lineage"]
end
- subgraph ToolGroups["42 Tools"]
+ subgraph ToolGroups["48 Tools"]
direction LR
Core["Core\nvalidate · load · save · clear\nstats · query · diff · lint\nconvert · status"]
DataPipe["Data Pipeline\nmap · ingest · shacl\nreason · extend · import-schema"]
diff --git a/benchmark/marketplace_benchmark.py b/benchmark/marketplace_benchmark.py
index baececbe..1cafc3fb 100644
--- a/benchmark/marketplace_benchmark.py
+++ b/benchmark/marketplace_benchmark.py
@@ -127,6 +127,9 @@ def main():
})
continue
+ # Resolve owl:imports if the ontology declares them
+ tool_call("onto_import")
+
# Stats before reasoning
stats = tool_call("onto_stats")
classes = stats.get("classes", 0)
diff --git a/benchmark/marketplace_results.json b/benchmark/marketplace_results.json
index 5ef9a8a3..7cdbd5e6 100644
--- a/benchmark/marketplace_results.json
+++ b/benchmark/marketplace_results.json
@@ -2,16 +2,16 @@
{
"id": "owl",
"status": "ok",
- "classes": 26,
+ "classes": 32,
"properties": 4,
- "triples_before": 450,
- "triples_rdfs": 473,
- "inferred_rdfs": 23,
- "triples_owl": 473,
- "inferred_owl": 23,
- "fetch_ms": 554,
- "rdfs_reason_ms": 3,
- "owl_reason_ms": 1
+ "triples_before": 537,
+ "triples_rdfs": 767,
+ "inferred_rdfs": 230,
+ "triples_owl": 767,
+ "inferred_owl": 230,
+ "fetch_ms": 681,
+ "rdfs_reason_ms": 6,
+ "owl_reason_ms": 3
},
{
"id": "rdfs",
@@ -23,7 +23,7 @@
"inferred_rdfs": 35,
"triples_owl": 122,
"inferred_owl": 35,
- "fetch_ms": 526,
+ "fetch_ms": 522,
"rdfs_reason_ms": 2,
"owl_reason_ms": 1
},
@@ -37,9 +37,9 @@
"inferred_rdfs": 31,
"triples_owl": 158,
"inferred_owl": 31,
- "fetch_ms": 604,
+ "fetch_ms": 545,
"rdfs_reason_ms": 2,
- "owl_reason_ms": 1
+ "owl_reason_ms": 2
},
{
"id": "bfo",
@@ -51,7 +51,7 @@
"inferred_rdfs": 186,
"triples_owl": 1407,
"inferred_owl": 186,
- "fetch_ms": 1151,
+ "fetch_ms": 1141,
"rdfs_reason_ms": 5,
"owl_reason_ms": 4
},
@@ -65,8 +65,8 @@
"inferred_rdfs": 666,
"triples_owl": 2609,
"inferred_owl": 692,
- "fetch_ms": 2360,
- "rdfs_reason_ms": 15,
+ "fetch_ms": 2208,
+ "rdfs_reason_ms": 13,
"owl_reason_ms": 12
},
{
@@ -79,9 +79,9 @@
"inferred_rdfs": 4031,
"triples_owl": 31493,
"inferred_owl": 13670,
- "fetch_ms": 821,
+ "fetch_ms": 558,
"rdfs_reason_ms": 57,
- "owl_reason_ms": 124
+ "owl_reason_ms": 117
},
{
"id": "foaf",
@@ -93,8 +93,8 @@
"inferred_rdfs": 4,
"triples_owl": 662,
"inferred_owl": 31,
- "fetch_ms": 1639,
- "rdfs_reason_ms": 2,
+ "fetch_ms": 940,
+ "rdfs_reason_ms": 3,
"owl_reason_ms": 2
},
{
@@ -107,7 +107,7 @@
"inferred_rdfs": 55,
"triples_owl": 307,
"inferred_owl": 55,
- "fetch_ms": 234,
+ "fetch_ms": 218,
"rdfs_reason_ms": 2,
"owl_reason_ms": 1
},
@@ -121,8 +121,8 @@
"inferred_rdfs": 0,
"triples_owl": 107,
"inferred_owl": 0,
- "fetch_ms": 461,
- "rdfs_reason_ms": 1,
+ "fetch_ms": 371,
+ "rdfs_reason_ms": 2,
"owl_reason_ms": 1
},
{
@@ -135,23 +135,23 @@
"inferred_rdfs": 256,
"triples_owl": 961,
"inferred_owl": 261,
- "fetch_ms": 241,
+ "fetch_ms": 259,
"rdfs_reason_ms": 4,
"owl_reason_ms": 3
},
{
"id": "dcat",
"status": "ok",
- "classes": 19,
- "properties": 39,
- "triples_before": 1695,
- "triples_rdfs": 1708,
- "inferred_rdfs": 13,
- "triples_owl": 1735,
- "inferred_owl": 40,
- "fetch_ms": 865,
- "rdfs_reason_ms": 6,
- "owl_reason_ms": 5
+ "classes": 58,
+ "properties": 89,
+ "triples_before": 2841,
+ "triples_rdfs": 3064,
+ "inferred_rdfs": 223,
+ "triples_owl": 3095,
+ "inferred_owl": 254,
+ "fetch_ms": 975,
+ "rdfs_reason_ms": 15,
+ "owl_reason_ms": 11
},
{
"id": "void",
@@ -163,9 +163,9 @@
"inferred_rdfs": 0,
"triples_owl": 216,
"inferred_owl": 0,
- "fetch_ms": 1116,
+ "fetch_ms": 531,
"rdfs_reason_ms": 2,
- "owl_reason_ms": 1
+ "owl_reason_ms": 2
},
{
"id": "doap",
@@ -177,8 +177,8 @@
"inferred_rdfs": 0,
"triples_owl": 741,
"inferred_owl": 0,
- "fetch_ms": 662,
- "rdfs_reason_ms": 3,
+ "fetch_ms": 727,
+ "rdfs_reason_ms": 2,
"owl_reason_ms": 2
},
{
@@ -191,9 +191,9 @@
"inferred_rdfs": 202,
"triples_owl": 1349,
"inferred_owl": 203,
- "fetch_ms": 487,
- "rdfs_reason_ms": 4,
- "owl_reason_ms": 3
+ "fetch_ms": 472,
+ "rdfs_reason_ms": 5,
+ "owl_reason_ms": 4
},
{
"id": "owl-time",
@@ -205,8 +205,8 @@
"inferred_rdfs": 165,
"triples_owl": 1461,
"inferred_owl": 165,
- "fetch_ms": 290,
- "rdfs_reason_ms": 6,
+ "fetch_ms": 256,
+ "rdfs_reason_ms": 5,
"owl_reason_ms": 4
},
{
@@ -219,37 +219,37 @@
"inferred_rdfs": 9,
"triples_owl": 769,
"inferred_owl": 21,
- "fetch_ms": 544,
- "rdfs_reason_ms": 3,
+ "fetch_ms": 639,
+ "rdfs_reason_ms": 4,
"owl_reason_ms": 3
},
{
"id": "ssn",
"status": "ok",
- "classes": 0,
- "properties": 0,
- "triples_before": 40,
- "triples_rdfs": 40,
- "inferred_rdfs": 0,
- "triples_owl": 40,
- "inferred_owl": 0,
- "fetch_ms": 989,
- "rdfs_reason_ms": 1,
- "owl_reason_ms": 1
+ "classes": 35,
+ "properties": 38,
+ "triples_before": 1815,
+ "triples_rdfs": 1899,
+ "inferred_rdfs": 84,
+ "triples_owl": 1899,
+ "inferred_owl": 84,
+ "fetch_ms": 519,
+ "rdfs_reason_ms": 6,
+ "owl_reason_ms": 4
},
{
"id": "sosa",
"status": "ok",
- "classes": 0,
- "properties": 0,
- "triples_before": 47,
- "triples_rdfs": 47,
+ "classes": 29,
+ "properties": 23,
+ "triples_before": 396,
+ "triples_rdfs": 396,
"inferred_rdfs": 0,
- "triples_owl": 47,
+ "triples_owl": 396,
"inferred_owl": 0,
- "fetch_ms": 727,
- "rdfs_reason_ms": 1,
- "owl_reason_ms": 1
+ "fetch_ms": 1264,
+ "rdfs_reason_ms": 3,
+ "owl_reason_ms": 2
},
{
"id": "geosparql",
@@ -261,9 +261,9 @@
"inferred_rdfs": 4,
"triples_owl": 808,
"inferred_owl": 12,
- "fetch_ms": 746,
+ "fetch_ms": 733,
"rdfs_reason_ms": 3,
- "owl_reason_ms": 2
+ "owl_reason_ms": 3
},
{
"id": "locn",
@@ -275,8 +275,8 @@
"inferred_rdfs": 0,
"triples_owl": 206,
"inferred_owl": 0,
- "fetch_ms": 703,
- "rdfs_reason_ms": 1,
+ "fetch_ms": 1031,
+ "rdfs_reason_ms": 2,
"owl_reason_ms": 1
},
{
@@ -289,8 +289,8 @@
"inferred_rdfs": 268,
"triples_owl": 1396,
"inferred_owl": 268,
- "fetch_ms": 475,
- "rdfs_reason_ms": 6,
+ "fetch_ms": 662,
+ "rdfs_reason_ms": 5,
"owl_reason_ms": 3
},
{
@@ -303,7 +303,7 @@
"inferred_rdfs": 0,
"triples_owl": 928,
"inferred_owl": 46,
- "fetch_ms": 632,
+ "fetch_ms": 854,
"rdfs_reason_ms": 3,
"owl_reason_ms": 3
},
@@ -317,7 +317,7 @@
"inferred_rdfs": 73,
"triples_owl": 2233,
"inferred_owl": 76,
- "fetch_ms": 853,
+ "fetch_ms": 798,
"rdfs_reason_ms": 6,
"owl_reason_ms": 5
},
@@ -331,8 +331,8 @@
"inferred_rdfs": 0,
"triples_owl": 164,
"inferred_owl": 49,
- "fetch_ms": 1121,
- "rdfs_reason_ms": 2,
+ "fetch_ms": 184,
+ "rdfs_reason_ms": 1,
"owl_reason_ms": 1
},
{
@@ -345,8 +345,8 @@
"inferred_rdfs": 0,
"triples_owl": 617,
"inferred_owl": 2,
- "fetch_ms": 914,
- "rdfs_reason_ms": 2,
+ "fetch_ms": 863,
+ "rdfs_reason_ms": 3,
"owl_reason_ms": 2
},
{
@@ -359,8 +359,8 @@
"inferred_rdfs": 0,
"triples_owl": 151,
"inferred_owl": 0,
- "fetch_ms": 877,
- "rdfs_reason_ms": 1,
+ "fetch_ms": 747,
+ "rdfs_reason_ms": 3,
"owl_reason_ms": 1
},
{
@@ -373,7 +373,7 @@
"inferred_rdfs": 15,
"triples_owl": 1876,
"inferred_owl": 42,
- "fetch_ms": 1975,
+ "fetch_ms": 2299,
"rdfs_reason_ms": 6,
"owl_reason_ms": 6
},
@@ -387,8 +387,8 @@
"inferred_rdfs": 0,
"triples_owl": 45,
"inferred_owl": 0,
- "fetch_ms": 1474,
- "rdfs_reason_ms": 1,
+ "fetch_ms": 1524,
+ "rdfs_reason_ms": 3,
"owl_reason_ms": 1
},
{
@@ -401,7 +401,7 @@
"inferred_rdfs": 1574,
"triples_owl": 4015,
"inferred_owl": 1581,
- "fetch_ms": 2644,
+ "fetch_ms": 2934,
"rdfs_reason_ms": 14,
"owl_reason_ms": 9
}