This document describes the changes introduced in UnitsDB version 2.0.0 compared to version 1.0.0. UnitsDB 2.0.0 represents a major architectural and content update with significant structural changes and content enhancements.
-
Better multilingual support enables localized applications
-
More comprehensive symbol formats simplify integration with various display technologies
-
Standardized references to external resources provide better interoperability
-
Enhanced structure allows for more consistent data validation
-
Additional quantities and dimensions support a wider range of scientific applications
These changes represent the significant architectural updates in UnitsDB 2.0.0.
-
Added
schema_version: "2.0.0"field to all YAML files for consistent versioning -
Reorganized YAML structure with more consistent hierarchical organization
-
Changed from flat object structure to list-based structure with common fields pattern
Relevant issues/pull requests:
-
Introduced formalized
identifierssection for all entities:identifiers: - id: NISTd1 type: nist
-
Added organization-neutral 'unitsml' type identifiers to all entities:
identifiers: - id: u:meter type: unitsml - id: NISTu1 type: nist
-
Added standard
referencesfield to entities linking to external resources:references: - uri: http://si-digital-framework.org/quantities/LENG type: normative authority: si-digital-framework
Relevant issues/pull requests:
-
Restructured
namesfield to support multiple languages:names: - value: length lang: en - value: longueur lang: fr
-
Added French names for units and quantities, sourced from BIPM
Relevant issues/pull requests:
-
Enhanced
symbolsstructure with multiple representation formats:symbols: - ascii: L html: "𝖫" id: dim_L latex: "\\ensuremath{\\mathsf{L}}" mathml: "<mi mathvariant='sans-serif'>L</mi>" unicode: "\U0001D5AB"
-
Changed
dim_symbolstosymbolsin dimensions.yaml -
Provided more comprehensive symbol representations across all formats
Relevant issues/pull requests:
-
Renamed
powerNumeratortopowerfor clarity and consistency -
Made field naming more consistent across files
-
Standardized property types and formats
Relevant issues/pull requests:
-
Added
namesarray with language-specific dimension names -
Added the following new dimensions:
-
NISTd96: fluence (L^-2)
-
NISTd97: fluence_rate (L^-2 T^-1)
-
NISTd98: phase (plane_angle)
-
NISTd99: fuel_efficiency (L^-2)
-
NISTd100: traffic_intensity (dimensionless)
-
NISTd101: symbol_rate (T^-1)
-
NISTd102: information_content (dimensionless)
-
-
Improved dimensionless quantity representation
-
Enhanced symbols representation with mathml and other formats
Relevant issues/pull requests:
-
Added short name property to all prefixes
-
Added SI Digital Framework references to SI prefixes
-
Changed the representation of
NISTp10_0(unity) to use '1' as the symbol instead of empty string -
Added mathml representations for all prefix symbols
-
Reorganized structure to make prefixes consistently represented
Relevant issues/pull requests:
-
Added 15+ new quantities including:
-
NISTq189: emission_rate
-
NISTq190: fluence
-
NISTq191: fluence_rate
-
NISTq192: ITS-90_temperature_celsius
-
NISTq193: ITS-90_temperature_kelvin
-
NISTq194: kerma_rate
-
NISTq195: phase
-
NISTq196: PLTS-2000_temperature
-
NISTq197: exposure
-
NISTq198: fuel_efficiency
-
NISTq199: relative_humidity
-
NISTq200: logarithmic_frequency_range
-
NISTq201: traffic_intensity
-
NISTq202: symbol_rate
-
NISTq203: information_content
-
-
Changed from
unit_referencearray tounit_referencesfor consistency -
Replaced URLs with formal dimension references:
dimension_reference: id: NISTd1 type: nist
-
Added French translations for quantity names
-
Added SI Digital Framework URI references
Relevant issues/pull requests:
-
Added more comprehensive system descriptions
-
Improved classification of units within systems
-
Added clearer acceptable/unacceptable designations
Relevant issues/pull requests:
Applications using UnitsDB will need to adapt to these changes when upgrading from v1.0.0 to v2.0.0:
Relevant issues/pull requests:
-
Update parsers to handle the new schema structure with
schema_versionfield -
Modify code that accesses dimension power values (
powervspowerNumerator) -
Update name access code to handle language-specific name objects
-
Revise symbol handling to work with the expanded symbol representation formats
-
Update code that accesses unit references to use the new reference structure
Relevant issues/pull requests:
For more information on the UnitsDB structure and how to use it effectively, refer to the README.adoc file in the repository, which has been significantly expanded to include detailed information about the database structure and content.
Relevant issues/pull requests:
French translations are sourced from the BIPM SI Digital Framework.
This release includes contributions to fix errors and inconsistencies as well as adding new units and quantities to align with ISO and IEC standards.
Relevant issues/pull requests: