Skip to main content

Module lexicon

Module lexicon 

Source
Expand description

Lexicon Dictionary Manager Maps multi-modal semantic concepts (Text, Audio, Visual) into the deterministic 60-bit integers required by the NQuin data structure.

Re-exports§

pub use crate::resolver::TAG_EMBEDDED;
pub use crate::resolver::TAG_WEBIZEN;

Structs§

LexiconInterner
Collision-aware string interner — the lexicon collision backstop (task #22).
LexiconManager
In-memory Lexicon manager to handle reverse lookups in the future. For now, ingestion purely maps forward (Bytes -> u64) via the hash.

Enums§

Intern
Outcome of interning a (handle, value) pair into a collision-aware lexicon.
SemanticModality
Represents the pluralistic forms that a semantic concept can take. We explicitly reject the assumption that knowledge is exclusively bound to Unicode strings.

Functions§

generate_60bit_token
Generates a deterministic, collision-resistant 60-bit token from a raw byte stream. Uses a custom FNV-1a inspired hash restricted to 60 bits.
generate_embedded_triple_id
Generates a Virtual ID for a SPARQL-Star embedded triple <>.