Unit
An unit of measure
Properties
@type
Inherited from Entity.@type
- Type:
string
(external doc) - Proto-Index: 1
@id
Inherited from RefEntity.@id
- Type:
string
(external doc) - Proto-Index: 2
name
Inherited from RefEntity.name
- Type:
string
(external doc) - Proto-Index: 3
description
Inherited from RefEntity.description
- Type:
string
(external doc) - Proto-Index: 4
conversionFactor
The conversion factor to the reference unit of the unit group to which this unit belongs.
- Type:
double
(external doc) - Proto-Index: 5
isRefUnit
Indicates whether the unit is the reference unit of the unit group to which this unit belongs. If it is the reference unit the conversion factor must be 1.0. There should be always only one reference unit in a unit group. The reference unit is used to convert amounts given in one unit to amounts given in another unit of the respective unit group.
- Type:
boolean
(external doc) - Proto-Index: 6
synonyms
A list of synonyms for the unit.
- Type:
List
ofstring
(external doc) - Proto-Index: 7
Python class stub
The snippet below shows the names of the properties of the corresponding Python class of the olca-schema package. Note that this is not the full class definition but just shows the names of the class and its properties.
@dataclass
class Unit:
id: str
conversion_factor: float
description: str
is_ref_unit: bool
name: str
synonyms: List[str]
JSON example
{
"@type": "Unit",
"@id": "52765a6c-3896-43c2-b2f4-c679acf13efe",
"name": "MJ",
"description": "Megajoule",
"isRefUnit": true,
"conversionFactor": 1.0
}