Unit

An unit of measure

Properties

@type

Inherited from Entity.@type

@id

Inherited from RefEntity.@id

name

Inherited from RefEntity.name

description

Inherited from RefEntity.description

conversionFactor

The conversion factor to the reference unit of the unit group to which this unit belongs.

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.

synonyms

A list of synonyms for the unit.

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
}