Datatypes › Energy (electricity, gas, metering)
Amount of energy
ID energy_amount
This record is a draft: it has not been reviewed yet and may be incomplete or wrong. Do not rely on it for compliance decisions. Help improve it (see CONTRIBUTING.md).
A quantity of energy, most often electricity generated, consumed or exported over a period: in watt-hours and their multiples (Wh, kWh, MWh, GWh), in joules (kJ, MJ, GJ, PJ) or, for food, in kilocalories. Meter readings, solar generation logs and energy statistics write it as a number with the unit in the column name (energy_generated in kWh of the solar systems of Camden Council, New South Wales; consumption_kwh) or in the value. Power (kW) is a rate, not an amount of energy. The regular expression recognizes values that carry the unit.
- Parent datatype
- Numeric value
numeric - Categories
- Energy (electricity, gas, metering), All measurable values (percentage, amount and e.t.c)
- Countries
- Global (not tied to a country)
- Languages
- Common to most languages
- Quality
- 90/100 · missing: mapping (Wikidata, Schema.org, ...)
- Metacrafter rules
- 1 rule (1 by field name, 0 by value)
energyamountbynamefield, common/values.yaml
- Supported by tools
- metacrafter
Regular expression
^-?\d+(?:[.,]\d+)?\s?(?:[kMGT]?Wh|[kMGTP]?J|kcal)$
Python re syntax.
Test a value
Examples
| Value | Description |
|---|---|
| 9.059 kWh | hourly output of a council building's solar system |
| 1200 MWh | |
| 35 GJ | |
| 5 kW invalid | a power, not an amount of energy |
Translations
| Language | Name | Description |
|---|---|---|
| Russian | Количество энергии |
Sources
- wikipedia: Kilowatt-hour (en.wikipedia.org)
- wikidata: wikidata.org/wiki/Q11379
Use this record
- Page URL:
https://registry.apicrafter.io/datatype/energy_amount - JSON: API v1 · legacy shape (used by metacrafter) · Markdown (for LLMs)
- Improve it: edit
data/datatypes/any/values/energy_amount.yamlon GitHub