Elamur GroupantsโŒ•
โ˜ฐ

onto-wikidata-dump-line-and-rank

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
astpartial../syntax.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
rank_exactnessrank_exactnesspartial source derived modelrank_exactness
borrow_coordinateborrow_coordinatepartial source derived modelborrow_coordinate
deferred_validitydeferred_validitypartial source derived modeldeferred_validity
helper_costhelper_costpartial source derived modelhelper_cost

Model text

descriptant

onto-wikidata-dump-line-and-rank

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.

Epoch 2026-10-31: source byte range [3353,3867) with source and range hashes, sharing parent lexical AST. Partial source-derived scope, no semantic proof.

approximant

Scoped forward relation

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.

Scope bytes [3353,3867) only. Preconditions and exceptions in this scope's catalog; no claims for parent orchestration.

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

Scoped observations

Exclude exact deprecated/missing IDs, leading-space objects/brackets. Invalid {bad may pass lexical gate.

Cost

O(statements) iterator and trailing-line bytes scan; borrowed slices, no IO/allocation in these helpers.

composition

Scope contribution

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.

This fragment contributes only dump-line-and-rank. Parent owns input acquisition, surrounding dispatch and downstream joins. Complement and compatible antecedents are scoped in models.md rather than copied parent statements.

models

behavior_complement

Exclude exact deprecated/missing IDs, leading-space objects/brackets. Invalid {bad may pass lexical gate.

reverse_reconstruction

Output IDs admit arbitrary interspersed deprecated/missing and unused claims. Returned slice admits trailing whitespace and optional comma; no semantic recovery from lexical acceptance.

rank_exactness

Deprecated capitalD not filtered.

borrow_coordinate

Returned slice borrows input, no normalization/allocation.

deferred_validity

{bad accepted lexically, JSON decoder decides later.

helper_cost

O(statements+trailing bytes), no IO.

tests

Evidence boundary

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

Parent tests.md names actual selected tests; this scope does not claim all its branches executed. The compiled control listed in parent receipt applies only to the named mutated boundary.

This page in Markdown โ†’ https://md.groupants.elamur.ai/free/en/mova/onto/src/wikidata.rs.groupant/dump-line-and-rank.groupant/