Skip to main content

Crate uor_foundation

Crate uor_foundation 

Source
Expand description

UOR Foundation — typed Rust traits for the complete ontology.

Version: 7.0.0

This crate exports every ontology class as a trait, every property as a method, and every named individual as a constant. Implementations (like PRISM) import these traits and provide concrete types.

§Primitives

All traits are generic over Primitives, a type family that lets implementors choose their own concrete representations for XSD types.

struct MyImpl;
impl uor_foundation::Primitives for MyImpl {
    type String = str;
    type Integer = i64;
    type NonNegativeInteger = u64;
    type PositiveInteger = u64;
    type Decimal = f64;
    type Boolean = bool;
}

§Module Structure

  • kernel — Immutable foundation: addressing, schema, operations
  • bridge — Kernel-computed, user-consumed: queries, resolution, partitions, proofs
  • user — Runtime declarations: types, morphisms, state

Re-exports§

pub use enums::*;

Modules§

bridge
bridge space modules.
enums
Shared enumerations derived from the UOR Foundation ontology.
kernel
kernel space modules.
user
user space modules.

Traits§

Primitives
XSD primitive type family. Implementors choose concrete representations for each XSD type. PRISM might use u64 for integers at Q0, u128 at higher quantum levels, or a bignum library. The foundation does not constrain this choice.