Skip to main content

Module epistemic_ontology

Module epistemic_ontology 

Source
Expand description

Epistemic Ontology Substrate: Open English WordNet (OEWN) & CILI Integration

Provides zero-heap, ontologically grounded epistemic stances for QualiaDB assertions, sessions, and reasoning frames. Replaces ad-hoc string enums with formal RDF synsets from Open English WordNet (OEWN 2025-plus) and the Collaborative Interlingual Index (CILI).

Architectural Invariants:

  • Tier-1 zero-heap evaluator loops: Caller supplies fixed-size &mut [T] output buffers.
  • 60-bit token space: All synset and CILI tokens fit into the 60-bit payload of NQuin.
  • Hierarchical subsumption: Integrates with modalities::dl::check_subsumption_quin to resolve hypernym/hyponym trees (e.g. conjecture ⊑ hypothesis).

Structs§

EpistemicStanceRecord
Zero-copy representation of an evaluated epistemic stance.

Enums§

EpistemicOntologyError

Constants§

CILI_CIVICS
CILI i69420: Language-independent civics concept.
CILI_CONJECTURE
CILI i68345: Language-independent conjecture concept.
CILI_FACT
CILI i68339: Language-independent fact concept.
CILI_FICTION
CILI i71201: Language-independent fiction concept.
CILI_HYPOTHESIS
CILI i68341: Language-independent hypothesis concept.
CILI_OBSERVATION
CILI i70110: Language-independent observation concept.
CILI_SIMULATION
CILI i68212: Language-independent simulation concept.
PRED_CILI_CONCEPT
q42:hasCiliConcept — Links a stance to a language-independent CILI concept ID.
PRED_EPISTEMIC_STANCE
q42:hasEpistemicStance — Links an assertion, statement, or session to a synset stance.
PRED_SUB_CLASS_OF
rdfs:subClassOf — Standard subsumption / hypernym relationship.
PRED_WN_HYPERNYM
wn:hypernym — WordNet lexical hypernym relation.
PRED_WORDNET_SYNSET
q42:hasWordNetSynset — Links a concept to an explicit OEWN synset URI.
SYNSET_BELIEF
synset-belief-noun-1: Doxastic belief without definitive proof.
SYNSET_CIVICS
synset-civics-noun-1: Social commons, participatory governance, civic duty.
SYNSET_CONJECTURE
synset-conjecture-noun-1: Mathematical/logical conjecture, speculation without proof.
SYNSET_COUNTERFACTUAL
synset-counterfactual_conditional-noun-1: Thought experiment, counter-to-fact inquiry.
SYNSET_FACT
synset-fact-noun-1: Empirical observation, objective reality, ground truth.
SYNSET_FICTION
synset-fiction-noun-1: Speculative narrative, literary worldbuilding, fictional world.
SYNSET_HYPOTHESIS
synset-hypothesis-noun-1: Tentative proposition, testable scientific supposition.
SYNSET_KNOWLEDGE
synset-knowledge-noun-1: Justified, verified true belief / confirmed knowledge.
SYNSET_OBSERVATION
synset-observation-noun-1: Sensory datum, empirical field observation.
SYNSET_SIMULATION
synset-simulation-noun-1: Computational representation, physical digital twin model.

Functions§

compile_epistemic_stance_quin
Synthesizes a valid zero-allocation NQuin encoding an epistemic stance assertion.
evaluate_epistemic_stances
Evaluates a slice of input NQuin statements against an expected epistemic stance.
is_epistemic_subsumed
Verifies whether an active stance synset matches or is subsumed by an expected category synset.
lookup_epistemic_lemma
Resolves a localized lemma for a given CILI concept token. Supports English (“en”), Spanish (“es”), French (“fr”), and German (“de”). Completely zero-heap, compile-time static lookup.
parse_epistemic_mode_to_synset
Parses an epistemic mode string (e.g. legacy descriptors or configs) into its canonical OEWN synset token. Completely zero-heap matching over static string slices.
synset_to_canonical_label
Maps a canonical synset token to its primary English canonical display label.
synset_to_cili
Resolves the canonical CILI concept identifier for a known OEWN synset token. Pure, deterministic, zero-heap mapping.