A versioned vocabulary and reproducible release pipeline
2026-12-03
Researchers and software need a stable way to cite the Active Inference Ontology and trace its graph back to the historical terms list. We describe a versioned vocabulary that assigns persistent identifiers, preserves connection prose and spreadsheet provenance, and publishes checked JSON, CSV, browser, and manuscript artifacts. We assess how much of the source is documented, how the migration produces directed links, and which publication properties can be verified from the release.
Release v5 contains 429 terms and 238 directed mentions, derived from 40 records with connection prose. Core receives 111 mentions. Uniform target availability with each source’s edge count held fixed would allocate 35.1 to Core. The concentration persists when the rule retains only maximal matching spans, with 84 of 172 remaining edges targeting Core. A separate normalization comparison resolves 15 of 64 downstream labels, compared with 8 under case folding and whitespace collapse. The article makes these patterns and their limits available as a baseline for review.
Keywords Active inference, controlled vocabulary, ontology engineering, data provenance, reproducible publication
Active inference connects accounts of perception and action with mathematical tools for probabilistic modeling, approximate inference, and planning (Friston 2010; Parr et al. 2022; Da Costa et al. 2020). A term list makes this literature easier to navigate, but a spreadsheet label can change and an entry in its connections column can mix technical relations with ordinary prose. A research group citing a particular term and a software project annotating a model both need to know which record a label identifies, where the record came from, and what an exported relation actually asserts.
The Active Inference Ontology publishes the Institute’s May 25, 2023 content release as a versioned controlled vocabulary (Active Inference Institute 2023). The structured source separates term identity, display label, curation status, descriptions, connections, and provenance. The vocabulary portrait in fig. 1 shows how tag coverage varies across the curation lists. This article presents the source and its projections as a data descriptor and evaluates three questions.
sec. 3 defines these measurements. sec. 4 reports them for the current release, and sec. 5 explains what they support for curation and downstream reuse.
The study uses the full released dataset and the pinned declared GNN labels. Its unit of observation is a source record, relation, or declared label, as appropriate. It evaluates published evidence and algorithmic choices within this release. Mapping quality across scientific traditions would require a separate set of expert judgments.
Scientific usage can distinguish concepts whose names share words. For example, variational free energy is an objective for approximate posterior inference, whereas expected free energy is evaluated under predicted outcomes in accounts of policy selection (Blei et al. 2017; Da Costa et al. 2020; Parr et al. 2022). These are useful distinctions for vocabulary curation. A shared phrase can motivate cross-reading, while the mathematical commitments require the cited models and their assumptions.
Gruber treats an explicit specification of a conceptualization as a
basis for sharing and translating ontology commitments (Gruber 1993). Studer and colleagues
emphasize formal specification and shared understanding (Studer et al. 1998). SKOS formalizes a
concept-scheme layer with preferred and alternative labels, direct and
transitive hierarchy properties, and associative relations (Miles and Bechhofer 2009). OWL 2
supports axioms with defined model-theoretic semantics and reasoning
over those axioms (Motik et al. 2012). The present JSON
contract records stable term identifiers, display labels, aliases, and
relation records specific to the release. A lexical
mentions edge records a text match. A mapping to SKOS or
OWL would require an explicit decision about the appropriate concept and
property semantics.
These technologies support distinct checks. JSON Schema describes document structure and permitted values (Wright et al. 2022). SHACL validates RDF data graphs against shapes, including property value and cardinality requirements for selected focus nodes (Knublauch and Kontokostas 2017). OWL 2 reasoning depends on the interpretations permitted by the encoded axioms. The release uses JSON Schema and executable cross-record checks because its published object is a structured vocabulary and an evidence-bearing graph. It supplies the identity and provenance needed for later mappings and for evaluating the effect of those mappings.
Cross-vocabulary matching adds another layer. SSSOM represents a mapping with identified subject and object, a predicate, and metadata about how it was derived (Matentzoglu et al. 2022). That model helps explain why a uniquely normalized label is a useful candidate for integration review. A reviewer can then document the claimed relation, the evidence, and the curation method for the particular mapping. The GNN bridge reports the mechanically resolved candidates and the declared labels still unresolved by its rule.
Computational reproducibility concerns repeating an analysis with the same inputs and methods, while replication concerns a new study and its evidence (National Academies of Sciences, Engineering, and Medicine 2019). The publication workflow records inputs, executable transformations, and the environment that produced the reader artifacts (Peng 2011; Sandve et al. 2013; Wilson et al. 2017). FAIR principles motivate persistent citation and machine-readable artifacts, with interoperability depending on how another community interprets their identifiers and relations (Wilkinson et al. 2016). PROV-DM describes entities, activities, and agents in a general provenance model (Moreau and Missier 2013). Here, a render receipt connects identified inputs, an invocation, a toolchain, and one output digest. This makes the observed computation inspectable within the publication’s provenance scope.
We model one release with an ordered sequence of term records , explicit relation rows , release and schema metadata , and provenance records .
In eq. 1, each term record includes
a stable identifier, a canonical label, aliases, status, curation list,
nullable tag, definitions, examples, and the connection prose. The
source filename and original row are part of
.
The order in ontology.source.json is retained in the CSV
and exported term list. The eight-column CSV carries the spreadsheet
fields, and the structured JSON carries the identifiers, aliases,
status, relation rows, and provenance used by software.
Let be the stable identifier and let denote the canonical label at index or an alias at index . Define to collapse and trim whitespace and then fold case. The validator enforces both uniqueness conditions in eq. 2.
Migration assigned identifiers from original labels because the spreadsheet had no stable ID column. The present source stores identifiers explicitly, so a display-label edit can preserve identity.
Definition 1 (Stable term identity). Within a release, one stable identifier denotes one term record. Across releases, a retained identifier carries the record’s identity through changes to its display label or descriptive metadata. The collision checks in eq. 2 keep identity and name uniqueness separately verifiable.
The export projects a directed, typed graph. Write for the outgoing source rows of term , each consisting of a relation type and a target ID .
eq. 3 gives each source term one node and each valid relation record one edge. The validator rejects duplicate edges, unknown targets, self-relations, and unsupported relation types. Sorting by source, target, and type gives the JSON graph a stable edge order.
During migration, the converter searched the case-folded connection prose for other term labels. The pattern matches a complete case-folded canonical label and requires each adjacent character, where present, to lie outside Python’s Unicode word-character class. Let indicate that search result, treating null prose as empty. The target set in eq. 4 deduplicates repeated occurrences of a label within a record.
Definition 2 (Directed lexical mention). A migrated
mentions edge runs from the term whose prose supplied the
match to the term whose canonical label matched. Each source-to-target
pair occurs once, as in eq. 4.
Overlapping labels can yield distinct targets when both pass the
boundary check.
We measure agreement by comparing the reconstructed and stored target
sets for each source term. Incident coverage counts distinct nodes with
at least one incoming or outgoing edge. An isolated record has neither.
A reciprocal pair consists of two distinct records with a directed edge
in each direction, counted once per unordered pair. The focal view in
sec. 4 selects every edge incident on
term-active-inference, places each distinct neighbor once
by stable ID, and excludes links between neighbors. Its location bars
give the fraction of all terms incident to any graph edge and of all
graph edges incident to the focal term.
A mixing matrix tabulates directed edges by categorical attributes at
their endpoints (Newman 2003). We
use curation-list membership as the attribute. For each source list
and target list
,
cell
counts stored mentions from
to
.
Row totals count outgoing edges and column totals count incoming edges.
An observed cell’s row share is its count divided by the number of
outgoing edges from that list. A row with no outgoing edges has an
undefined share.
To separate list size and source-note activity from target allocation, we hold each source’s observed mention outdegree fixed. As a descriptive reference, consider choosing distinct targets uniformly from its other terms. Let be the number of terms in list . Excluding the source itself gives the expectation in eq. 5.
Summing the expectation over source lists gives the reference incoming count for . This comparison preserves the observed concentration of outgoing edges among sources. The uniform draw treats all remaining term IDs as equally available targets, regardless of their labels or use in prose. It defines an allocation reference on this release.
We compared the release rule with an alternative that keeps only maximal match spans in each case-folded note. Let contain the eligible occurrences for target identifier and half-open character interval after excluding the source identifier. We remove an occurrence when any other eligible interval properly contains it, then deduplicate targets. eq. 6 formalizes the rule. Partially overlapping intervals can both remain, and a target can survive through an occurrence elsewhere in the same note.
We keep the source, canonical labels, case folding, boundaries, and
deduplication rule fixed. We compare retained and removed edges,
affected source records, and the number of retained edges targeting
Core. The directed counts and lexical comparisons are generated by
scripts/manuscript_analysis.py from the checked ontology
source and GNN bridge.
The Generalized Notation Notation (GNN) bridge applies a separate rule. Its normalizer folds case and removes all characters outside ASCII letters and digits. For a declared label , eq. 7 describes the set of matching label or alias occurrences and the unique-match criterion.
A unique occurrence resolves to the corresponding stable ID. The bridge keeps unmatched and ambiguous labels unresolved and records the downstream vocabulary against its reviewed inputs. To measure sensitivity to normalization, we recompute the number of unique matches using from eq. 2 in place of . That baseline retains punctuation and non-ASCII characters. The declared labels, ontology names and aliases, and uniqueness test stay fixed.
For a curation list or the whole release , let be the value of field in term . eq. 8 counts populated records over the number of terms in a nonempty denominator. For text the report considers trimmed blank values absent. For tags it counts non-null values.
Core terms must have a tag, primary definition, and correct example. These requirements coexist with optional fields and explicitly recorded gaps in other lists. We report the release total and each list separately. Stratification makes the configured requirements and the different list sizes visible. Since the dataset is a complete release inventory, the counts and proportions describe it directly without a sampling model.
The publication workflow in fig. 4 connects source records, validation, and downstream artifacts.
For artifact , denotes the data inputs and the applicable configuration, templates, and toolchain. eq. 9 distinguishes the generator , the emitted byte sequence , and its SHA-256 identity (National Institute of Standards and Technology 2015).
The verification gate combines shape and value checks, identifiers and relation targets, byte freshness, manifest checks, and numeric release order. With the strict flag it also checks the source, export, and manifest against their published JSON Schemas (Wright et al. 2022). Write for the applicable tests under configuration and include the current files in the evidence checked by eq. 10.
For each manifest entry , let be its resolved release directory, its resolved file path, and the recorded digest. eq. 11 expresses the path and byte checks. The validator also checks the required configured artifact paths and their kinds for the current release.
The release manifest binds the source, CSV, JSON export, browser, three schemas, and archived files to their recorded digests. The separate manuscript manifest binds its inputs, figures, resolved sections, and four renders. Render receipts identify the invocation, toolchain, input digests, and output digest by format. These records establish agreement with a cited version or checkout. Trust in that reference comes from its publication provenance.
Proposition 1 (What a passing release check establishes). When strict release validation passes, each edge in the checked JSON export corresponds to a valid relation row in the checked source, and each listed current or archived file matches its recorded digest. The validator reconstructs the export from the source rows in eq. 3, compares the emitted bytes, and recomputes the file digests in eq. 11.
The source contains 429 terms distributed across three lists
(Core=64, Entailed=73, Supplement=292), all with status
published. The status field supports future draft,
deprecated, merged, and retired records under the same export contract.
tbl. 1 reports the release totals. fig. 5 shows list size and distinguishes tagged
from untagged records within each list. The lists describe how the
vocabulary was curated.
| Measure | Value |
|---|---|
| Terms | 429 |
| Explicit relations | 238 |
| Distinct tags | 8 |
| Core terms | 64 |
| Entailed terms | 73 |
| Supplement terms | 292 |
| Published terms | 429 |
tbl. 2 gives populated counts, missing counts, and coverage across the full vocabulary. tbl. 3 preserves the per-list denominators shown in fig. 6. Core has a tag, primary definition, and correct example in every record. Connection prose is present in 36 of 64 Core records, 0 of 73 Entailed, and 4 of 292 Supplement. This concentration shapes how the source graph should be read. The smaller number of notes in the other lists reduces the opportunity for their terms to supply outgoing lexical edges.
| Field | Present | Missing | Coverage |
|---|---|---|---|
| Tag | 74 | 355 | 17.2% |
| Primary definition | 104 | 325 | 24.2% |
| Correct example | 70 | 359 | 16.3% |
| Incorrect example | 70 | 359 | 16.3% |
| Connection text | 40 | 389 | 9.3% |
| List | Terms | Tag | Primary def. | Correct ex. | Incorrect ex. | Connection text |
|---|---|---|---|---|---|---|
| Core | 64 | 64 | 64 | 64 | 64 | 36 |
| Entailed | 73 | 0 | 6 | 0 | 0 | 0 |
| Supplement | 292 | 10 | 34 | 6 | 6 | 4 |
The graph contains 238 directed edges of type mentions
tbl. 4. Reapplying Definition 2 to all 429 records produced 0
records with a stored target set different from the reconstructed set.
40 records contain connection prose. In the graph, 40 nodes have
outgoing edges, 116 have incoming edges, and the union contains 128
distinct nodes. There are 301 isolated records and 5 reciprocally
connected pairs. The measurements describe recorded prose and lexical
matches at different grains.
| Relation type | Edges |
|---|---|
| mentions | 238 |
fig. 2 shows the one-hop neighborhood
of term-active-inference. It has 3 incoming edges and 8
outgoing edges across 10 distinct neighbors. Incoming sources are
Policy, Preference, Prior. Outgoing targets are active, Agent,
Generative Model, Hypothesis, Inference, Model, Policy, Temporal
Depth.
tbl. 5 and fig. 7 show both endpoints of every mention. Core supplies 212 outgoing edges and receives 111 incoming edges. Given each source’s observed outdegree and the list sizes, the uniform-target reference would allocate 35.1 incoming edges to Core. Entailed receives 48 edges despite supplying none. Overall, 131 of 238 edges connect different lists.
| Source list | Core | Entailed | Supplement | Outgoing |
|---|---|---|---|---|
| Core | 99 | 42 | 71 | 212 |
| Entailed | 0 | 0 | 0 | 0 |
| Supplement | 12 | 6 | 8 | 26 |
| Incoming | 111 | 48 | 79 | 238 |
Under the maximal-span rule in eq. 6, 172 edges remain. The variant removes
66 edges and changes the target sets of 24 of the 40 source records with
prose. Core still receives 84 edges, close to half the retained graph.
In the Active Inference note, the variant drops Model
because its match is contained within Generative Model. The
published rule retains both hits.
The GNN bridge resolves 15 of 64 declared labels under eq. 7, with 49 unresolved. Under the baseline that
retains punctuation and collapses whitespace, 8 labels have a unique
match. For example, the current bridge can match
TransitionMatrix to the alias
Transition Matrix after removing spaces. These two counts
describe how the rule affects the number of join candidates.
The historical entries in tbl. 6 and fig. 8 identify earlier spreadsheets and other archived materials. The current entry identifies the structured release v5. tbl. 7 shows filenames and SHA-256 prefixes. The release manifest stores the full digests evaluated by the check in Proposition 1. fig. 9 shows the source contract, release counts, and digest evidence.
| Release | Label | Date | State |
|---|---|---|---|
| v1 | Terms list candidate | not recorded | archived |
| v2 | T2.D1.L1.E1 | not recorded | archived |
| v3 | Version 3 | not recorded | archived |
| v4 | 12-12-2022 snapshot | 2022-12-12 | archived |
| v5 | May 25, 2023 | 2023-05-25 | current |
| Kind | Path | SHA-256 prefix |
|---|---|---|
| source | ontology.source.json |
5ce48583956e… |
| spreadsheet-export | Ontology_v5_May_25_2023.csv |
6d8c24975463… |
| export | ontology.json |
7d1ef87d4f26… |
| site | site/index.html |
206efc2fb627… |
| schema | schemas/source-v2.json |
6c6bf6235c49… |
| schema | schemas/export-v2.json |
f6591a1a5c9c… |
| schema | schemas/manifest-v2.json |
5797225849a5… |
Reading the note alongside its edges helps explain the mixing matrix.
The Core record Accuracy says “Accuracy is the inverse of
Uncertainty” in fig. 3. The extractor
produces a Core-to-Core edge to Uncertainty and a
Core-to-Entailed edge to inverse. Both edges document a
string match. A curated inverse relation would require a separate
interpretation of how the terms are used. The scientific literature
helps a reviewer make this distinction when the same words name
different objectives, as in variational and expected free energy (Da Costa et al. 2020;
Parr et al.
2022).
The sensitivity analysis makes the matching decision explicit. Keeping nested labels preserves every independently reproducible text hit and can yield separate entries for a longer phrase and its constituent words. Keeping only maximal spans prioritizes the most specific observed expression but can drop a potentially useful shorter term. The retained-edge counts measure sensitivity to the lexical rule. Estimating precision or recall would require independent judgments about intended terms and a protocol for resolving disagreements.
The Core target concentration exceeds the allocation expected from list size and observed source activity under the uniform reference. That gap prioritizes inspection of Core label usage in the recorded notes. The reference gives equally available status to every eligible target, while actual labels differ in length, overlap, and how often authors use them. Documentation is also uneven across lists. It gives Entailed terms the possibility of being targets without supplying evidence for outgoing edges. The matrix therefore characterizes directional lexical exposure in the released artifact. Claims about semantic centrality or assortative preference would require a study with independently defined relations, comparable documentation opportunities, and an appropriate statistical model (Newman 2003).
Consumer software can pin a release and join records on the identifiers in Definition 1. The normalization comparison shows a gain in candidate joins when spaces and punctuation are ignored. The same relaxation can produce collisions or conceal distinctions in another vocabulary, especially across scripts. A bridge user can inspect the recorded labels and aliases before deciding which equivalence, broader, narrower, or relatedness claim is appropriate. A reviewable mapping can record its asserted predicate, the justification, and both source releases (Matentzoglu et al. 2022).
The checks in Proposition 1 tie the structured release to its source and recorded bytes. An internally consistent set of hashes establishes integrity relative to a reference. For reproducibility, cite a reviewable repository revision or archive reference that identifies the inputs independently of the downloaded copy (National Academies of Sciences, Engineering, and Medicine 2019).
The release describes the May 2023 content snapshot. Earlier files remain archive evidence, and their absence of a v2 validation result is recorded explicitly. tbl. 3 quantifies field presence. A definition’s presence says that text was recorded. Assessment of correctness, adequate explanation, and coverage of current scientific usage requires expert review against a defined scope.
The source contract can carry curated relation types such as
broader, narrower, part_of, and
causes. A follow-up curation study could stratify reviewed
source notes by list, annotate intended targets and relation types
independently, then adjudicate disagreements. This would separate the
problem of recognizing a mention from deciding a semantic relation. A
SKOS or OWL projection could use reviewed edges and an explicit mapping
policy, with validation scoped to the chosen representation (Miles and Bechhofer 2009;
Motik et al.
2012; Knublauch and
Kontokostas 2017).
The current release links stable term identities to their spreadsheet provenance, connection notes, and published artifacts. Directed mentions concentrate on Core targets even after accounting for list size and when contained label matches are suppressed. Cross-list mentions remain common, and Entailed terms illustrate how records can be visible as targets without contributing notes. Together these findings identify where lexical exposure and documentation warrant separate review.
Downstream consumers can pin the publication, join records by identifier, and inspect the prose behind individual graph edges. Curators can use the same evidence to prioritize missing documentation and review proposed semantic relations. Both uses benefit from keeping the cited vocabulary, its graph projection, and the checks that establish their byte identity available together.
This manuscript edition is dated 2026-12-03 and describes the ontology content release v5, dated 2023-05-25. Work from the repository root in a disposable checkout with Python 3.11 or later, Pandoc, and a compatible pandoc-crossref build. PDF additionally uses XeLaTeX and qpdf. Install the pinned Python dependencies and verify the ontology release before rendering.
./run.sh deps
./run.sh ontology
The ontology gate strictly validates the source, release manifest,
and generated projections, including the GNN bridge. After an approved
source edit, regenerate the JSON, CSV, site, and GNN projections with
build, export-csv, site, and
gnn-terms, then run sync-manifest and repeat
the ontology gate. ./run.sh gnn checks conformance against
the pinned downstream parser.
The manuscript render regenerates the resolved Markdown and figures, produces PDF, HTML, DOCX, and EPUB, and then verifies the results.
./run.sh render
The byte comparison in eq. 12 uses the same data and generation inputs as eq. 9. Let be the path where artifact was written.
Use ./run.sh manuscript to verify the stored
publication. The read-only check uses the edition date in the generated
edition.json. A deliberate rebuild uses the current
publication date unless given
render --format all --date YYYY-MM-DD. Pass the recorded
date when attempting to reproduce a particular edition. The ontology
source release date stays part of the data provenance.
The manuscript manifest records input hashes, generated figure and
resolved section digests, and the output digest and receipt for each
format. A local replay may differ in rasterizer, fonts, or Pandoc or TeX
version. These inputs can change image bytes, layout, or the output
package even when the source measurements agree. With
MANUSCRIPT_PORTABLE_CHECK=1 verification checks stored
figure and cover hashes and figure-input fingerprints while omitting
byte comparisons against newly generated images. That mode supports
integrity checks across hosts. Comparison against a particular render
requires the recorded edition date and toolchain (National Academies of Sciences, Engineering, and
Medicine 2019; Sandve
et al. 2013).
fig. 3 traces
term-accuracy from the source note and row to its two
exported links and browser record. The browser at
site/index.html embeds the projection computed from
ontology.source.json. The same ID locates the full record
in ontology.json. The CSV provides the original
eight-column spreadsheet projection. To audit a cell in tbl. 5, resolve both IDs for each
mentions edge and count their ordered pair of curation
lists, using the checked source as in
scripts/manuscript_analysis.py.
Cite the archived content release with its version-specific DOI (Active
Inference Institute 2023). When relying on a generated v2
artifact, include its repository revision and recorded digest. The
contents of releases.json identify release filenames and
full digests. Give the stable ID and the release version when a reader
needs to recover a particular term.
The bibliography includes the persistent identifier for the ontology content release, the scientific literature that defines its scope, and the standards used to interpret the publication contract.