Skip to main content

Crate mif_core

Crate mif_core 

Source
Expand description

Shared foundational types for the MIF (Modeled Information Format) ecosystem.

mif-core provides the types shared across the ecosystem’s other crates: OntologyReference, EntityReference, EntityData, and ConceptType. Field definitions are taken directly from the canonical MIF JSON Schema (mif.schema.json, entity-reference.schema.json, draft 2020-12; see https://mif-spec.dev/schema/).

Validation of MIF documents against the schema itself lives in the mif-schema crate; mif-core only defines the shared data shapes.

Structs§

EntityData
Open, ontology-typed entity payload for a memory that is an entity.
EntityId
The entity identifier object nested inside an EntityReference.
EntityReference
Closed pointer to an entity mentioned by a MIF memory.
OntologyReference
A reference to the ontology a MIF memory conforms to.

Enums§

ConceptType
MIF’s three-way knowledge taxonomy.
EntityType
Entity type classification: a closed vocabulary of well-known types, or a custom ontology-defined type (^[a-z][a-z0-9-]*$) preserved verbatim.
KnownEntityType
The closed set of well-known entity type values.