Quantity / Unit
Provide a format-neutral, embeddable value-object mixin that lets an AI agent state, interpret, validate, convert, compare and govern a quantity value — a number bound to a reference (unit, measurement procedure or reference material) — with the quantity kind, scale type, numeric fidelity, uncertainty, provenance and registry governance needed to use it safely across domains.
Bundle → Layer → Finding → Questions Filled
7 bundles · 16 layers · 29 findings · 105 questions
Quantity semantics What the number is about: the kind of quantity, its dimension in the ISQ, the type of scale it lives on, and the special handling of dimension-one, count and logarithmic quantities.
Quantity kind and dimension
Identification of the quantity kind and its dimensional exponents over the ISQ base quantities, and the consistency checks these enable.
Quantity kind identity and disambiguation
Which kind of quantity the value expresses, resolved to a governed identifier, and how kinds that share a dimension are kept apart. VIM 1.2 defines kind of quantity as the aspect common to mutually comparable quantities; VIM 1.9 Note 2 records that units with the same dimension may name different kinds (joule per kelvin for both heat capacity and entropy; hertz for frequency but becquerel for activity, both 1/s). QUDT carries this as qudt:QuantityKind linked by qudt:hasQuantityKind with qudt:applicableUnit constraining admissible units.
- Which quantity kind does this value express, and through which governed identifier is that kind resolved? identity
- When two candidate units share a dimension but denote different kinds, what evidence disambiguates the intended kind? classification
- Which quantity kinds are admissible in this property slot, and who has authority to add one? authority
- Is the property in fact a nominal property with no magnitude, and therefore outside this mixin? validation
Quantity dimension and dimensional consistency
The dimension of the quantity expressed as integer exponents over the ISQ base quantities (length, mass, time, electric current, thermodynamic temperature, amount of substance, luminous intensity), and the arithmetic checks it authorises. VIM 1.7 defines quantity dimension; VIM 1.8 defines quantity of dimension one. QUDT materialises this as a QuantityKindDimensionVector. Dimension equality is a necessary but not sufficient condition for comparability.
- What are the dimensional exponents of this quantity over the seven ISQ base quantities? measurement
- Which dimensional consistency checks must pass before an addition, comparison or assignment involving this value is accepted? constraint
- Does dimension equality alone authorise treating two values as interchangeable in this context? relationship
System of quantities
A system of quantity kinds is a set of kinds plus the equations that relate them, typically identifying a base subset from which others are derived. The SI is coupled to the International System of Quantities. Choice of base kinds is conventional. A unit system associated with a quantity-kind system must define at least one unit for each kind of interest.
- Which system of quantities governs this record, and which base quantity kinds does that system declare? classification
- Which defining equations or physical relations of the system are needed to derive this kind from the bases? composition
- Which system of units is explicitly coupled to this system of quantities, and does it define a unit for every kind in use? relationship
Quantity calculus and dimensional homogeneity
ISO 80000-1 describes quantity calculus: only quantities of the same kind, and therefore the same dimension, may be added or subtracted. Products and quotients produce derived kinds whose dimensions are the corresponding products of powers. Numerical-value equations have the same form as quantity equations only in a coherent system. UCUM implements the algebra as an Abelian group under multiplication with integer exponents. Implementations must refuse mixed-kind addition even when a naive dimension check would pass.
- What algebraic operation is requested among which operand quantities, and is each operand dimensionally legal for that operation? process
- What quantity kind, dimension and coherent unit does the result have, and must the numerical value be recomputed in a coherent system to avoid hidden factors? composition
- If a non-coherent unit such as hour or millimetre appears in a product, how are prefix and conversion factors accumulated so that the numerical-value equation stays correct? validation
Scale type and measurability
The scale on which the value sits and the operations that scale permits, including the awkward cases of dimension-one, count, ordinal and logarithmic quantities.
Scale type and permitted operations
Whether the value sits on a ratio, interval, ordinal or nominal scale, and which arithmetic is therefore legal. VIM 1.26 defines ordinal quantity, 1.27 quantity-value scale, 1.28 ordinal quantity-value scale and 1.29 conventional reference scale. UCUM separates proper units, which form an Abelian group under multiplication, from special units on non-ratio scales such as degree Celsius that convert by function rather than scalar multiplication. Ratios and multiplicative scaling are invalid on interval scales.
- Is the underlying scale ratio, interval, ordinal or nominal? classification
- Which arithmetic operations must be refused on this scale type, and what is returned instead? constraint
- If a conventional reference scale is used, which scale definition and edition applies? provenance
- How are ordinal codes that look numeric prevented from entering arithmetic pipelines? validation
Dimension-one, count and logarithmic quantities
Handling of values whose unit is 1, omitted, a count of discrete entities, a fraction such as percent or ppm, or a logarithmic quantity such as decibel or pH. VIM 1.8 notes that units for quantities of dimension one are numbers, sometimes with special names (radian, steradian) or as quotient expressions. ISO 80000-1 gives explicit rules for logarithmic quantities. FHIR provides a distinct Count profile. UCUM v2.2 illustrates the instability of this area: QUDT v3.5.0 reclassified BIT, BYTE and OCTET as counting units rather than information-entropy units.
- Is the value a count of discrete entities, and what entity type is being counted? definition
- When the unit is absent, how does a consumer distinguish 'no unit was recorded' from 'the unit is one'? validation
- For a fraction or logarithmic quantity, what reference value and base are implied by the unit? measurement
Unit identity and expression The unit as a governed referent: how it is identified across code systems, how its symbol and name are presented, how compound expressions and prefixes are parsed, and which system of units it belongs to.
Unit identification and presentation
Resolvable identification of the unit across governed code systems, and the separate question of how it is displayed to a human.
Unit identity across governed code systems
How the unit is identified so that a machine can resolve it. FHIR Quantity pairs a system URI with a code and keeps unit as a separate human-readable string, recommending UCUM. UCUM defines both case-sensitive and case-insensitive symbol variants and warns that mixing case in case-insensitive codes carries no meaning. UN/CEFACT Rec 20 Rev 17 supplies three-character alphanumeric common codes. QUDT exposes qudt:ucumCode and qudt:uneceCommonCode on its unit IRIs, making it a crosswalk hub.
- Which code system and code identify the unit, and is that code system case-sensitive? identity
- When a UCUM code, a UN/CEFACT common code and a QUDT IRI are all present, which is authoritative and which are derived? authority
- How is the code system version pinned so the same code resolves identically in five years? provenance
- What happens when the unit has no code in any bound code system? exception
Unit symbol, name and presentation rules
The human-facing surface of the unit, kept distinct from its code. The SI Brochure and NIST SP 811 give rules for printing and using units and for spelling unit names; FHIR separates unit (display string) from code (machine token). Presentation is locale-sensitive and must never be parsed as the authoritative unit. Note that NIST SP 811 (2008) predates the 2019 SI revision, so style guidance itself needs version pinning.
- What is the authoritative symbol and full unit name, and which locale variants are held? definition
- Which printing and spelling rules are enforced for this unit, and against which pinned style authority? constraint
- Is the display string derived from the code or authored independently, and which prevails on conflict? quality
Unit expression and scaling
Parsing and validating compound unit expressions, and the governed set of prefixes and scaled units.
Compound unit expression grammar
The grammar that makes a unit expression machine-checkable. UCUM v2.2 uses 7-bit US-ASCII, '.' for multiplication and '/' for division evaluated left to right with equal precedence, integer exponents following the symbol, square brackets for customary units that also block prefix matching, and curly-brace annotations that fully conformant parsers must discard. Full conformance requires recognising that 'km' equals '1000.m'; limited conformance compares expressions literally — a difference that silently changes equality semantics between systems.
- Which grammar and conformance level govern parsing of compound unit expressions in this deployment? interoperability
- Are curly-brace annotations permitted, and are they discarded before semantic comparison? constraint
- Are syntactically different but semantically equal expressions treated as equal, and is a canonical form stored? validation
- What is the outcome when an expression fails to parse — rejection, quarantine, or acceptance with a flag? exception
Prefixes, multiples and submultiples
The admissible prefix set and its traps. The SI defines decimal prefixes; CGPM 2022 Resolution 3 added ronna (R, 10^27), quetta (Q, 10^30), ronto (r, 10^-27) and quecto (q, 10^-30). VIM 1.17 and 1.18 define multiple and submultiple of a unit. UCUM forbids unit atoms from containing prefixes and blocks prefix matching across bracket boundaries. Two persistent hazards: the kilogram is the base unit yet carries a prefix, and binary prefixes (Ki, Mi, Gi) are not SI prefixes and must not be conflated with decimal ones.
- Which prefix set is admitted, and does it include the prefixes adopted by CGPM in 2022? classification
- Are binary prefixes permitted, and how are they kept distinct from decimal prefixes of the same initial letter? interoperability
- How are compound prefixes, prefixes on non-metric atoms, and the prefixed base unit kilogram handled? constraint
System of units membership
Which system of units the unit belongs to, whether it is coherent within that system, and how off-system, customary and arbitrary units are constrained.
System membership, coherence and non-SI units
VIM 1.13 defines a system of units, 1.14 a coherent system of units, 1.12 a coherent derived unit and 1.15 an off-system measurement unit. QUDT models this as qudt:SystemOfUnits. The decisive operational distinctions are: coherent SI units allow conversion factors of exactly one in coherent equations; units accepted for use with the SI (minute, hour, litre, tonne, electronvolt) require explicit factors; customary units require bracketed treatment in UCUM; and arbitrary units are procedure-dependent, carry no general meaning relative to any other unit, and form no equivalence classes — so cross-comparison of two arbitrary units must be refused outright, not merely warned about.
- To which system of units does this unit belong, and is it coherent within that system? classification
- Is the unit SI, accepted for use with the SI, off-system, customary, arbitrary or procedure-defined? classification
- For an arbitrary or procedure-defined unit, which procedure or reference material defines it, and is comparison with any other arbitrary unit forbidden? constraint
- Which unit is used for storage and which for presentation when they differ? decision
Value expression and numeric fidelity The numeric side of the value object: what the number is bound to, what form it takes, and how its precision and exactness survive storage and transfer.
Value composition and form
How the number binds to its reference, and whether the value is a point, an interval, a bound or a ratio.
Numeric value and reference binding
VIM 1.19 defines a quantity value as a number and reference together, where the reference may be a measurement unit (5.34 m), a measurement procedure (43.5 HRC) or a reference material (5.0 IU/l). VIM 1.20 defines the numerical quantity value as the number in that expression. The number may be complex, and vector or tensor quantities have a value per component. The operational consequence is that value and reference form an atomic pair: neither may be written, updated, defaulted or indexed independently, and D-SI carries them as one payload with uncertainty.
- What is the numerical value, and which reference type does it bind to — unit, measurement procedure or reference material? composition
- Is the numerical value real, complex, vector or tensor, and how are components carried and ordered? definition
- Is the value/reference pair enforced as atomic, so that no write path can set one without the other? constraint
Value forms, bounds and comparators
A quantity value is not always a point. FHIR provides a comparator element (<, <=, >=, >, plus ad-hoc statistical markers) that modifies the meaning of the value, and separate Range and Ratio types; SimpleQuantity forbids the comparator. schema.org QuantitativeValue offers minValue and maxValue for intervals. Detection limits, censored values, values outside the measuring interval and rate expressions all need an explicit form so that a consumer never mistakes a bound for a point estimate.
- Is this value a point, a one-sided bound, an interval, or a ratio of two quantities? classification
- For an interval, are the bounds inclusive, and must both bounds share the same unit? constraint
- How is a result below a detection limit or outside the measuring interval encoded so it is not aggregated as a point value? exception
- Which value forms are prohibited in this property slot? validation
Numeric representation and fidelity
How the number survives storage, serialisation and arithmetic without silent loss of meaning.
Precision, rounding and exactness
FHIR states that a Quantity value 'includes an implicit precision in the presentation of the value' and that 0.010 is regarded as different from 0.01, so trailing zeros are semantically significant and must be preserved. ISO 80000-1:2022 specifies rules for rounding of numbers, and NIST SP 811 gives rules for expressing values of quantities. Binary floating-point representation destroys both trailing-zero precision and exact decimal round-trips, so the representation choice is a semantic decision, not an implementation detail. Some values are exact by definition (the SI defining constants, and defined conversions such as 1 in = 25.4 mm) and must never be rounded.
- How many significant digits are meaningful, and are trailing zeros preserved through storage and serialisation? measurement
- Is this value exact by definition or an approximation subject to rounding? quality
- Which numeric representation is mandated to guarantee lossless round-trip, and what is the behaviour if a consumer cannot honour it? interoperability
- Which rounding rule applies when the value is scaled, converted or aggregated, and is the rounding recorded? constraint
Comparability and conversion When two quantity values may be compared, and how a value is transformed from one unit to another without silently corrupting its meaning.
Commensurability and comparison
The tests that decide whether two values may lawfully be compared, added or aggregated.
Commensurability, equality and comparison rules
UCUM treats two units as commensurable when they share the same dimension, while stressing that commensurable units need not be equal, and that equality forms a narrower equivalence class than commensurability. Arbitrary units form no equivalence classes at all and are incomparable even to other arbitrary units. QUDT v3.4.0 introduced explicit relations such as qudt:specializationOf and qudt:unitForQuantityKind precisely because dimensional matching alone produced wrong equivalences. Comparison of values carrying uncertainty is a further distinct decision that must not default to bare numeric comparison.
- Are the two units commensurable, and by which test — equal dimension, equal quantity kind, or both? relationship
- Does commensurability alone authorise comparison here, or is agreement on quantity kind also required? constraint
- How are equality and ordering defined when one or both values carry uncertainty or a comparator? decision
- Which comparisons must be refused outright rather than approximated? exception
Conversion mechanics and consequences
The parameters and functions that convert values between units, and the provenance and loss that conversion creates.
Linear and non-linear conversion
QUDT expresses conversion as qudt:conversionMultiplier with an optional qudt:conversionOffset relative to the coherent SI unit of the kind. UCUM distinguishes proper units, where conversion factors derive from dimensional analysis over its base set (meter, second, gram, radian, kelvin, coulomb, candela), from special units on non-ratio scales such as degree Celsius, which require mathematical functions rather than scalar multiplication. The critical trap is that converting a point on an interval scale and converting a difference on the same scale use different rules: a temperature difference of 5 °C is 5 K, but a temperature of 5 °C is 278.15 K.
- What multiplier and offset convert this unit to the coherent SI unit of its quantity kind? measurement
- Does the unit require a non-linear conversion function rather than multiplier and offset? constraint
- Is this value a point on the scale or a difference, and which conversion rule therefore applies? decision
- Which authority publishes the conversion factor, at what version, and is the factor exact or rounded? authority
Conversion provenance and information loss
Every conversion is a derivation that can lose information. A converted value that overwrites the original destroys the ability to audit or reverse the transformation, and rounding after conversion silently changes the implied precision. D-SI carries value, unit and uncertainty as a single payload precisely so that a transformed result remains metrologically interpretable. Round-trip conversion through binary floating point is frequently not idempotent.
- Is the stored value the value as originally reported, or a derivative produced by conversion? provenance
- What precision or uncertainty was lost in the conversion, and is the pre-conversion value retained? quality
- Is the conversion reversible without drift, and is a round-trip check required before the result is accepted? validation
Quality, uncertainty and validation How confidence in the value is stated, how tolerance and conformity decisions are separated from measurement uncertainty, and how constraints and validation outcomes are recorded.
Uncertainty and tolerance
Stating dispersion attributable to measurement, and separately stating the permitted interval a value must fall within.
Measurement uncertainty expression
The GUM defines standard uncertainty as the standard deviation characterising the dispersion of values attributable to the measurand, evaluated by Type A (statistical analysis of repeated observations) or Type B (other means such as certificates or expert judgement) methods, combined into a combined standard uncertainty and optionally multiplied by a coverage factor k to give an expanded uncertainty with a stated coverage probability. A reported uncertainty without its type, coverage factor and coverage probability is uninterpretable. D-SI carries these as structured fields alongside value and unit.
- Is the reported uncertainty a standard uncertainty, a combined standard uncertainty or an expanded uncertainty? measurement
- For an expanded uncertainty, what coverage factor and coverage probability apply, and how was the factor chosen? measurement
- Were the contributing components evaluated by Type A or Type B methods, and is the evidence for Type B components recorded? evidence
- Is the uncertainty expressed in the same unit as the value or as a relative quantity, and how is that declared? constraint
Tolerance, specification limits and conformity decisions
Tolerance is a requirement imposed by a specification; measurement uncertainty is a property of the measurement. They have different owners, different lifecycles and different consequences, and must never be stored in the same field. A conformity decision — whether the value passes — depends additionally on a decision rule and any guard band, and is a separate assertion from either the value or its uncertainty.
- What tolerance or specification interval applies to this value, and which authority set it? requirement
- Is a conformity decision recorded, and what decision rule and guard band produced it? decision
- How does the record keep tolerance distinct from measurement uncertainty so neither is mistaken for the other? validation
Metrological traceability and evidence
VIM defines metrological traceability as a property of a measurement result whereby the result can be related to a reference through a documented unbroken chain of calibrations, each contributing to the measurement uncertainty. ISO 11240 requires units used in medicinal-product interchange to be traceable to international metrological standards and provides mapping structures among vocabularies. After 20 May 2019 the SI reference is the set of defining constants rather than artefacts such as the international prototype of the kilogram. Claims of traceability without a chain are not conformance.
- To which international reference is this quantity value or unit claimed to be traceable, and is the calibration chain documented end to end? provenance
- What evidence artefacts support the traceability claim, such as a calibration certificate identifier, mise en pratique citation, or mapping table version? evidence
- Which organisation is responsible for maintaining the traceability claim, and under which accreditation or metrological authority? ownership
- Where does the chain stop, and is the result therefore only internally consistent rather than metrologically traceable? quality
Constraint specification and validation
The declarative constraints applied to a quantity slot and the recorded outcome of applying them.
Constraints, validation outcomes and exception handling
FHIR binds units through value sets on Quantity elements and restricts SimpleQuantity by forbidding a comparator; QUDT constrains admissible units per quantity kind through qudt:applicableUnit; UCUM conformance level determines whether an unrecognised expression can even be evaluated. A quantity slot needs a declared constraint set (allowed units, allowed value forms, plausibility range, cardinality, requiredness) and a recorded, re-evaluable validation outcome — because a value that passed under one registry release may fail under the next.
- Which units and value forms are permitted for this quantity slot, and with what binding strength? constraint
- What plausibility range, cardinality and requiredness apply, and are they hard constraints or advisory warnings? validation
- What must a consumer do when the unit is unrecognised or a constraint fails — reject, quarantine, or accept with a flag? exception
- Is the validation outcome persisted, and is it re-evaluated when the bound registry release changes? state
Context, provenance and lifecycle The qualifiers that change how the same number and unit must be read, where the value came from, when it applies, and how it and its unit definitions change over time.
Contextual qualification
Reference conditions, denominators and other qualifiers without which the number and unit are ambiguous.
Reference conditions and denominator context
The same number and unit can mean different things depending on context that is not encoded in either. Gas volumes depend on reference temperature and pressure; concentrations depend on the basis (dry weight, wet weight, per volume of what); rates depend on their denominator population and period; fuel consumption in L/100 km carries an implied per-distance basis. schema.org provides valueReference explicitly to carry such context, and unitText as a fallback where no code exists for compound expressions like 'L/100 km'. UCUM annotations can carry the denominator hint but are semantically void and discarded by conformant parsers, so they cannot be relied on for meaning.
- Under which reference conditions is this value defined, and are those conditions recorded as structured data rather than free text? constraint
- For a rate or ratio, what is the denominator — per what entity, per what population, per what period? definition
- Does a contextual qualifier change how the same number and unit must be interpreted, and is a consumer required to fail if it cannot interpret the qualifier? interoperability
- Is any semantic meaning being carried in a UCUM annotation that a conformant parser will discard? quality
Provenance and time
Where the value came from, by what means, and the separate times at which the phenomenon occurred and the value was recorded.
Value origin and derivation
Whether a value was measured, computed, estimated, asserted, defaulted or converted determines what may be inferred from it. SOSA distinguishes the observation act from its result and delegates the result's encoding; the mixin therefore carries a compact origin statement plus a reference to the fuller observation or calculation record in the sibling model. VIM 2.41 metrological traceability is a claim requiring an unbroken documented calibration chain, so it must be recorded as a referenced claim with evidence, never asserted by default.
- Was this value measured, computed, estimated, asserted, defaulted or converted? provenance
- If computed, from which input quantity values and by which documented method or expression? process
- Is a metrological traceability claim made, and what documented calibration evidence supports it? evidence
Event time versus observation and record time
A quantity value has at least two distinct times: when the phenomenon it describes occurred or held, and when the value was observed, ingested or recorded. Conflating them makes late-arriving data, backfills and corrections indistinguishable from real change. RFC 3339 fixes the format: seconds are required and an offset must be present, with 'Z' meaning UTC and '-00:00' explicitly meaning that UTC is known but the local offset is not — a distinction that must be preserved rather than normalised away.
- When did the phenomenon the value describes occur or hold, and when was the value observed or ingested? temporal
- Are both timestamps RFC 3339 with seconds and an explicit offset or Z, and is '-00:00' preserved where the local offset is unknown? temporal
- Over what interval is the value valid, and does it expire or require refresh? state
- How is a late-arriving or backfilled value distinguished from a genuine change in the measured quantity? event
Versioning, deprecation and correction
How changes to unit definitions and to recorded values are handled without retroactively falsifying history.
Registry versioning, deprecation and value correction
Unit vocabularies change in ways that alter meaning: QUDT v3.4.0 replaced ambiguous broader-than relations with an explicit commensurability framework and v3.5.0 redefined BIT, BYTE and OCTET as counting units; CGPM 2022 extended the prefix set; UN/CEFACT Rec 20 has reached Revision 17; the SI itself was redefined in 2019 in terms of exact defining constants. Values must therefore record the registry release in force when they were created, and the model must state whether historical values are reinterpreted under new definitions or frozen. Separately, a corrected value needs an explicit disposition — in-place amendment, superseding version, or retraction — because silent overwrite destroys auditability.
- Which registry release supplied the unit definition in force when this value was created? provenance
- Has the unit code since been deprecated, redefined or reclassified, and what is the successor and migration rule? lifecycle
- Are historical values reinterpreted under a new unit definition, or frozen at the version of record? decision
- When a value is corrected, is it amended in place, superseded by a new version, or retracted — and what remains visible? state
Interoperability, embedding and disclosure How this mixin aligns with external standards without over-claiming conformance, how it is bound into exchanges, how it embeds in host records, and what access and retention rules attach to the values it carries.
External alignment and binding
Recorded mappings to external vocabularies with strength and conflicts, and the profile bindings that govern a given exchange.
Standard alignment and conflict register
This model aligns to, and does not subsume, UCUM (machine grammar), UN/CEFACT Rec 20 (trade common codes), QUDT (IRIs, dimensions and conversion parameters), ISO 80000 and the SI Brochure (normative quantity and unit semantics), FHIR (a deployed binding) and schema.org (a web projection). Real conflicts must be registered rather than smoothed over: schema.org documents currency codes in unitCode although a currency has no quantity dimension; QUDT reclassified information units between releases; UCUM full versus limited conformance changes whether 'km' equals '1000.m'; and NIST SP 811 remains at its 2008 edition, predating the 2019 SI revision.
- To which external vocabularies is this unit or quantity kind aligned, and is each mapping exact, broader, narrower or approximate? interoperability
- Where do the aligned standards conflict, and what resolution has been recorded for this deployment? exception
- Is conformance to a named standard being claimed, and what evidence substantiates the claim? evidence
- Which alignments are advisory only and must not be used to drive automated conversion? constraint
Profile binding and exchange negotiation
A generic Quantity is rarely safe on the wire; it is made safe by a profile. FHIR demonstrates this with SimpleQuantity forbidding a comparator, with unit value-set bindings on specific elements, and with typed profiles (Age, Duration, Count, Distance, MoneyQuantity). An exchange must therefore state which profile applies, which value set binds the unit, the binding strength, and what happens when a partner sends something outside it — including whether the receiver fails closed or accepts with a flag.
- Which profile and unit value set bind this quantity slot in this exchange, and at what binding strength? constraint
- How was the binding agreed with the exchange partner, and where is that agreement recorded? interoperability
- What is the receiver's behaviour when a value arrives outside the bound value set or violates the profile? exception
Embedding and disclosure
How the mixin attaches to host records and what the host must decide about access, disclosure and retention of the values it carries.
Mixin embedding contract
The registry marks this model as an EMBED value object. Embedding rather than referencing means the quantity has no independent identity or lifecycle: it is created, versioned, secured and deleted with its host. FHIR's Quantity is a datatype, not a resource, for the same reason, and SOSA delegates result encoding to whatever vocabulary the host adopts. The contract must state the minimum field set every embedding carries, which host responsibilities are inherited rather than restated, and the narrow conditions under which a quantity may instead be referenced by identifier — for example a shared reference condition or a defining constant reused across many records.
- Is the quantity embedded as a value object in the host record, or referenced by identifier, and what justifies the choice? composition
- Which fields are mandatory in every embedding, and which are conditionally required by scale type or origin? requirement
- Does the embedded quantity inherit the host record's identity, versioning and audit trail, or does it carry its own? identity
- Which host-model responsibilities are explicitly delegated so this mixin does not restate them? ownership
Access, disclosure and retention of quantity values
A quantity value is small but not neutral. Precise numeric values can re-identify individuals, reveal protected attributes, or disclose commercially sensitive process parameters, and precision reduction or banding is a recognised disclosure control that itself changes the value's meaning and must be recorded as a derivation. No consulted primary metrology or units standard addresses access control or retention for quantity values, so these rules are inherited from the host model and from the adopting Dimension's policy — this finding exists to make that delegation explicit and auditable rather than implicit.
- Can this numeric value, alone or combined with others, re-identify a person or reveal a controlled attribute? privacy
- Which access rule applies to the numeric value as against its unit and quantity-kind metadata? access
- Under which retention rule is the value deleted, and is the unit and provenance metadata retained so remaining data stays interpretable? retention
- Is precision reduction, banding or perturbation applied as a disclosure control, and is that transformation recorded as provenance? security
Classifiers Filled
- Family
- World Models
- Category
- Cross-cutting context
- Entry kind
- mixin
- Navigation path
- NAV.XCT.QTY
- Domain
- XCT.QTY
- Industry
- Cross-industry
- Tags
- quantityunitxct.qty
What it is Filled
WM-XCT-008 covers the semantics of a quantity value and its unit as an embedded value object: what is measured (quantity kind, dimension, scale type), what the number references (unit identity, codes, expression grammar, prefixes, system membership), how the number itself is carried (form, bounds, precision, exactness), how values may be compared and converted (commensurability, linear and non-linear conversion, information loss), how quality is stated (uncertainty, tolerance, constraints, validation), the contextual qualifiers and provenance/time needed to interpret it, and the interoperability, versioning and embedding governance required to reuse it. It does not model the act of measurement, the measured thing, or any domain-specific property catalogue.
In scope
- Quantity kind, quantity dimension, and the ISQ dimensional exponents used for consistency checks
- Measurement unit identity: symbol, name, governed codes (UCUM, UN/CEFACT common code, QUDT IRI) and code-system versioning
- Unit expression grammar: compound expressions, exponents, annotations, prefixes, multiples and submultiples
- Scale type (ratio, interval, ordinal, nominal) and the operations each scale permits or forbids
- Quantity value composition: numeric value bound to a reference, point vs interval vs bounded vs ratio forms
- Numeric fidelity: significant digits, trailing-zero precision, exactness, rounding, representation format
- Commensurability, equality, and conversion by multiplier/offset or by non-linear function
- Measurement uncertainty expression (standard, combined, expanded, coverage factor) and tolerance/specification limits
- Reference conditions, denominator/population qualifiers and other context that changes interpretation
- Provenance of the value (measured, computed, converted, asserted), event time vs observation/ingestion time
- Constraint specification, validation outcomes and exception handling for unrecognised units or failing values
- Alignment to external unit vocabularies, recorded conflicts, and profile/value-set binding
- Embedding contract for use as a mixin inside host records
Out of scope
- The measurement or observation act itself — sensor, procedure, feature of interest, sampling — which belongs to a Measurement/Observation sibling model
- Time instants, intervals and calendars as first-class entities; this model only carries timestamps and durations as quantity values or metadata
- Spatial geometry, coordinate reference systems and datum transformation
- Monetary amounts, currency governance and exchange rates; a currency code is not a unit of a physical quantity kind
- Full metrological traceability chains, calibration certificates and laboratory accreditation records
- Domain property catalogues (for example laboratory analyte catalogues or product attribute dictionaries)
- Statistical distributions, uncertainty budgets as computational models, and Monte Carlo propagation methods
- Curation of the external unit registries themselves; this model consumes and pins their releases
Why it exists Filled
Provide a format-neutral, embeddable value-object mixin that lets an AI agent state, interpret, validate, convert, compare and govern a quantity value — a number bound to a reference (unit, measurement procedure or reference material) — with the quantity kind, scale type, numeric fidelity, uncertainty, provenance and registry governance needed to use it safely across domains.
Distinguishing features Filled
- A quantity value is a number bound to a unit and a quantity kind; neither is meaningful alone.
- It differs from a measurement or observation, which adds method, time and subject.
- Money amounts belong to the money model; currency is not a unit of measure here.
- Precision and exactness are part of the value and are preserved end to end.
What robots and AI may and may not do Filled
Must not
- Store or exchange a number without its unit.
- Convert unknown or arbitrary units by guessing.
- Round or drop significant digits silently.
- Overwrite the original recorded value with its canonical form.
- Compare quantities of different kinds or scale types.
Only with a human decision
- Mapping an unknown inbound unit code.
- Deciding conformity against a safety-critical specification.
May
- Parse and canonicalise unit expressions against a pinned registry release.
- Convert between commensurable units and record the conversion.
- Check commensurability before comparing values.
- Render quantities for presentation in the reader's conventions.
Moral aspects Filled
- Unit errors in medicine, engineering and aviation have caused deaths; accuracy here is a safety matter.
- Misleading units in consumer information hurt buyers.
Who is affected
- People relying on dosages and measurements
- Engineers and operators
- Consumers
Owners Filled
Steward
Name a single accountable owner for the model instance in the adopting Dimension, with a named deputy, since the registry entry currently records only 'owner designated by the adopting Dimension'.
Roles
- Model owner
- Own WM-XCT-008 in the adopting Dimension, approve version changes and adjudicate boundary disputes with sibling models.; Approve or reject adoption of value-affecting upstream registry changes.
- Unit registry steward
- Maintain the pinned registry release manifest, the unit code crosswalk and the conversion factor table.; Reconcile upstream releases, classify changes, and issue deprecation and migration notices.; Review and retire local extension codes when upstream terms become available.
- Metrology reviewer
- Review uncertainty statements for GUM conformance, including uncertainty type, coverage factor and coverage probability.; Approve conversion parameters, non-linear conversion functions and decision rules used for conformity assessment.; Challenge scale-type assignments and reject invalid arithmetic on interval and ordinal scales.
- Interoperability steward
- Maintain the alignment and conflict register and the profile and value-set binding declarations.; Negotiate and record bindings with exchange partners, including non-conformance disposition.; Validate that a conformance claim is evidenced before it is published.
- Data protection and retention officer
- Assign sensitivity classifications and retention rules to quantity values in host contexts.; Approve disclosure-control techniques such as precision reduction or banding and require them to be recorded as derivations.; Audit deletions, retractions and tombstones against policy.
Links to other meta-models Filled
references
- Measurement / Observation model (SOSA/SSN-aligned sibling) - The observation act supplies the context in which a quantity value is a result; SOSA explicitly defines no units and delegates their encoding, so this mixin fills that slot and references the observation rather than restating sensor, procedure or feature of interest.
- Temporal / Time model - Event time, observation time and validity intervals are carried here in RFC 3339 lexical form, but calendar, interval, recurrence and timezone-rule semantics are owned by the temporal sibling.
- Money / Currency model - Monetary amounts share the numeric-fidelity and value-form rules but have no quantity dimension; a currency code must resolve through the Money model even where a projection such as schema.org places it in unitCode.
- Spatial / Geometry model - Lengths, areas, volumes and angles used in geometry are quantity values from this mixin, but coordinates, coordinate reference systems and datum transformations belong to the spatial model.
- Code registry / identifier governance model - Unit code lists are consumed and pinned here; their publication cadence, deprecation policy and issuance governance belong to the registry sibling.
composes
- Provenance model - Origin category, originating agent, derivation inputs and supersession links are provenance concerns mixed into the quantity value object rather than modelled independently within it.
extends
- Metrological traceability and calibration model - Traceability claims and uncertainty budgets referenced from a quantity value are substantiated by calibration chains, reference standards and certificates owned by that model.
aligned
- UCUM — The Unified Code for Units of Measure v2.2 - Alignment for machine-parseable unit expressions, prefix and atom rules, annotation handling, special and arbitrary unit semantics, commensurability and conformance levels. Alignment, not conformance: conformance requires a tested parser declaration.
- UN/CEFACT Recommendation 20 Revision 17 common codes - Alignment for three-character common codes required in trade and supply-chain exchange, crosswalked to UCUM expressions and QUDT IRIs with explicit mapping strength.
- QUDT ontology v3.5.0 - Alignment for unit and quantity-kind IRIs, dimension vectors, conversion multiplier and offset, applicable-unit constraints and the commensurability framework, pinned by release because QUDT has made value-affecting changes between releases.
- ISO 80000 series / ISQ and the SI Brochure - Normative alignment for the system of quantities, dimensions, coherent units, prefixes, printing rules, rounding and logarithmic quantities. Full ISO 80000 text is paywalled, so clause-level conformance is not claimed.
- JCGM 100:2008 GUM uncertainty framework - Alignment for the uncertainty vocabulary and reporting requirements: standard, combined standard and expanded uncertainty, Type A and Type B evaluation, coverage factor and coverage probability.
- HL7 FHIR R5 Quantity datatype - Alignment to a widely deployed concrete binding covering value, comparator, unit, system and code, decimal precision significance, and profiled variants; used as an interoperability test case rather than as the model's semantics.
- schema.org QuantitativeValue - Alignment to the web projection using UN/CEFACT unitCode, unitText fallback, minValue/maxValue and valueReference, with the currency-in-unitCode divergence recorded as a conflict.
- D-SI SmartCom XML exchange format v2.2.0 - Alignment to a metrology-native exchange format that carries value, unit and uncertainty as one payload, used to test that this mixin's mandatory field set is sufficient for metrological round-tripping.
neighbor
- Measurement / Observation model - SOSA/SSN models the act (sensor, procedure, feature of interest) and explicitly delegates unit encoding to external vocabularies; WM-XCT-008 supplies the result value object that such an observation carries, and never restates the observing act.
- Temporal / Time model - A duration expressed as a quantity ('30 min') is in scope; a calendar instant, interval, recurrence or timezone rule is not. Record timestamps use RFC 3339 and belong to the temporal sibling's semantics.
- Money / Currency model - schema.org permits currency codes in unitCode, but a currency is not a unit of a physical quantity kind and has no dimension; monetary amounts must resolve through a Money sibling model, and only the numeric-fidelity rules are shared.
- Metrological traceability / calibration model - WM-XCT-008 carries the reported uncertainty and any traceability claim as a reference; the calibration hierarchy, standards and certificates that substantiate the claim are a separate model.
- Identifier / code registry model - This model pins and resolves unit codes but does not define registry governance mechanics; a code registry sibling owns release cadence, deprecation policy and publication of the code lists it consumes.
- Nominal property / classifier model - VIM 1.30 defines a nominal property as having no magnitude; blood group or colour names are classifications, not quantities, and must not be forced into this mixin even when coded numerically.
- Statistical aggregate model - A mean, median or percentile is a quantity value and uses this mixin, but the population definition, sampling frame and estimator specification belong to a statistics sibling model.
What else AI and robots need to interact with it Filled
Identity and identifiers required Filled
- Identifier issued by the authoritative master system or defining standards body — for example an upstream unit registry IRI, a UN/CEFACT common code, or a laboratory-issued uncertainty budget identifier.
- Governed global identifier or IRI minted in the adopting Dimension namespace where no authoritative identifier exists, always paired with an explicit version.
- UUID or ULID assigned by the adopting Dimension as a last resort, recorded alongside any natural keys rather than replacing them.
- A date, a release year, a display string or a unit symbol is never an identifier.
Direct properties not applicable Not applicable
Not applicable
Institutional or informational subject: no invented physical properties.
Recognition optional Filled
- A quantity value carries a number, a unit symbol or code and a quantity kind.
- Confused with a dimensionless count, a currency amount, a code that looks numeric and a value with an implied default unit.
Capabilities and actions required Filled
- Resolve unit reference: Resolve a unit code, expression or display string to a pinned registry entry yielding the canonical expression, quantity kind, dimension vector, system membership and conversion parameters.
- Parse and canonicalise unit expression: Parse a compound unit expression under the pinned grammar, discard curly-brace annotations for semantic purposes, and emit a deterministic canonical form for equality and commensurability testing.
- Check commensurability and comparability: Determine whether two quantity values may lawfully be compared, added or aggregated, testing dimension equality, quantity-kind agreement and scale-type compatibility, and refusing arbitrary-unit pairs outright.
- Convert quantity value: Convert a value to a target unit using the pinned multiplier and offset, or a declared non-linear function for special units, applying the point-versus-difference rule and recording the derivation.
- Normalise to coherent SI unit: Express a value in the coherent SI unit of its quantity kind to give a canonical comparison basis, without discarding the value as originally reported.
- Validate quantity value: Evaluate a quantity value against its bound unit value set, permitted value forms, plausibility range, cardinality, requiredness and scale-type operation restrictions, and record a re-evaluable outcome.
- Assert measurement uncertainty: Attach a GUM-conformant uncertainty statement to a value, requiring the uncertainty type and, for expanded uncertainty, the coverage factor and coverage probability.
- Decide conformity against specification: Compare a value and its uncertainty against specification limits using a named decision rule and any guard band, and record the outcome separately from both the value and its uncertainty.
- Render quantity for presentation: Produce a locale-appropriate display string from the resolved unit and the value's significant digits, applying the pinned style authority's printing and spelling rules without mutating the stored value.
- Reconcile pinned registry release: Compare a newly published unit or quantity-kind registry release against the pinned manifest, classify each change as cosmetic, semantic or value-affecting, and issue migration notices for affected values.
- Record value provenance and times: Attach the origin category, originating agent, derivation inputs and both event time and observation/ingestion time to a quantity value in RFC 3339 form with explicit offsets.
- Apply quantity calculus: Multiply, divide, exponentiate, add or subtract quantity values under dimensional homogeneity and coherent-factor accounting.
- Map unit code: Translate a unit identifier from one vocabulary to another using an authorised crosswalk, recording mapping type and conflicts.
- Freeze original quantity value: Create an immutable snapshot of the originally recorded lexical value, unit, comparator and provenance before any conversion.
Hazards and failure modes required Filled
- Wrong conversions causing overdoses or structural failures.
- Loss of precision in calculations.
- Mismatched unit codes between systems.
Standards and interfaces required Filled
- The International System of Units (SI) Brochure, BIPM.
- UCUM Unified Code for Units of Measure.
- QUDT quantities, units, dimensions and types ontology.
- UN/CEFACT Recommendation 20 unit codes.
Context of use required Filled
- The SI is assumed as the reference system, with customary and off-system units treated as convertible alternatives. Jurisdictions with statutory customary-unit requirements will need a locally bound presentation and storage policy.
- UN/CEFACT Rec 20 is assumed as the trade code list. Domain-specific regimes (for example customs tariff schedules or sector-specific code lists) may mandate different codes in the same exchange.
- UCUM is assumed as the machine grammar, reflecting its adoption in healthcare through FHIR; other sectors may mandate a different expression syntax, in which case the parser conformance declaration must name it.
- Decimal separators, digit grouping and unit name spelling vary by locale and language; the model treats these as presentation concerns bound to a pinned style authority rather than as data.
- Access, disclosure and retention positions assume a general-purpose governance regime; jurisdictions with specific data protection, health, financial or trade-secret statutes will impose stricter rules that override the defaults here.
- Calendar-dependent duration units such as month and year are ambiguous across contexts; FHIR's practice of treating 'mo' as a calendar month when calculating recurrence is one convention among several and must be declared per deployment.
- SI is treated as the default physical system of units; US customary and Imperial units are supported only as named non-SI systems with explicit variants such as US versus Imperial gallon.
- English and French names in the SI Brochure are both authentic; this research used English texts.
- UNECE Rec 20 is assumed for international trade EDI; some jurisdictions mandate additional national unit lists that were not reviewed.
- ISO 11240 is global IDMP but operationally driven by medicines regulators; non-health Dimensions may ignore it without losing SI alignment.
- NIST SP 811 informs US style and conversion rounding but is not a substitute for the current SI Brochure.
Sources Filled
- The International System of Units (SI), 9th edition (SI Brochure) - Bureau International des Poids et Mesures (BIPM)
- JCGM 200:2012 International vocabulary of metrology — Basic and general concepts and associated terms (VIM, 3rd edition), online browser - Joint Committee for Guides in Metrology (JCGM) / BIPM
- Measurement units — SI base units and defining constants - Bureau International des Poids et Mesures (BIPM)
- Resolution 3 of the 27th CGPM (2022): On the extension of the range of SI prefixes - Conférence Générale des Poids et Mesures (CGPM) / BIPM
- The Unified Code for Units of Measure (UCUM) specification - Regenstrief Institute, Inc. / UCUM Organization
- Recommendation No. 20 — Codes for Units of Measure Used in International Trade, Revision 17 (Annexes I to III) - UNECE / UN/CEFACT
- QUDT public repository — releases - QUDT.org
- QUDT — Quantities, Units, Dimensions and Types ontology (home) - QUDT.org
- HL7 FHIR Release 5 — Data Types (Quantity, SimpleQuantity, Range, Ratio) - Health Level Seven International (HL7)
- ISO 80000-1:2022 Quantities and units — Part 1: General - International Organization for Standardization (ISO)
- NIST Special Publication 811 — Guide for the Use of the International System of Units (SI) - National Institute of Standards and Technology (NIST), U.S. Department of Commerce
- JCGM 100:2008 Evaluation of measurement data — Guide to the expression of uncertainty in measurement (GUM) - Joint Committee for Guides in Metrology (JCGM) / BIPM
- SmartCom Digital-SI (D-SI) XML exchange format for metrological data, version 2.2.0 - Physikalisch-Technische Bundesanstalt (PTB) / EMPIR 17IND02 SmartCom
- schema.org QuantitativeValue - W3C Schema.org Community Group
- Semantic Sensor Network Ontology (SSN/SOSA), W3C Recommendation - World Wide Web Consortium (W3C) / OGC
- RFC 3339 — Date and Time on the Internet: Timestamps - Internet Engineering Task Force (IETF)
- JCGM 200:2012 International Vocabulary of Metrology – Basic and general concepts and associated terms (VIM), 3rd edition - Joint Committee for Guides in Metrology (JCGM) / BIPM
- Quantities, Units, Dimensions and Types (QUDT) Schema, Version 2.1.29 - QUDT.org
- JCGM 100:2008 Evaluation of measurement data — Guide to the expression of uncertainty in measurement (GUM) - Joint Committee for Guides in Metrology (JCGM) / BIPM
- HL7 FHIR Release 4 Data Types — Quantity and related types - Health Level Seven International (HL7)
- UN/CEFACT Recommendation 20 — Codes for Units of Measure Used in International Trade - United Nations Economic Commission for Europe (UNECE)
- ISO 11240:2012 Health informatics — Identification of medicinal products — Data elements and structures for the unique identification and exchange of units of measurement - International Organization for Standardization (ISO)
Open questions
- Record the UCUM/SI dimension-basis non-isomorphism in the alignment-and-conflict register: UCUM's defining basis (metre, second, gram, radian, kelvin, coulomb, candela) is not isomorphic with the SI, and UCUM treats radian as a base while the SI treats plane angle as dimension one — which changes commensurability results for angle quantities.
- Fold the prefix-on-special-unit scaling trap into the prefixes-and-scaled-units finding as a question: a prefix on a special unit scales the function output, so milli-degree Celsius is not 0.001 times a Celsius temperature.
- Evaluate adding a unit-of-presentation boundary note (ISO 11239 / ISO 11240): tablet, ampoule, vial and puff are counted presentations, not metrological units, and must not be stored as bare UCUM atoms. Requires adopting ISO 11240 as a source first.
- Confirm and record UCUM's deprecation of ppb and pptr on the grounds that billion and trillion are internationally ambiguous, and specify the power-of-ten replacement rule for the dimension-one-and-counts finding.
- Decide whether the accepted metrological-traceability-claim finding needs its own artifact or should reference the host model's calibration record by identifier, so the claim never circulates without locatable evidence while the chain stays out of scope.
- Retrieve the OM 2 ontology (Claude reports a TLS certificate mismatch on its published host) and IEC 80000-13 information-science units, both credible sibling vocabularies currently absent from the alignment set.
- Full normative text of ISO 80000-1:2022 and the other ISO 80000 parts is paywalled; only the public catalogue record (edition 2, December 2022) was read, so no clause-level claim is made against ISO 80000.
- The SI Brochure and GUM were retrieved as PDFs that could not be machine-parsed in this session; their content is cited from the BIPM landing pages and from well-established published definitions, and clause-level quotation is not asserted for either.
- Direct fetch of unece.org was blocked (HTTP 403) throughout; UN/CEFACT Recommendation 20 Revision 17 (2021) and its three annexes were confirmed through the UNECE site's own indexed listings rather than by reading the page body.
- VIM4 is in committee draft and may change definitions relied on here (notably around quantity, value and unit); this model is built against VIM3 (JCGM 200:2012) and will need re-checking on VIM4 publication.
- No exhaustive unit atom inventory, prefix table or conversion factor set is reproduced; these belong in the pinned registry artifacts, not in the model.
- Statistical uncertainty propagation methods, including the GUM Supplement 1 Monte Carlo approach, are referenced only as an extension point and are not modelled.
- Legal metrology requirements — trade approval, verification marks, national weights-and-measures law — are not covered and are jurisdiction-specific.
- Sexagesimal, fractional-inch and other non-decimal customary presentations are acknowledged only through the presentation finding; no normalisation rules are specified.
- The Ontology of units of Measure (OM 2) could not be retrieved (TLS certificate mismatch on its published host) and is therefore absent from the alignment set despite being a credible sibling vocabulary.
- Full text of ISO 80000-1:2022 and ISO 11240:2012 is paywalled; abstracts and public tables of contents were used, so clause-level data-element names from those standards may be incomplete.
- UCUM 2.2 prefix table as published 2024-06-17 does not show ronna, quetta, ronto or quecto; whether a later UCUM revision added them was not verified beyond this version.
- OIML legal-metrology instruments, WELMEC guides and national weights-and-measures statutes were not taken as primary sources.
- Digital calibration certificate (DCC) schemas, CODATA least-squares constant adjustments after 2019, and VIM4 draft revisions are not incorporated.
- IEC 80000-13 information-science units, UDUNITS, OM ontology, SensorML/SWE Quantity, UN/CEFACT CCTS Quantity.Type and schema.org QuantitativeValue are discovery alignments only.
- Vector, tensor, complex, distributional and interval-arithmetic quantity types beyond FHIR Range are not modelled.
- Catalytic enzyme units, WHO International Units and other biological potency systems are covered only as arbitrary/procedure-defined units.
Machine files
Provenance
world-models research · reviewable-draft
Built from: models/wm-xct-008-quantity-unit/spec.yaml, ver-cy/world-models/card-supplements/wm-xct-008-quantity-unit.json