{
  "id": "energy_amount",
  "kind": "datatype",
  "status": "draft",
  "name": "Amount of energy",
  "doc": "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": "numeric",
  "is_pii": false,
  "categories": [
    "energy",
    "values"
  ],
  "langs": [
    "common"
  ],
  "classification": "categorical",
  "regexp": "^-?\\d+(?:[.,]\\d+)?\\s?(?:[kMGT]?Wh|[kMGTP]?J|kcal)$",
  "examples": [
    {
      "value": "9.059 kWh",
      "description": "hourly output of a council building's solar system",
      "valid": true
    },
    {
      "value": "1200 MWh",
      "valid": true
    },
    {
      "value": "35 GJ",
      "valid": true
    },
    {
      "value": "5 kW",
      "description": "a power, not an amount of energy",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "wikipedia",
      "url": "https://en.wikipedia.org/wiki/Kilowatt-hour"
    },
    {
      "type": "wikidata",
      "url": "https://www.wikidata.org/wiki/Q11379"
    }
  ],
  "translations": {
    "ru": {
      "name": "Количество энергии"
    }
  },
  "detected_by": {
    "tools": [
      "metacrafter"
    ],
    "metacrafter_rules": [
      {
        "rule": "energyamountbyname",
        "type": "field",
        "match": "regex",
        "file": "common/values.yaml"
      }
    ]
  },
  "quality": {
    "score": 90,
    "missing": [
      "mapping (Wikidata, Schema.org, ...)"
    ]
  },
  "source": {
    "path": "data/datatypes/any/values/energy_amount.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/any/values/energy_amount.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/values/energy_amount.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/energy_amount",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/energy_amount.json"
  }
}