Elamur Groupants⌕
☰

onto-wikidata

The groupant beside onto/src/wikidata.rs in the Mova repository: what the code computes, what it never does, how to go back from its outputs, its invariants, cost and checks.

Facts

Implementation material. A Mova code model describes this code at one source revision: partial models, finite checks and their stated scope. It is not a reviewed general exposition, and its labels are shown as written, never raised.

Components

componentlabelwhere
approximantpartialapproximant
astpartialsyntax.json
compositionpartialcomposition
costpartialCost
descriptantpresentdescriptant
invariantpartialmodel.md
testsexecuted bounded checkstests

Obernants

The typed relations around the forward model: the behaviour complement (what the code never does), the reverse reconstruction (every input compatible with an output) and specialised views.

idtypelabelwhere
behavior_complementbehavior_complementpartial source derived modelbehavior_complement
reverse_reconstructionreverse_reconstructionpartial source derived modelreverse_reconstruction
array_defaultarray_defaultpartial source derived modelarray_default
category_gatecategory_gatepartial source derived modelcategory_gate
mapping_prioritymapping_prioritypartial source derived modelmapping_priority
probe_effectprobe_effectpartial source derived modelprobe_effect

Parts

Model text

descriptant

onto-wikidata

entity_json trim_end/one comma then first{ length>=2. map_or_seq discards all sequences; ids filters exact deprecated/missing. probe bounded bzip prefix tolerates read failure as stop text; emits class-bearing entities. English lexemes Q1860 choose en/en-gb/en-us. map_trial explicitP8814 then unique both sides then gloss>=2 strict lead; only first Q/WN.

Epoch 2026-10-31

Full source reviewed before changes; prospective predictions retained in the external wave29 receipt. Added tests preserve production behavior. dump_quirks actual serde array/deprecated/line gates executed; no probe/lexeme dump/map_trial or live data. Registration is partial modeling, not semantic proof.

approximant

Forward relation

entity_json trim_end/one comma then first{ length>=2. map_or_seq discards all sequences; ids filters exact deprecated/missing. probe bounded bzip prefix tolerates read failure as stop text; emits class-bearing entities. English lexemes Q1860 choose en/en-gb/en-us. map_trial explicitP8814 then unique both sides then gloss>=2 strict lead; only first Q/WN.

Scoped equation

ids(v)=[id(s)|rank(s)!=deprecated and datavalue.value.id exists]. entity_json(t)=trim_end(t) minus one final comma if len>=2 and starts{; validity deferred to serde.

Domain: finite in-memory synthetic inputs and fresh tiny temporary fixtures, valid graph/CSR/rank coordinates when graph APIs are used, sufficient resources and representable integer intermediates. Malformed-input behavior is only claimed where explicitly stated; no universal panic-freedom. External teacher, live dump, corpus and database effects were not executed.

Executable approximant gap: no useful percentage metric established for these categorical/effectful observations. No surrogate or production substitution. Future caps 1/2/5/10% require a metric/domain and evidence; no numerical error bound follows here.

invariant

Invariant

Leading space object rejected. category noun/proper→n,verbv,adja,adverbr elseNone. toks stop/byte-len>2 before removing all trailing s. ExplicitWN bypasses lemma failure; gloss tie refuses. Empty probe ratios may nonfinite.

Cost

Streaming O(bytes) one line; trial loads TSV and perlex maps, tokenizes/sorts senses O(S log S). Ratios/timings are observations not bounds.

Domain: finite in-memory synthetic inputs and fresh tiny temporary fixtures, valid graph/CSR/rank coordinates when graph APIs are used, sufficient resources and representable integer intermediates. Malformed-input behavior is only claimed where explicitly stated; no universal panic-freedom. External teacher, live dump, corpus and database effects were not executed.

composition

Composition

entity_json trim_end/one comma then first{ length>=2. map_or_seq discards all sequences; ids filters exact deprecated/missing. probe bounded bzip prefix tolerates read failure as stop text; emits class-bearing entities. English lexemes Q1860 choose en/en-gb/en-us. map_trial explicitP8814 then unique both sides then gloss>=2 strict lead; only first Q/WN.

Fragment dump-line-and-rank covers bytes [3353,3867); its equation contributes the indicated local relation. Other source branches/effects remain in the parent model; fragment does not inherit a whole-file proof.

Actual joins: wdx::Tsv emits rank-bearing unquoted schemas read by wdgraph and wdlex; wdgraph rebuilds local indices so wdwalk/rank_kinds must remap Q IDs. wdalign source masks serialize through src_names into wdwalk::n_sources_str (all16 categories checked). Wd uses first-step P31 even for present graph nodes, whereas wdwalk::run only adds P31 for absent graph Qs: these are distinct adapters. wdwalk candidates feed coresel confirmation; wdvmm parsing does not prove truth. wsd consumes model::Graph, kb::up/ancestors, query::lookup and core::of_concept; eval scores query::Answer rather than proof correctness. build::Builder consumes Zip::read; central/local offsets and method gates are not full ZIP validation.

models

behavior_complement

Deprecated IDs and non-English senses excluded. Equal top gloss cannot map. Direct P8814 may ignore lemma/category mismatch; no stronger guarantee.

reverse_reconstruction

ID list permits discarded deprecated/missing statements. Tokens lose order/count/case/punctuation/trailing s. Mappings lose alternate Q/WN and losing senses.

array_default

Nonempty sequences also discarded, despite empty-array comment.

category_gate

Five recognized Q constants only.

mapping_priority

P8814 first existing synset before lemma uniqueness/gloss.

probe_effect

Read error converted stop report; parse bad skipped; output/report IO may fail.

tests

Executed checks

Native command: cargo test --offline -p onto --bin onto -- --exact --test-threads=1 wikidata::t::dump_quirks (add --release before -- for optimized profile). These exact names were included in the inspected selected command, twice per profile. All 21 sorted named outcomes matched across four runs. This source's compiled mutant returned exit101 with a failing assertion; exact source restoration followed by its passing test.

dump_quirks actual serde array/deprecated/line gates executed; no probe/lexeme dump/map_trial or live data.

Syntax generated twice identically after restoring source. Evidence receipts: debug-1/debug-2/release-1/release-2 logs, outcomes and exit files; negative-wikidata, restored-wikidata, controls.json and native-commands.json in external wave29 ontowiki run.

No strict Clippy claim: inherited dependency/target warnings observed; no production logic changed, focused rustfmt applied to added test modules only.

This page in Markdown → https://md.groupants.elamur.ai/free/en/mova/onto/src/wikidata.rs.groupant/