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.

Refresh benchmark reporting: full OAEI 2025 field, regenerated marketplace stats, research questions

FABIOTESS58d042e3f6cb
diff --git a/CLAUDE.md b/CLAUDE.md
index 6340da39..492dd1f8 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -58,7 +58,7 @@ Claude dynamically decides the next tool call based on what the previous tool re
| `onto_save` | To persist the ontology to a file |
| `onto_convert` | To convert between formats (Turtle, N-Triples, RDF/XML, N-Quads, TriG) |
| `onto_clear` | To reset the store before loading a different ontology |
-| `onto_marketplace` | To browse and install standard ontologies from a curated catalogue of 29 W3C/ISO/industry standards |
+| `onto_marketplace` | To browse and install standard ontologies from a curated catalogue of 33 W3C/ISO/industry standards |
| `onto_pull` | To fetch an ontology from a remote URL or SPARQL endpoint |
| `onto_push` | To push an ontology to a SPARQL endpoint |
| `onto_import` | To resolve and load owl:imports chains |
diff --git a/README.md b/README.md
index 87ea6e3d..37edd009 100644
--- a/README.md
+++ b/README.md
@@ -31,7 +31,7 @@
---
-Open Ontologies is a **Rust MCP server** and **desktop Studio** for AI-native ontology engineering. It exposes **70+ tools** that let Claude build, validate, query, diff, lint, version, reason over, align, plan, certify, and govern RDF/OWL ontologies using an in-memory Oxigraph triple store — with a full three-layer Dynamics → Causal → Planner architecture, a marketplace of 32 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 **70+ tools** that let Claude build, validate, query, diff, lint, version, reason over, align, plan, certify, and govern RDF/OWL ontologies using an in-memory Oxigraph triple store — with a full three-layer Dynamics → Causal → Planner architecture, a marketplace of 33 standard ontologies, clinical crosswalks, semantic embeddings, and a full lineage audit trail.
The **Studio** wraps the engine in a visual desktop environment: virtualized ontology tree with hierarchy lines, breadcrumb navigation, and connection explorer; AI chat panel with `/build` (IES-level deep) and `/sketch` (quick prototype) commands; Protégé-style property inspector; and lineage viewer.
@@ -273,6 +273,20 @@ The first launch compiles the Tauri shell (~2 min). Subsequent launches start in
---
+## Research Questions
+
+The benchmarks below are not a feature tour. Each one exists to answer a specific question, and the answers include the unflattering ones.
+
+| # | Question | Where it is measured | Answer as measured |
+| --- | --- | --- | --- |
+| **RQ1** | Does structured tool access give an LLM a materially different mode of access to an ontology than handing it the raw OWL file, or than giving it nothing but class and property names? | [OntoAxiom](#ontoaxiom--llm-axiom-identification), 3 conditions, 2 models | **Partly.** Both beat name lists decisively. Tool extraction and raw-file reading are at **parity** with each other: raw OWL wins the macro average, extraction wins the micro. The tools' remaining advantage is that every pair traces to a query against real triples. |
+| **RQ2** | When two evaluation conditions disagree, how much of the gap is the method and how much is the scorer? | [OntoAxiom](#ontoaxiom--llm-axiom-identification), legacy vs unified evaluator | **Enough to invert the finding.** Three scorer asymmetries, all pointing one way, produced a reported result whose sign reverses under a shared evaluator, on both models and under both averages. |
+| **RQ3** | In ontology alignment, which carries the result: how the similarity signals are weighted, or the constraint that the matching be 1-to-1? | [OAEI Anatomy](#oaei-ontology-alignment--anatomy-track), 5 weight configurations vs stable-matching ablation | **The constraint, overwhelmingly.** F1 moves 0.0033 across five weight configurations and collapses from 0.832 to 0.182 when stable matching is removed. |
+| **RQ4** | How far does an alignment system get on a biomedical track with **no** domain background knowledge (no UMLS, no BioPortal, no LLM oracle)? | [OAEI Anatomy](#oaei-ontology-alignment--anatomy-track) and [Conference](#oaei-ontology-alignment--conference-track), full 2025 field | **Not far enough.** 9th of 13 on Anatomy, level with the lightweight lexical matcher and +0.066 F1 over a string-equality baseline. Below every system and both baselines on Conference. Precision is competitive; recall is the failure. |
+| **RQ5** | Does a closed-world vocabulary check catch generated terms that open-world SHACL validation silently accepts? | [`onto-correctness-bench`](case-studies/onto-correctness-bench/): 3 vocabularies, 418 fabricated terms, 300 graphs | **Yes, completely.** SHACL returned `conforms=true` on **300/300** graphs containing a fabricated term. The closed-world gate flagged **300/300**, with zero false positives on clean graphs. Open-world semantics treat an undeclared predicate as merely unknown, so SHACL is structurally unable to see it. |
+
+RQ2 and RQ4 are the ones worth reading if you are deciding whether to trust this repo. Both are negative results about work done here.
+
## Benchmarks
> **How to read these numbers.** Unless stated, LLM results are **single-run** (not averaged over seeds) and use **Claude Opus 4.8**. Several benchmark ontologies (Pizza, FOAF, Schema.org, OWL-Time) are widely published and may appear in an LLM's pretraining data, so a *bare-LLM* score is a **contamination-inclusive baseline**, not a clean measure of reasoning — the contribution is the **delta** the MCP tools add on top of that baseline, and whether that delta reproduces across models. To check exactly that, the repo ships a **cross-model ablation** driving the same tasks with a local **Qwen3-Coder-30B** as well as Claude — see [`benchmark/ontoaxiom/`](benchmark/ontoaxiom/). If the tool-augmented gain holds on a second, open model, the gain is a property of the tooling, not of one vendor's model.
@@ -340,44 +354,46 @@ The Studio provides two build commands for different use cases. Both take the sa
| False negatives | **0** |
| Classification rules | 6 OWL axioms |
-### Ontology Marketplace — 32 Standard Ontologies
+### Ontology Marketplace — 33 Standard Ontologies
-All 32 marketplace ontologies fetched, `owl:imports` resolved, loaded, and reasoned over with both RDFS and OWL-RL profiles:
+The 29 general-purpose marketplace ontologies (the four IES entries are covered separately under [IES Support](#ies-support)) fetched, `owl:imports` resolved, loaded, and reasoned over with both RDFS and OWL-RL profiles. Regenerate with `python3 benchmark/marketplace_benchmark.py`:
| Ontology | Classes | Properties | Triples | + RDFS | + OWL-RL | Fetch | RDFS | OWL-RL |
| --- | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: |
-| 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** | — | — | — |
-
-32/32 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.
+| OWL 2 | 29 | 0 | 537 | +230 | +230 | 276ms | 1ms | 1ms |
+| RDF Schema | 4 | 0 | 87 | +35 | +35 | 268ms | 0ms | 0ms |
+| RDF Concepts | 13 | 0 | 127 | +31 | +31 | 175ms | 0ms | 0ms |
+| BFO (ISO 21838) | 35 | 2 | 1,221 | +186 | +186 | 254ms | 2ms | 1ms |
+| DOLCE/DUL | 79 | 118 | 1,917 | +666 | +692 | 181ms | 7ms | 8ms |
+| Schema.org | 1,032 | 1,674 | 17,949 | +4,082 | **+14,236** | 679ms | 56ms | 136ms |
+| FOAF | 15 | 62 | 631 | +4 | +31 | 656ms | 1ms | 1ms |
+| SKOS | 5 | 28 | 252 | +55 | +55 | 81ms | 1ms | 1ms |
+| Dublin Core Elements | 0 | 15 | 107 | +0 | +0 | 315ms | 1ms | 0ms |
+| Dublin Core Terms | 23 | 70 | 700 | +256 | +261 | 129ms | 2ms | 2ms |
+| DCAT | 49 | 110 | 2,841 | +223 | +254 | 356ms | 7ms | 8ms |
+| VoID | 7 | 27 | 216 | +0 | +0 | 333ms | 0ms | 0ms |
+| DOAP | 22 | 45 | 741 | +0 | +0 | 352ms | 1ms | 1ms |
+| PROV-O | 31 | 59 | 1,146 | +202 | +203 | 204ms | 3ms | 2ms |
+| OWL-Time | 29 | 58 | 1,296 | +165 | +165 | 206ms | 3ms | 2ms |
+| W3C Organization | 17 | 38 | 748 | +9 | +21 | 259ms | 2ms | 2ms |
+| SSN | 23 | 38 | 1,815 | +84 | +84 | 262ms | 2ms | 2ms |
+| SOSA | 17 | 23 | 396 | +0 | +0 | 323ms | 1ms | 1ms |
+| GeoSPARQL | 15 | 54 | 796 | +4 | +12 | 227ms | 1ms | 1ms |
+| LOCN | 3 | 15 | 206 | +0 | +0 | 363ms | 1ms | 1ms |
+| SHACL | 48 | 101 | 1,128 | +268 | +268 | 277ms | 2ms | 2ms |
+| vCard | 64 | 84 | 882 | +0 | +46 | 316ms | 1ms | 1ms |
+| ODRL | 31 | 58 | 2,157 | +73 | +76 | 212ms | 3ms | 3ms |
+| Creative Commons | 21 | 13 | 115 | +0 | +49 | 564ms | 1ms | 1ms |
+| SIOC | 17 | 86 | 615 | +0 | +2 | 364ms | 1ms | 1ms |
+| ADMS | 8 | 16 | 151 | +0 | +0 | 377ms | 1ms | 1ms |
+| GoodRelations | 43 | 102 | 1,834 | +15 | +42 | 303ms | 3ms | 4ms |
+| FIBO (metadata) | 0 | 0 | 48 | +0 | +0 | 505ms | 4ms | 4ms |
+| QUDT | 99 | 196 | 2,434 | +1,574 | +1,581 | 2,100ms | 50ms | 49ms |
+| **Total** | **1,779** | **3,092** | **43,093** | **+8,162** | **+18,560** | — | — | — |
+
+29/29 ontologies loaded, imports resolved, and reasoned. RDFS adds 18% more triples. OWL-RL adds **43%** — transitive/symmetric/inverse properties and equivalentClass expansion discover significantly more implicit knowledge. Schema.org jumps from +4,082 (RDFS) to +14,236 (OWL-RL) inferred triples in 136ms.
+
+Class and property counts are structural, not declaration-only: a term counts if it is typed (`owl:Class`, `rdfs:Class`, `owl:ObjectProperty`, `owl:DatatypeProperty`, `rdf:Property`) **or** used as one (`rdfs:subClassOf`/`subPropertyOf`/`domain`/`range` position). Vocabularies that never issue OWL type declarations, such as Schema.org, are therefore counted rather than reported as empty. Terms in the `rdf:`, `rdfs:` and `owl:` namespaces are excluded so a vocabulary is not credited with the meta-vocabulary it is written in. That exclusion is why OWL 2, RDF Schema and RDF Concepts report **0 properties**: every property they define is, by definition, in an excluded namespace. FIBO's marketplace entry is the metadata module only (48 triples), which declares no terms of its own.
### Compiled Claim Verification — measured vs HermiT
@@ -418,17 +434,57 @@ Full benchmark methodology: [docs/benchmarks.md](docs/benchmarks.md)
### OAEI Ontology Alignment — Anatomy Track
-[OAEI](https://oaei.ontologymatching.org/) is the standard benchmark for ontology alignment systems. The Anatomy track aligns 2,737 mouse anatomy classes to 3,304 human anatomy classes against 1,516 reference mappings.
+[OAEI](https://oaei.ontologymatching.org/) is the standard benchmark for ontology alignment systems. The Anatomy track aligns the mouse anatomy ontology (2,744 classes) to the human anatomy fragment of the NCI Thesaurus (3,304 classes) against 1,516 reference mappings.
+
+The comparison below is the **complete** OAEI 2025 Anatomy field, reproduced from Table 9 of the official results paper ([Vol-4144, om2025-oaei-paper0](https://ceur-ws.org/Vol-4144/om2025-oaei-paper0.pdf)), including both baselines. Open Ontologies is inserted at its measured rank. Nothing is filtered.
| System | Precision | Recall | F1 |
-| --- | --- | --- | --- |
-| AML | 0.950 | 0.922 | **0.936** |
-| BERTMap | 0.940 | 0.910 | **0.924** |
-| LogMap | 0.930 | 0.890 | **0.912** |
-| OLaLa | 0.900 | 0.880 | **0.890** |
+| --- | ---: | ---: | ---: |
+| Matcha | 0.951 | 0.931 | **0.941** |
+| Agent-OM | 0.959 | 0.883 | **0.920** |
+| ALIN | 0.942 | 0.884 | **0.912** |
+| LogMapLLM | 0.964 | 0.842 | **0.899** |
+| LogMap-Bio | 0.885 | 0.911 | **0.898** |
+| MDMapper | 0.899 | 0.879 | **0.889** |
+| LogMap | 0.917 | 0.848 | **0.881** |
+| LogMapKG | 0.917 | 0.848 | **0.881** |
| **Open Ontologies** | **0.963** | **0.733** | **0.832** |
+| DRAL-OA | 0.830 | 0.827 | **0.828** |
+| LogMapLt | 0.962 | 0.728 | **0.828** |
+| *StringEquiv (baseline)* | 0.997 | 0.622 | **0.766** |
+| LSMatch | 0.952 | 0.634 | **0.761** |
+
+**Read this honestly.** Open Ontologies ranks **9th of 13** on F1. Its precision (0.963) is third in the field, but its recall (0.733) is second-from-bottom among non-baseline systems, and the resulting F1 sits **level with LogMapLt**, the deliberately lightweight lexical matcher, and 0.109 below the leader. The `StringEquiv` baseline reaches 0.766 by normalised string equality alone, so the margin this system earns over pure string matching is **+0.066 F1**. That is the number to beat, and it is not yet a competitive result.
-Open Ontologies uses 7 weighted signals (label similarity, property/parent/instance/restriction/neighbourhood overlap, embedding similarity), stable 1-to-1 matching, and a label penalty when no structural evidence is available. No external background knowledge (UMLS, BioPortal) is used. See issues [#8](https://github.com/fabio-rovai/open-ontologies/issues/8), [#9](https://github.com/fabio-rovai/open-ontologies/issues/9), [#10](https://github.com/fabio-rovai/open-ontologies/issues/10) for planned improvements.
+The gap is recall, and its cause is identifiable: this system carries **no domain background knowledge**. Anatomy is a track where UMLS and BioPortal lookups are what separate the 0.88+ band from the rest, and every system above Open Ontologies in the table either uses biomedical background knowledge, an LLM oracle, or both. Alignment here uses 7 weighted signals (label similarity, property/parent/instance/restriction/neighbourhood overlap, embedding similarity), stable 1-to-1 matching, and a label penalty when no structural evidence is available.
+
+The defensible finding from this track is therefore **not** the headline F1. It is the ablation: stable 1-to-1 matching is what makes the difference, and the signal weights are nearly irrelevant once it is applied.
+
+| Configuration | Precision | Recall | F1 |
+| --- | ---: | ---: | ---: |
+| With stable matching (5 weight configurations) | 0.963 | 0.733 | 0.832 ± 0.004 |
+| Without stable matching | 0.102 | 0.846 | 0.182 |
+
+Removing stable matching produces 12,557 candidates against a 1,516-mapping reference. See issues [#8](https://github.com/fabio-rovai/open-ontologies/issues/8), [#9](https://github.com/fabio-rovai/open-ontologies/issues/9), [#10](https://github.com/fabio-rovai/open-ontologies/issues/10); background-knowledge integration is the open work.
+
+### OAEI Ontology Alignment — Conference Track
+
+15 of the 21 conference-track pairs, micro-averaged:
+
+| System | Precision | Recall | F1 |
+| --- | ---: | ---: | ---: |
+| ALIN | 0.62 | 0.68 | **0.65** |
+| LogMap | 0.76 | 0.56 | **0.64** |
+| Matcha | 0.77 | 0.53 | **0.63** |
+| Agent-OM | 0.64 | 0.59 | **0.61** |
+| MDMapper | 0.69 | 0.50 | **0.58** |
+| *edna (baseline)* | 0.74 | 0.45 | **0.56** |
+| LogMapLt | 0.68 | 0.47 | **0.56** |
+| LSMatch | 0.83 | 0.41 | **0.55** |
+| *StringEquiv (baseline)* | 0.76 | 0.41 | **0.53** |
+| **Open Ontologies** | **0.693** | **0.320** | **0.438** |
+
+**Not comparable like-for-like, and worse than it looks.** The OAEI rows are Table 10 of the 2025 results paper, evaluated over all 21 pairs against the `rar2` reference at each system's F1-optimal threshold. The Open Ontologies row covers 15 pairs at a fixed confidence threshold. With that caveat stated, the result is unambiguous: **below every participating system and below both baselines**. Best pairs are `ekaw-iasted` (0.588) and `ekaw-sigkdd` (0.533); worst is `edas-sigkdd` (0.211). Conference is a track where the same recall failure that costs Anatomy its rank costs more, because there is no lexical redundancy to fall back on.
---
@@ -721,7 +777,7 @@ The same tool, applied to any ontology, produces the same kind of improvement. T
| **Core** | `validate` `load` `save` `clear` `stats` `query` `diff` `lint` `convert` `status` | RDF/OWL validation, querying, and management |
| **Repository** | `repo_list` `repo_load` | Browse and load ontologies from configured `[general] ontology_dirs` directories |
| **Cache** | `cache_status` `cache_list` `cache_remove` `unload` `recompile` | On-disk N-Triples compile cache, idle-TTL eviction, per-name management ([details](docs/cache-and-registry.md)) |
-| **Marketplace** | `marketplace` | Browse and install 32 standard W3C/ISO/industry ontologies |
+| **Marketplace** | `marketplace` | Browse and install 33 standard W3C/ISO/industry ontologies |
| **Remote** | `pull` `push` `import` | Fetch/push ontologies, resolve owl:imports |
| **Schema** | `import-schema` `sql-ingest` | Postgres + DuckDB → OWL + SQL → RDF ingest |
| **Data** | `map` `ingest` `shacl` `shacl_check` `vocab_check` `reason` `extend` | Structured data → RDF pipeline; `vocab_check` = closed-world check that generated data uses only ontology-declared terms (catches what open-world SHACL misses) |
diff --git a/benchmark/marketplace_results.json b/benchmark/marketplace_results.json
index 7cdbd5e6..29afe5c2 100644
--- a/benchmark/marketplace_results.json
+++ b/benchmark/marketplace_results.json
@@ -2,407 +2,407 @@
{
"id": "owl",
"status": "ok",
- "classes": 32,
- "properties": 4,
+ "classes": 29,
+ "properties": 0,
"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
+ "fetch_ms": 276,
+ "rdfs_reason_ms": 1,
+ "owl_reason_ms": 1
},
{
"id": "rdfs",
"status": "ok",
- "classes": 6,
+ "classes": 4,
"properties": 0,
"triples_before": 87,
"triples_rdfs": 122,
"inferred_rdfs": 35,
"triples_owl": 122,
"inferred_owl": 35,
- "fetch_ms": 522,
- "rdfs_reason_ms": 2,
- "owl_reason_ms": 1
+ "fetch_ms": 268,
+ "rdfs_reason_ms": 0,
+ "owl_reason_ms": 0
},
{
"id": "rdf",
"status": "ok",
- "classes": 7,
+ "classes": 13,
"properties": 0,
"triples_before": 127,
"triples_rdfs": 158,
"inferred_rdfs": 31,
"triples_owl": 158,
"inferred_owl": 31,
- "fetch_ms": 545,
- "rdfs_reason_ms": 2,
- "owl_reason_ms": 2
+ "fetch_ms": 175,
+ "rdfs_reason_ms": 0,
+ "owl_reason_ms": 0
},
{
"id": "bfo",
"status": "ok",
"classes": 35,
- "properties": 0,
+ "properties": 2,
"triples_before": 1221,
"triples_rdfs": 1407,
"inferred_rdfs": 186,
"triples_owl": 1407,
"inferred_owl": 186,
- "fetch_ms": 1141,
- "rdfs_reason_ms": 5,
- "owl_reason_ms": 4
+ "fetch_ms": 254,
+ "rdfs_reason_ms": 2,
+ "owl_reason_ms": 1
},
{
"id": "dolce",
"status": "ok",
- "classes": 93,
+ "classes": 79,
"properties": 118,
"triples_before": 1917,
"triples_rdfs": 2583,
"inferred_rdfs": 666,
"triples_owl": 2609,
"inferred_owl": 692,
- "fetch_ms": 2208,
- "rdfs_reason_ms": 13,
- "owl_reason_ms": 12
+ "fetch_ms": 181,
+ "rdfs_reason_ms": 7,
+ "owl_reason_ms": 8
},
{
"id": "schema-org",
"status": "ok",
- "classes": 1009,
- "properties": 0,
- "triples_before": 17823,
- "triples_rdfs": 21854,
- "inferred_rdfs": 4031,
- "triples_owl": 31493,
- "inferred_owl": 13670,
- "fetch_ms": 558,
- "rdfs_reason_ms": 57,
- "owl_reason_ms": 117
+ "classes": 1032,
+ "properties": 1674,
+ "triples_before": 17949,
+ "triples_rdfs": 22031,
+ "inferred_rdfs": 4082,
+ "triples_owl": 32185,
+ "inferred_owl": 14236,
+ "fetch_ms": 679,
+ "rdfs_reason_ms": 56,
+ "owl_reason_ms": 136
},
{
"id": "foaf",
"status": "ok",
- "classes": 28,
- "properties": 60,
+ "classes": 15,
+ "properties": 62,
"triples_before": 631,
"triples_rdfs": 635,
"inferred_rdfs": 4,
"triples_owl": 662,
"inferred_owl": 31,
- "fetch_ms": 940,
- "rdfs_reason_ms": 3,
- "owl_reason_ms": 2
+ "fetch_ms": 656,
+ "rdfs_reason_ms": 1,
+ "owl_reason_ms": 1
},
{
"id": "skos",
"status": "ok",
"classes": 5,
- "properties": 18,
+ "properties": 28,
"triples_before": 252,
"triples_rdfs": 307,
"inferred_rdfs": 55,
"triples_owl": 307,
"inferred_owl": 55,
- "fetch_ms": 218,
- "rdfs_reason_ms": 2,
+ "fetch_ms": 81,
+ "rdfs_reason_ms": 1,
"owl_reason_ms": 1
},
{
"id": "dc-elements",
"status": "ok",
"classes": 0,
- "properties": 0,
+ "properties": 15,
"triples_before": 107,
"triples_rdfs": 107,
"inferred_rdfs": 0,
"triples_owl": 107,
"inferred_owl": 0,
- "fetch_ms": 371,
- "rdfs_reason_ms": 2,
- "owl_reason_ms": 1
+ "fetch_ms": 315,
+ "rdfs_reason_ms": 1,
+ "owl_reason_ms": 0
},
{
"id": "dc-terms",
"status": "ok",
- "classes": 22,
- "properties": 0,
+ "classes": 23,
+ "properties": 70,
"triples_before": 700,
"triples_rdfs": 956,
"inferred_rdfs": 256,
"triples_owl": 961,
"inferred_owl": 261,
- "fetch_ms": 259,
- "rdfs_reason_ms": 4,
- "owl_reason_ms": 3
+ "fetch_ms": 129,
+ "rdfs_reason_ms": 2,
+ "owl_reason_ms": 2
},
{
"id": "dcat",
"status": "ok",
- "classes": 58,
- "properties": 89,
+ "classes": 49,
+ "properties": 110,
"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
+ "fetch_ms": 356,
+ "rdfs_reason_ms": 7,
+ "owl_reason_ms": 8
},
{
"id": "void",
"status": "ok",
- "classes": 8,
- "properties": 8,
+ "classes": 7,
+ "properties": 27,
"triples_before": 216,
"triples_rdfs": 216,
"inferred_rdfs": 0,
"triples_owl": 216,
"inferred_owl": 0,
- "fetch_ms": 531,
- "rdfs_reason_ms": 2,
- "owl_reason_ms": 2
+ "fetch_ms": 333,
+ "rdfs_reason_ms": 0,
+ "owl_reason_ms": 0
},
{
"id": "doap",
"status": "ok",
- "classes": 17,
- "properties": 0,
+ "classes": 22,
+ "properties": 45,
"triples_before": 741,
"triples_rdfs": 741,
"inferred_rdfs": 0,
"triples_owl": 741,
"inferred_owl": 0,
- "fetch_ms": 727,
- "rdfs_reason_ms": 2,
- "owl_reason_ms": 2
+ "fetch_ms": 352,
+ "rdfs_reason_ms": 1,
+ "owl_reason_ms": 1
},
{
"id": "prov-o",
"status": "ok",
- "classes": 39,
- "properties": 50,
+ "classes": 31,
+ "properties": 59,
"triples_before": 1146,
"triples_rdfs": 1348,
"inferred_rdfs": 202,
"triples_owl": 1349,
"inferred_owl": 203,
- "fetch_ms": 472,
- "rdfs_reason_ms": 5,
- "owl_reason_ms": 4
+ "fetch_ms": 204,
+ "rdfs_reason_ms": 3,
+ "owl_reason_ms": 2
},
{
"id": "owl-time",
"status": "ok",
- "classes": 23,
+ "classes": 29,
"properties": 58,
"triples_before": 1296,
"triples_rdfs": 1461,
"inferred_rdfs": 165,
"triples_owl": 1461,
"inferred_owl": 165,
- "fetch_ms": 256,
- "rdfs_reason_ms": 5,
- "owl_reason_ms": 4
+ "fetch_ms": 206,
+ "rdfs_reason_ms": 3,
+ "owl_reason_ms": 2
},
{
"id": "org",
"status": "ok",
- "classes": 22,
- "properties": 33,
+ "classes": 17,
+ "properties": 38,
"triples_before": 748,
"triples_rdfs": 757,
"inferred_rdfs": 9,
"triples_owl": 769,
"inferred_owl": 21,
- "fetch_ms": 639,
- "rdfs_reason_ms": 4,
- "owl_reason_ms": 3
+ "fetch_ms": 259,
+ "rdfs_reason_ms": 2,
+ "owl_reason_ms": 2
},
{
"id": "ssn",
"status": "ok",
- "classes": 35,
+ "classes": 23,
"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
+ "fetch_ms": 262,
+ "rdfs_reason_ms": 2,
+ "owl_reason_ms": 2
},
{
"id": "sosa",
"status": "ok",
- "classes": 29,
+ "classes": 17,
"properties": 23,
"triples_before": 396,
"triples_rdfs": 396,
"inferred_rdfs": 0,
"triples_owl": 396,
"inferred_owl": 0,
- "fetch_ms": 1264,
- "rdfs_reason_ms": 3,
- "owl_reason_ms": 2
+ "fetch_ms": 323,
+ "rdfs_reason_ms": 1,
+ "owl_reason_ms": 1
},
{
"id": "geosparql",
"status": "ok",
- "classes": 12,
+ "classes": 15,
"properties": 54,
"triples_before": 796,
"triples_rdfs": 800,
"inferred_rdfs": 4,
"triples_owl": 808,
"inferred_owl": 12,
- "fetch_ms": 733,
- "rdfs_reason_ms": 3,
- "owl_reason_ms": 3
+ "fetch_ms": 227,
+ "rdfs_reason_ms": 1,
+ "owl_reason_ms": 1
},
{
"id": "locn",
"status": "ok",
- "classes": 2,
- "properties": 0,
+ "classes": 3,
+ "properties": 15,
"triples_before": 206,
"triples_rdfs": 206,
"inferred_rdfs": 0,
"triples_owl": 206,
"inferred_owl": 0,
- "fetch_ms": 1031,
- "rdfs_reason_ms": 2,
+ "fetch_ms": 363,
+ "rdfs_reason_ms": 1,
"owl_reason_ms": 1
},
{
"id": "shacl",
"status": "ok",
- "classes": 40,
- "properties": 0,
+ "classes": 48,
+ "properties": 101,
"triples_before": 1128,
"triples_rdfs": 1396,
"inferred_rdfs": 268,
"triples_owl": 1396,
"inferred_owl": 268,
- "fetch_ms": 662,
- "rdfs_reason_ms": 5,
- "owl_reason_ms": 3
+ "fetch_ms": 277,
+ "rdfs_reason_ms": 2,
+ "owl_reason_ms": 2
},
{
"id": "vcard",
"status": "ok",
- "classes": 75,
+ "classes": 64,
"properties": 84,
"triples_before": 882,
"triples_rdfs": 882,
"inferred_rdfs": 0,
"triples_owl": 928,
"inferred_owl": 46,
- "fetch_ms": 854,
- "rdfs_reason_ms": 3,
- "owl_reason_ms": 3
+ "fetch_ms": 316,
+ "rdfs_reason_ms": 1,
+ "owl_reason_ms": 1
},
{
"id": "odrl",
"status": "ok",
- "classes": 71,
- "properties": 50,
+ "classes": 31,
+ "properties": 58,
"triples_before": 2157,
"triples_rdfs": 2230,
"inferred_rdfs": 73,
"triples_owl": 2233,
"inferred_owl": 76,
- "fetch_ms": 798,
- "rdfs_reason_ms": 6,
- "owl_reason_ms": 5
+ "fetch_ms": 212,
+ "rdfs_reason_ms": 3,
+ "owl_reason_ms": 3
},
{
"id": "cc",
"status": "ok",
- "classes": 6,
- "properties": 0,
+ "classes": 21,
+ "properties": 13,
"triples_before": 115,
"triples_rdfs": 115,
"inferred_rdfs": 0,
"triples_owl": 164,
"inferred_owl": 49,
- "fetch_ms": 184,
+ "fetch_ms": 564,
"rdfs_reason_ms": 1,
"owl_reason_ms": 1
},
{
"id": "sioc",
"status": "ok",
- "classes": 14,
- "properties": 83,
+ "classes": 17,
+ "properties": 86,
"triples_before": 615,
"triples_rdfs": 615,
"inferred_rdfs": 0,
"triples_owl": 617,
"inferred_owl": 2,
- "fetch_ms": 863,
- "rdfs_reason_ms": 3,
- "owl_reason_ms": 2
+ "fetch_ms": 364,
+ "rdfs_reason_ms": 1,
+ "owl_reason_ms": 1
},
{
"id": "adms",
"status": "ok",
- "classes": 4,
- "properties": 13,
+ "classes": 8,
+ "properties": 16,
"triples_before": 151,
"triples_rdfs": 151,
"inferred_rdfs": 0,
"triples_owl": 151,
"inferred_owl": 0,
- "fetch_ms": 747,
- "rdfs_reason_ms": 3,
+ "fetch_ms": 377,
+ "rdfs_reason_ms": 1,
"owl_reason_ms": 1
},
{
"id": "goodrelations",
"status": "ok",
- "classes": 98,
+ "classes": 43,
"properties": 102,
"triples_before": 1834,
"triples_rdfs": 1849,
"inferred_rdfs": 15,
"triples_owl": 1876,
"inferred_owl": 42,
- "fetch_ms": 2299,
- "rdfs_reason_ms": 6,
- "owl_reason_ms": 6
+ "fetch_ms": 303,
+ "rdfs_reason_ms": 3,
+ "owl_reason_ms": 4
},
{
"id": "fibo",
"status": "ok",
"classes": 0,
"properties": 0,
- "triples_before": 45,
- "triples_rdfs": 45,
+ "triples_before": 48,
+ "triples_rdfs": 48,
"inferred_rdfs": 0,
- "triples_owl": 45,
+ "triples_owl": 48,
"inferred_owl": 0,
- "fetch_ms": 1524,
- "rdfs_reason_ms": 3,
- "owl_reason_ms": 1
+ "fetch_ms": 505,
+ "rdfs_reason_ms": 4,
+ "owl_reason_ms": 4
},
{
"id": "qudt",
"status": "ok",
- "classes": 73,
- "properties": 175,
+ "classes": 99,
+ "properties": 196,
"triples_before": 2434,
"triples_rdfs": 4008,
"inferred_rdfs": 1574,
"triples_owl": 4015,
"inferred_owl": 1581,
- "fetch_ms": 2934,
- "rdfs_reason_ms": 14,
- "owl_reason_ms": 9
+ "fetch_ms": 2100,
+ "rdfs_reason_ms": 50,
+ "owl_reason_ms": 49
}
]
\ No newline at end of file
diff --git a/benchmark/oaei/README.md b/benchmark/oaei/README.md
index 5c2394f8..88416aba 100644
--- a/benchmark/oaei/README.md
+++ b/benchmark/oaei/README.md
@@ -6,9 +6,9 @@ Evaluates `onto_align` against the [Ontology Alignment Evaluation Initiative (OA
### Anatomy (Mouse-Human)
-The OAEI Anatomy track aligns the NCI Thesaurus (mouse anatomy, 2,737 classes) with the Foundational Model of Anatomy (human anatomy, 3,304 classes). The reference alignment contains 1,516 equivalence mappings.
+The OAEI Anatomy track aligns the Adult Mouse Anatomy ontology (2,744 classes, MGI) with the human anatomy fragment of the NCI Thesaurus (3,304 classes). The reference alignment contains 1,516 equivalence mappings.
-This is the most widely reported OAEI track — nearly all alignment systems publish results on it, making it the best basis for comparison.
+This is the most widely reported OAEI track: nearly all alignment systems publish results on it, which makes it the best basis for comparison.
### Conference
@@ -26,14 +26,67 @@ python3 run_oaei_benchmark.py
# Results appear in results/
```
+## Results
+
+Measured with `onto_align` at `min_confidence = 0.8`, stable 1-to-1 matching, label penalty on zero structural evidence. No external background knowledge (UMLS, BioPortal, LLM oracle) is used. Raw output in `results/oaei_results.json` and `results/conference_results.json`.
+
+| Track | Precision | Recall | F1 | Predicted | Reference | Runtime |
+|---|---:|---:|---:|---:|---:|---:|
+| Anatomy | 0.963 | 0.733 | **0.832** | 1,154 | 1,516 | 47s |
+| Conference (15 of 21 pairs, micro) | 0.693 | 0.320 | **0.438** | 101 | 219 | — |
+
## Comparison Systems
-Results are compared against published OAEI 2023.5 results:
+The full OAEI 2025 field, reproduced from Tables 9 and 10 of the official results paper ([CEUR Vol-4144, om2025-oaei-paper0](https://ceur-ws.org/Vol-4144/om2025-oaei-paper0.pdf)). Both baselines are included. No systems are omitted.
+
+### Anatomy (Table 9, ordered by F-measure)
+
+| System | Precision | F1 | Recall | Recall+ |
+|---|---:|---:|---:|---:|
+| Matcha | 0.951 | **0.941** | 0.931 | 0.820 |
+| Agent-OM | 0.959 | **0.920** | 0.883 | 0.698 |
+| ALIN | 0.942 | **0.912** | 0.884 | 0.700 |
+| LogMapLLM | 0.964 | **0.899** | 0.842 | 0.588 |
+| LogMap-Bio | 0.885 | **0.898** | 0.911 | 0.766 |
+| MDMapper | 0.899 | **0.889** | 0.879 | 0.707 |
+| LogMap | 0.917 | **0.881** | 0.848 | 0.602 |
+| LogMapKG | 0.917 | **0.881** | 0.848 | 0.602 |
+| **Open Ontologies** | **0.963** | **0.832** | **0.733** | — |
+| DRAL-OA | 0.830 | **0.828** | 0.827 | 0.560 |
+| LogMapLt | 0.962 | **0.828** | 0.728 | 0.288 |
+| *StringEquiv (baseline)* | 0.997 | **0.766** | 0.622 | 0.000 |
+| LSMatch | 0.952 | **0.761** | 0.634 | 0.037 |
+
+Open Ontologies ranks **9th of 13**. Precision is third in the field; recall is second-from-bottom among non-baseline systems. F1 is level with LogMapLt, the lightweight lexical matcher, and **+0.066** over the `StringEquiv` string-equality baseline. Every system above it uses biomedical background knowledge, an LLM oracle, or both.
+
+`Recall+` (recall excluding trivial same-normalised-label correspondences) is the metric that most exposes the gap and is not yet computed here; LogMapLt scores 0.288 on it against Matcha's 0.820.
+
+### Conference (Table 10, `rar2` reference, classes and properties, F1-optimal threshold)
+
+| System | Precision | F1 | Recall | Incoherent align. |
+|---|---:|---:|---:|---:|
+| ALIN | 0.62 | **0.65** | 0.68 | 7 |
+| LogMap | 0.76 | **0.64** | 0.56 | 0 |
+| Matcha | 0.77 | **0.63** | 0.53 | 9 |
+| Agent-OM | 0.64 | **0.61** | 0.59 | 8 |
+| MDMapper | 0.69 | **0.58** | 0.50 | 3 |
+| *edna (baseline)* | 0.74 | **0.56** | 0.45 | — |
+| LogMapLt | 0.68 | **0.56** | 0.47 | 3 |
+| LSMatch | 0.83 | **0.55** | 0.41 | 0 |
+| *StringEquiv (baseline)* | 0.76 | **0.53** | 0.41 | — |
+| **Open Ontologies** | **0.693** | **0.438** | **0.320** | not measured |
+
+Two caveats, both against this system. The OAEI rows cover all 21 pairs against `rar2` at each system's F1-optimal threshold; the Open Ontologies row covers 15 pairs at a fixed threshold, so the comparison is indicative rather than like-for-like. Even allowing for that, the result is **below every participating system and below both baselines**.
+
+Per-pair spread (see `results/conference_results.json`): best `ekaw-iasted` 0.588 and `ekaw-sigkdd` 0.533; worst `edas-sigkdd` 0.211.
+
+## Ablation: stable matching dominates
+
+Five weight configurations were run over the six structural signal weights (`full`, `label_only`, `no_label`, `equal`, `label_parent`). Measured F1 spans 0.8303 to 0.8336, a spread of **0.0033**. Removing stable 1-to-1 matching collapses the result:
+
+| Configuration | Precision | Recall | F1 | Candidates |
+|---|---:|---:|---:|---:|
+| Stable matching (any weight configuration) | 0.963 | 0.733 | **0.832** | 1,154 |
+| No stable matching | 0.102 | 0.846 | **0.182** | 12,557 |
-| System | Anatomy F1 | Conference F1 |
-|--------|-----------|--------------|
-| LogMap | 0.912 | 0.670 |
-| AML | 0.936 | 0.680 |
-| BERTMap | 0.924 | 0.710 |
-| OLaLa | 0.890 | 0.720 |
-| **Open Ontologies** | **TBD** | **TBD** |
+This, rather than the headline F1, is the transferable finding from the track: the assignment constraint carries the result and the signal weights are close to irrelevant once it is applied. Raw ablation data in `results/ablation_signals.json`.
diff --git a/benchmark/oaei/results/oaei_results.json b/benchmark/oaei/results/oaei_results.json
index f50a01fb..c9f142b4 100644
--- a/benchmark/oaei/results/oaei_results.json
+++ b/benchmark/oaei/results/oaei_results.json
@@ -9,7 +9,8 @@
"onto_align"
],
"date": "2026-04-21",
- "notes": "v2: stable matching + label penalty (fixes #8). Previous results (v1, 2026-03-31) in oaei_results_v1.json"
+ "notes": "v2: stable matching + label penalty (fixes #8). Previous results (v1, 2026-03-31) in oaei_results_v1.json",
+ "comparators": "OAEI 2025 (CEUR Vol-4144, om2025-oaei-paper0)"
},
"anatomy": {
"precision": 0.963,
@@ -21,7 +22,7 @@
"reference_size": 1516,
"predicted_size": 1154,
"time_s": 47,
- "min_confidence": 0.80,
+ "min_confidence": 0.8,
"changes": [
"stable 1-to-1 matching (keep top candidate per source and target class)",
"label penalty (label_sim * 0.85) when structural signals are zero",
@@ -41,61 +42,146 @@
"notes": "Before stable matching and label penalty"
},
"conference": {
- "pairs": [],
- "micro_avg": {
- "precision": 0.0,
- "recall": 0.0,
- "f1": 0.0,
- "tp": 0,
- "fp": 0,
- "fn": 0
- },
- "notes": "Conference track unsolved. See issue #10."
+ "pairs_evaluated": 15,
+ "pairs_total": 21,
+ "precision": 0.6931,
+ "recall": 0.3196,
+ "f1": 0.4375,
+ "tp": 70,
+ "fp": 31,
+ "fn": 149,
+ "averaging": "micro",
+ "per_pair": "see conference_results.json",
+ "notes": "15 of 21 pairs at a fixed confidence threshold, so not like-for-like with the published rows (all 21 pairs, rar2, F1-optimal threshold). Below every participating system and both baselines either way. See issue #10."
},
"published": {
+ "_source": "OAEI 2025 official results, CEUR-WS Vol-4144 om2025-oaei-paper0, Tables 9 and 10",
+ "_url": "https://ceur-ws.org/Vol-4144/om2025-oaei-paper0.pdf",
+ "_note": "Complete participating field including both baselines. No systems omitted.",
"anatomy": {
+ "Matcha": {
+ "precision": 0.951,
+ "recall": 0.931,
+ "f1": 0.941,
+ "recall_plus": 0.82
+ },
+ "Agent-OM": {
+ "precision": 0.959,
+ "recall": 0.883,
+ "f1": 0.92,
+ "recall_plus": 0.698
+ },
+ "ALIN": {
+ "precision": 0.942,
+ "recall": 0.884,
+ "f1": 0.912,
+ "recall_plus": 0.7
+ },
+ "LogMapLLM": {
+ "precision": 0.964,
+ "recall": 0.842,
+ "f1": 0.899,
+ "recall_plus": 0.588
+ },
+ "LogMap-Bio": {
+ "precision": 0.885,
+ "recall": 0.911,
+ "f1": 0.898,
+ "recall_plus": 0.766
+ },
+ "MDMapper": {
+ "precision": 0.899,
+ "recall": 0.879,
+ "f1": 0.889,
+ "recall_plus": 0.707
+ },
"LogMap": {
- "precision": 0.921,
- "recall": 0.903,
- "f1": 0.912
- },
- "AML": {
- "precision": 0.95,
- "recall": 0.922,
- "f1": 0.936
- },
- "BERTMap": {
- "precision": 0.932,
- "recall": 0.916,
- "f1": 0.924
- },
- "OLaLa": {
- "precision": 0.87,
- "recall": 0.91,
- "f1": 0.89
+ "precision": 0.917,
+ "recall": 0.848,
+ "f1": 0.881,
+ "recall_plus": 0.602
+ },
+ "LogMapKG": {
+ "precision": 0.917,
+ "recall": 0.848,
+ "f1": 0.881,
+ "recall_plus": 0.602
+ },
+ "DRAL-OA": {
+ "precision": 0.83,
+ "recall": 0.827,
+ "f1": 0.828,
+ "recall_plus": 0.56
+ },
+ "LogMapLt": {
+ "precision": 0.962,
+ "recall": 0.728,
+ "f1": 0.828,
+ "recall_plus": 0.288
+ },
+ "StringEquiv": {
+ "precision": 0.997,
+ "recall": 0.622,
+ "f1": 0.766,
+ "recall_plus": 0.0,
+ "baseline": true
+ },
+ "LSMatch": {
+ "precision": 0.952,
+ "recall": 0.634,
+ "f1": 0.761,
+ "recall_plus": 0.037
}
},
"conference": {
+ "_reference": "rar2, classes and properties, each system at its F1-optimal threshold, all 21 pairs",
+ "ALIN": {
+ "precision": 0.62,
+ "recall": 0.68,
+ "f1": 0.65
+ },
"LogMap": {
- "precision": 0.72,
- "recall": 0.62,
- "f1": 0.67
+ "precision": 0.76,
+ "recall": 0.56,
+ "f1": 0.64
},
- "AML": {
- "precision": 0.74,
- "recall": 0.63,
- "f1": 0.68
+ "Matcha": {
+ "precision": 0.77,
+ "recall": 0.53,
+ "f1": 0.63
},
- "BERTMap": {
- "precision": 0.7,
- "recall": 0.72,
- "f1": 0.71
+ "Agent-OM": {
+ "precision": 0.64,
+ "recall": 0.59,
+ "f1": 0.61
},
- "OLaLa": {
+ "MDMapper": {
"precision": 0.69,
- "recall": 0.75,
- "f1": 0.72
+ "recall": 0.5,
+ "f1": 0.58
+ },
+ "edna": {
+ "precision": 0.74,
+ "recall": 0.45,
+ "f1": 0.56,
+ "baseline": true
+ },
+ "LogMapLt": {
+ "precision": 0.68,
+ "recall": 0.47,
+ "f1": 0.56
+ },
+ "LSMatch": {
+ "precision": 0.83,
+ "recall": 0.41,
+ "f1": 0.55
+ },
+ "StringEquiv": {
+ "precision": 0.76,
+ "recall": 0.41,
+ "f1": 0.53,
+ "baseline": true
}
}
}
-}
+}
\ No newline at end of file
diff --git a/benchmark/ontoaxiom/results/condition_d/condition_d_scores_legacy.json b/benchmark/ontoaxiom/results/condition_d/condition_d_scores_legacy.json
new file mode 100644
index 00000000..40096464
--- /dev/null
+++ b/benchmark/ontoaxiom/results/condition_d/condition_d_scores_legacy.json
@@ -0,0 +1,444 @@
+{
+ "pizza": {
+ "per_type": {
+ "subclassof": {
+ "tp": 4,
+ "fp": 76,
+ "fn": 76,
+ "p": 0.05,
+ "r": 0.05,
+ "f1": 0.05
+ },
+ "disjoint": {
+ "tp": 94,
+ "fp": 301,
+ "fn": 691,
+ "p": 0.238,
+ "r": 0.1197,
+ "f1": 0.1593
+ },
+ "domain": {
+ "tp": 3,
+ "fp": 0,
+ "fn": 0,
+ "p": 1.0,
+ "r": 1.0,
+ "f1": 1.0
+ },
+ "range": {
+ "tp": 4,
+ "fp": 0,
+ "fn": 0,
+ "p": 1.0,
+ "r": 1.0,
+ "f1": 1.0
+ },
+ "subproperty": {
+ "tp": 0,
+ "fp": 4,
+ "fn": 4,
+ "p": 0.0,
+ "r": 0.0,
+ "f1": 0.0
+ }
+ },
+ "overall": {
+ "tp": 105,
+ "fp": 381,
+ "fn": 771,
+ "f1": 0.1542
+ }
+ },
+ "foaf": {
+ "per_type": {
+ "subclassof": {
+ "tp": 8,
+ "fp": 2,
+ "fn": 2,
+ "p": 0.8,
+ "r": 0.8,
+ "f1": 0.8
+ },
+ "disjoint": {
+ "tp": 8,
+ "fp": 0,
+ "fn": 0,
+ "p": 1.0,
+ "r": 1.0,
+ "f1": 1.0
+ },
+ "domain": {
+ "tp": 34,
+ "fp": 20,
+ "fn": 21,
+ "p": 0.6296,
+ "r": 0.6182,
+ "f1": 0.6239
+ },
+ "range": {
+ "tp": 33,
+ "fp": 20,
+ "fn": 22,
+ "p": 0.6226,
+ "r": 0.6,
+ "f1": 0.6111
+ },
+ "subproperty": {
+ "tp": 7,
+ "fp": 5,
+ "fn": 6,
+ "p": 0.5833,
+ "r": 0.5385,
+ "f1": 0.56
+ }
+ },
+ "overall": {
+ "tp": 90,
+ "fp": 47,
+ "fn": 51,
+ "f1": 0.6475
+ }
+ },
+ "gufo": {
+ "per_type": {
+ "subclassof": {
+ "tp": 8,
+ "fp": 48,
+ "fn": 48,
+ "p": 0.1429,
+ "r": 0.1429,
+ "f1": 0.1429
+ },
+ "disjoint": {
+ "tp": 7,
+ "fp": 28,
+ "fn": 34,
+ "p": 0.2,
+ "r": 0.1707,
+ "f1": 0.1842
+ },
+ "domain": {
+ "tp": 42,
+ "fp": 6,
+ "fn": 2,
+ "p": 0.875,
+ "r": 0.9545,
+ "f1": 0.913
+ },
+ "range": {
+ "tp": 38,
+ "fp": 5,
+ "fn": 5,
+ "p": 0.8837,
+ "r": 0.8837,
+ "f1": 0.8837
+ },
+ "subproperty": {
+ "tp": 1,
+ "fp": 13,
+ "fn": 13,
+ "p": 0.0714,
+ "r": 0.0714,
+ "f1": 0.0714
+ }
+ },
+ "overall": {
+ "tp": 96,
+ "fp": 100,
+ "fn": 102,
+ "f1": 0.4873
+ }
+ },
+ "time": {
+ "per_type": {
+ "subclassof": {
+ "tp": 3,
+ "fp": 13,
+ "fn": 13,
+ "p": 0.1875,
+ "r": 0.1875,
+ "f1": 0.1875
+ },
+ "disjoint": {
+ "tp": 0,
+ "fp": 1,
+ "fn": 1,
+ "p": 0.0,
+ "r": 0.0,
+ "f1": 0.0
+ },
+ "domain": {
+ "tp": 0,
+ "fp": 53,
+ "fn": 53,
+ "p": 0.0,
+ "r": 0.0,
+ "f1": 0.0
+ },
+ "range": {
+ "tp": 0,
+ "fp": 55,
+ "fn": 55,
+ "p": 0.0,
+ "r": 0.0,
+ "f1": 0.0
+ },
+ "subproperty": {
+ "tp": 9,
+ "fp": 4,
+ "fn": 4,
+ "p": 0.6923,
+ "r": 0.6923,
+ "f1": 0.6923
+ }
+ },
+ "overall": {
+ "tp": 12,
+ "fp": 126,
+ "fn": 126,
+ "f1": 0.087
+ }
+ },
+ "saref": {
+ "per_type": {
+ "subclassof": {
+ "tp": 9,
+ "fp": 2,
+ "fn": 2,
+ "p": 0.8182,
+ "r": 0.8182,
+ "f1": 0.8182
+ },
+ "domain": {
+ "tp": 1,
+ "fp": 45,
+ "fn": 33,
+ "p": 0.0217,
+ "r": 0.0294,
+ "f1": 0.025
+ },
+ "range": {
+ "tp": 2,
+ "fp": 38,
+ "fn": 36,
+ "p": 0.05,
+ "r": 0.0526,
+ "f1": 0.0513
+ },
+ "subproperty": {
+ "tp": 8,
+ "fp": 2,
+ "fn": 0,
+ "p": 0.8,
+ "r": 1.0,
+ "f1": 0.8889
+ }
+ },
+ "overall": {
+ "tp": 20,
+ "fp": 87,
+ "fn": 71,
+ "f1": 0.202
+ }
+ },
+ "nordstream": {
+ "per_type": {
+ "subclassof": {
+ "tp": 14,
+ "fp": 6,
+ "fn": 6,
+ "p": 0.7,
+ "r": 0.7,
+ "f1": 0.7
+ },
+ "disjoint": {
+ "tp": 4,
+ "fp": 0,
+ "fn": 0,
+ "p": 1.0,
+ "r": 1.0,
+ "f1": 1.0
+ },
+ "domain": {
+ "tp": 0,
+ "fp": 1,
+ "fn": 1,
+ "p": 0.0,
+ "r": 0.0,
+ "f1": 0.0
+ },
+ "range": {
+ "tp": 0,
+ "fp": 1,
+ "fn": 1,
+ "p": 0.0,
+ "r": 0.0,
+ "f1": 0.0
+ }
+ },
+ "overall": {
+ "tp": 18,
+ "fp": 8,
+ "fn": 8,
+ "f1": 0.6923
+ }
+ },
+ "goodrelations": {
+ "per_type": {
+ "subclassof": {
+ "tp": 11,
+ "fp": 5,
+ "fn": 8,
+ "p": 0.6875,
+ "r": 0.5789,
+ "f1": 0.6286
+ },
+ "disjoint": {
+ "tp": 256,
+ "fp": 0,
+ "fn": 0,
+ "p": 1.0,
+ "r": 1.0,
+ "f1": 1.0
+ },
+ "domain": {
+ "tp": 1,
+ "fp": 95,
+ "fn": 37,
+ "p": 0.0104,
+ "r": 0.0263,
+ "f1": 0.0149
+ },
+ "range": {
+ "tp": 3,
+ "fp": 89,
+ "fn": 91,
+ "p": 0.0326,
+ "r": 0.0319,
+ "f1": 0.0323
+ },
+ "subproperty": {
+ "tp": 17,
+ "fp": 5,
+ "fn": 5,
+ "p": 0.7727,
+ "r": 0.7727,
+ "f1": 0.7727
+ }
+ },
+ "overall": {
+ "tp": 288,
+ "fp": 194,
+ "fn": 141,
+ "f1": 0.6323
+ }
+ },
+ "era": {
+ "per_type": {
+ "subclassof": {
+ "tp": 15,
+ "fp": 5,
+ "fn": 5,
+ "p": 0.75,
+ "r": 0.75,
+ "f1": 0.75
+ },
+ "disjoint": {
+ "tp": 3,
+ "fp": 1,
+ "fn": 1,
+ "p": 0.75,
+ "r": 0.75,
+ "f1": 0.75
+ },
+ "domain": {
+ "tp": 1,
+ "fp": 79,
+ "fn": 269,
+ "p": 0.0125,
+ "r": 0.0037,
+ "f1": 0.0057
+ },
+ "range": {
+ "tp": 6,
+ "fp": 64,
+ "fn": 448,
+ "p": 0.0857,
+ "r": 0.0132,
+ "f1": 0.0229
+ },
+ "subproperty": {
+ "tp": 3,
+ "fp": 13,
+ "fn": 22,
+ "p": 0.1875,
+ "r": 0.12,
+ "f1": 0.1463
+ }
+ },
+ "overall": {
+ "tp": 28,
+ "fp": 162,
+ "fn": 745,
+ "f1": 0.0582
+ }
+ },
+ "music": {
+ "per_type": {
+ "subclassof": {
+ "tp": 42,
+ "fp": 17,
+ "fn": 17,
+ "p": 0.7119,
+ "r": 0.7119,
+ "f1": 0.7119
+ },
+ "disjoint": {
+ "tp": 0,
+ "fp": 2,
+ "fn": 2,
+ "p": 0.0,
+ "r": 0.0,
+ "f1": 0.0
+ },
+ "domain": {
+ "tp": 39,
+ "fp": 100,
+ "fn": 64,
+ "p": 0.2806,
+ "r": 0.3786,
+ "f1": 0.3223
+ },
+ "range": {
+ "tp": 77,
+ "fp": 48,
+ "fn": 48,
+ "p": 0.616,
+ "r": 0.616,
+ "f1": 0.616
+ },
+ "subproperty": {
+ "tp": 27,
+ "fp": 50,
+ "fn": 54,
+ "p": 0.3506,
+ "r": 0.3333,
+ "f1": 0.3418
+ }
+ },
+ "overall": {
+ "tp": 185,
+ "fp": 217,
+ "fn": 185,
+ "f1": 0.4793
+ }
+ },
+ "_grand_total": {
+ "tp": 842,
+ "fp": 1322,
+ "fn": 2200,
+ "micro_f1": 0.3235,
+ "macro_f1": 0.4297,
+ "legacy_scoring": true
+ }
+}
\ No newline at end of file
diff --git a/benchmark/ontoaxiom/score_condition_d.py b/benchmark/ontoaxiom/score_condition_d.py
index f4baebef..5c840836 100644
--- a/benchmark/ontoaxiom/score_condition_d.py
+++ b/benchmark/ontoaxiom/score_condition_d.py
@@ -166,7 +166,11 @@ def main():
'micro_f1': round(micro, 4), 'macro_f1': round(macro, 4),
'legacy_scoring': bool(args.legacy)}
- out = os.path.join(EX_DIR, 'condition_d_scores.json')
+ # --legacy writes to its own file. It used to share the canonical path, so a
+ # single reproduction run silently replaced the corrected scores on disk with
+ # the broken ones the corrected scores exist to refute.
+ name = 'condition_d_scores_legacy.json' if args.legacy else 'condition_d_scores.json'
+ out = os.path.join(EX_DIR, name)
with open(out, 'w') as f:
json.dump(all_results, f, indent=2)
print(f'\nSaved to {out}')
diff --git a/docs/benchmarks.md b/docs/benchmarks.md
index 31354498..77b112c3 100644
--- a/docs/benchmarks.md
+++ b/docs/benchmarks.md
@@ -62,17 +62,35 @@ Given the Manchester Pizza OWL and a 13-row restaurant CSV, map the data into th
| Total RDF Triples | 0 | 0 | **2,540** |
| SPARQL Queryable | No | No | **Yes** |
-## OntoAxiom Benchmark — Three Approaches
+## OntoAxiom Benchmark — Tool Access vs Raw File vs Name Lists
[OntoAxiom](https://arxiv.org/abs/2512.05594) tests LLM axiom identification across 9 ontologies and 3,042 ground truth axioms.
-| Approach | F1 | vs o1 |
-| -------- | -- | ----- |
-| o1 (paper's best) | 0.197 | — |
-| **Bare Claude Opus** | **0.431** | **+119%** |
-| **MCP extraction** | **0.717** | **+264%** |
+All conditions below are scored by **one** evaluator (`score_all_conditions.py`): shared normalizer, `domain`/`range`-only pair flipping, empty ground-truth cells skipped, both averages reported. Numbers are rescored from stored predictions, with no new inference.
-Full writeup: [`benchmark/ontoaxiom/ONTOAXIOM_SHOWDOWN.md`](../benchmark/ontoaxiom/ONTOAXIOM_SHOWDOWN.md)
+| Model | Condition | Input | macro F1 | micro F1 |
+| ----- | --------- | ----- | -------: | -------: |
+| Claude Opus | A | Name lists only | 0.451 | 0.397 |
+| Claude Opus | **D** | **Full raw OWL** | **0.768** | **0.686** |
+| Qwen3-Coder-30B | A | Name lists only | 0.223 | 0.176 |
+| Qwen3-Coder-30B | **D** | **Full raw OWL** | **0.673** | **0.667** |
+| MCP + SPARQL extraction | C | Full OWL | 0.713 | 0.717 |
+
+Two things follow, and neither is the flattering reading.
+
+**Raw OWL helps.** The OntoAxiom paper's counterintuitive result, that an LLM given the full OWL file (0.323) scores below the same LLM given only name lists (0.431), does not survive a single shared scorer. Those two figures were produced by scripts that disagreed on three axes (camelCase normalisation, macro vs micro averaging, and which axiom types get pair-flipped), every one of which penalised the raw-OWL condition. Rescoring reverses the sign on **both** models under **both** averages. `score_condition_d.py --legacy` reproduces the 0.323 exactly, so the bug is demonstrated rather than asserted.
+
+**Tools buy auditability, not accuracy.** Scored correctly, MCP extraction and raw-file reading are at parity: raw OWL wins macro (0.768 vs 0.713), extraction wins micro (0.717 vs 0.686). The remaining case for the tool layer is that every MCP pair traces to a SPARQL query against real triples, whereas a model reading a file can hallucinate a plausible pair and no F1 score will identify which one.
+
+The OntoAxiom paper reports o1 at F1 = 0.197 as its best system. That figure is **not** used as a comparison baseline here, because the paper does not state which average it is, and mixing statistics is precisely the error being corrected above.
+
+Results are **single-run** at temperature 0.2, not averaged over seeds. Several benchmark ontologies (Pizza, FOAF, OWL-Time) are widely published and likely present in pretraining data, so bare-LLM scores are contamination-inclusive baselines; the cross-model Qwen ablation exists to test whether an effect is a property of the tooling or of one vendor's model.
+
+Full writeup, including the three-bug analysis and reproduction commands: [`benchmark/ontoaxiom/ONTOAXIOM_SHOWDOWN.md`](../benchmark/ontoaxiom/ONTOAXIOM_SHOWDOWN.md)
+
+## OAEI Ontology Alignment
+
+Anatomy 0.832 F1 (9th of 13 in the OAEI 2025 field), Conference 0.438 (below every participating system and both baselines). Full field, both baselines, and the stable-matching ablation: [`benchmark/oaei/README.md`](../benchmark/oaei/README.md)
## Claim Verification — Compiled Reasoning vs HermiT
diff --git a/src/marketplace.rs b/src/marketplace.rs
index 854944c0..605a8121 100644
--- a/src/marketplace.rs
+++ b/src/marketplace.rs
@@ -10,7 +10,7 @@ pub struct MarketplaceEntry {
pub format: RdfFormat,
}
-/// Curated catalogue of 32 standard W3C/ISO/industry ontologies.
+/// Curated catalogue of 33 standard W3C/ISO/industry ontologies.
pub static CATALOGUE: &[MarketplaceEntry] = &[
// ── Foundational ──────────────────────────────────────────────
MarketplaceEntry {
diff --git a/src/server.rs b/src/server.rs
index 9bfd6257..1f14caa8 100644
--- a/src/server.rs
+++ b/src/server.rs
@@ -698,7 +698,7 @@ impl OpenOntologiesServer {
// ── Marketplace ────────────────────────────────────────────────────────
- #[tool(name = "onto_marketplace", description = "Browse and install standard ontologies from a curated catalogue of 32 W3C/ISO/industry standards. Actions: 'list' (browse catalogue, optional domain filter) or 'install' (fetch and load by ID)")]
+ #[tool(name = "onto_marketplace", description = "Browse and install standard ontologies from a curated catalogue of 33 W3C/ISO/industry standards. Actions: 'list' (browse catalogue, optional domain filter) or 'install' (fetch and load by ID)")]
async fn onto_marketplace(&self, Parameters(input): Parameters<OntoMarketplaceInput>) -> String {
use crate::marketplace;
match input.action.as_str() {