UOR Type System

IRI
https://uor.foundation/type/
Prefix
type:
Space
user
Comment
Runtime type declarations that parameterize the resolution pipeline. Types are declared by Prism applications and resolved to partitions of the ring.

Imports

  • https://uor.foundation/schema/
  • https://uor.foundation/u/

Classes

NameIRISubclass OfDisjoint WithComment
TypeDefinitionhttps://uor.foundation/type/TypeDefinitionhttp://www.w3.org/2002/07/owl#ThingA runtime type declaration. The root class for all UOR types. Each TypeDefinition, when resolved, produces a partition of the ring at the specified quantum level.
PrimitiveTypehttps://uor.foundation/type/PrimitiveTypehttps://uor.foundation/type/TypeDefinitionA primitive type defined by a fixed bit width. The carrier is the entire ring Z/(2^n)Z at the specified quantum level.
ProductTypehttps://uor.foundation/type/ProductTypehttps://uor.foundation/type/TypeDefinitionA product (Cartesian) type formed from multiple component types. The carrier is the product of the component carriers.
SumTypehttps://uor.foundation/type/SumTypehttps://uor.foundation/type/TypeDefinitionA sum (disjoint union) type formed from multiple variant types. The carrier is the disjoint union of the variant carriers.
ConstrainedTypehttps://uor.foundation/type/ConstrainedTypehttps://uor.foundation/type/TypeDefinitionA type formed by constraining a base type with a predicate. The carrier is the subset of the base carrier satisfying the constraint.

Properties

NameKindFunctionalDomainRangeComment
bitWidthDatatypetruehttps://uor.foundation/type/PrimitiveTypehttp://www.w3.org/2001/XMLSchema#positiveIntegerThe bit width of a primitive type (the quantum level n). The carrier is Z/(2^n)Z.
componentObjectfalsehttps://uor.foundation/type/ProductTypehttps://uor.foundation/type/TypeDefinitionA component type in a product type.
baseTypeObjecttruehttps://uor.foundation/type/ConstrainedTypehttps://uor.foundation/type/TypeDefinitionThe base type that a constrained type restricts.
constraintDatatypefalsehttps://uor.foundation/type/ConstrainedTypehttp://www.w3.org/2001/XMLSchema#stringThe constraint predicate applied to the base type. Expressed as a string in the Prism constraint language.
contentAddressObjecttruehttps://uor.foundation/type/TypeDefinitionhttps://uor.foundation/u/AddressThe content-derived address of this type definition, uniquely identifying the type in the UOR address space.