Skip to content

Schemas

UnitsML provides two complementary sets of schema definitions for encoding and validating scientific units of measure.

UnitsML XML Schemas

Authoritative XML schemas (XSD) for encoding scientific units of measure in XML documents. UnitsML XML Schemas validate XML documents that use UnitsML markup, covering SI base units, derived units, and non-SI units.

The schema is designed to be used in combination with other specific schemas through XML namespaces — not as a standalone schema. Developers of other markup languages incorporate UnitsML to address the needs of specific communities such as mathematics, chemistry, and materials science.

Supported unit types

SI Base & Special Derived

meter, second, joule, volt, kilogram, ampere, kelvin, mole, candela

SI Derived Units

square meter, meter per second, newton, pascal, watt, hertz, and more

Non-SI Units

minute, angstrom, inch, pound, calorie, atmosphere, and others

Schema versions

VersionStatusDescription
UnitsML 1.0CurrentLatest stable release
UnitsML 1.0-CSD04DraftCommittee Specification Draft 04
UnitsML 0.9.xHistoricalEarlier development versions
UnitsML-LiteDeprecatedSimplified subset

UnitsDB YAML Schemas

YAML schemas that define the structure and validation rules for UnitsDB — the authoritative database of scientific units. Each schema validates one of the six entity types:

SchemaEntityDefines
units-schema.yamlUnitMeasurement units with identifiers, symbols, scale/system references, dimensional composition
quantities-schema.yamlQuantityMeasurable properties (length, mass, force) with dimension references
dimensions-schema.yamlDimensionSI base quantity dimensional powers (L, M, T, I, Θ, N, J)
prefixes-schema.yamlPrefixSI decimal (kilo, milli) and binary (kibi, mebi) scaling factors
scales-schema.yamlScaleMeasurement scale properties (continuous, ordered, logarithmic, interval, ratio)
unit_systems-schema.yamlUnit SystemSystems of measurement (SI, CGS) with base unit definitions

Shared patterns

All entity schemas share common structures:

  • identifiers[] — Cross-system IDs with type enum (nist, unitsml, ucum, si-digital-framework)
  • names[] — Multilingual names with ISO language codes
  • references[] — Informative and normative external references

Unit, Prefix, and Dimension schemas include 6-format symbol representations: latex, unicode, ascii, html, id, mathml.