Skip to main content

mif_core/
lib.rs

1//! Shared foundational types for the MIF (Modeled Information Format) ecosystem.
2//!
3//! `mif-core` provides the types shared across the ecosystem's other crates:
4//! [`OntologyReference`], [`EntityReference`], [`EntityData`], and
5//! [`ConceptType`]. Field definitions are taken directly from the canonical
6//! MIF JSON Schema (`mif.schema.json`, `entity-reference.schema.json`,
7//! draft 2020-12; see <https://mif-spec.dev/schema/>).
8//!
9//! Validation of MIF documents against the schema itself lives in the
10//! `mif-schema` crate; `mif-core` only defines the shared data shapes.
11
12mod concept;
13mod entity;
14mod ontology;
15
16pub use concept::ConceptType;
17pub use entity::{EntityData, EntityId, EntityReference, EntityType, KnownEntityType};
18pub use ontology::OntologyReference;