UnitValue

Description

The UnitValue describes a combination of value and the related unit. These kind of representation helps to compare different values with the same unit or to convert different units.

Use

– For every numeric value belonging to a concrete unit.

Not use

– For not numeric values.
– For values without unit.

Data Model

Name Type M M2 Description Example
value Number X A value belonging to a concrete unit and a special record.
unit String X The unit for the recorded value.
valueText String X X In case of inseparability of value and unit and for representation.

Rules

If a value is not recorded in a structured way, only the valueText is used. Else the value and unit is recorded and the combination of both is recorded in the valueText.

Schema

{
“id”: “/core/UnitValue”,
“$schema”: “http://json-schema.org/draft-04/schema#”,
“type”: “object”,
“properties”: {
“value”: {
“type”: “number”
},
“unit”: {
“type”: “string”
},
“valueText”: {
“type”: “string”
}
},
“required”: [
“valueText”
],
“additionalProperties”: false
}