{
  "id": "temperature",
  "kind": "datatype",
  "status": "draft",
  "name": "Temperature",
  "doc": "A measured or set temperature, such as an air, water or body temperature reading. Datasets store it as a number in degrees Celsius, degrees Fahrenheit or kelvins, with the unit either in the value or in the column name or metadata. The regular expression recognizes only values that carry a unit symbol. Semantic MediaWiki has a Temperature datatype that accepts K, °C, °F and °R and stores values in kelvins.",
  "parent": "numeric",
  "is_pii": false,
  "categories": [
    "values",
    "science",
    "environment"
  ],
  "langs": [
    "common"
  ],
  "regexp": "^[-+]?\\d+(?:[.,]\\d+)?(?:\\s?(?:°\\s?[CFR]|℃|℉)|\\sK)$",
  "examples": [
    {
      "value": "21.5 °C",
      "description": "air temperature in degrees Celsius",
      "valid": true
    },
    {
      "value": "36.6°C",
      "description": "body temperature without a space before the unit",
      "valid": true
    },
    {
      "value": "-40 °F",
      "description": "negative temperature in degrees Fahrenheit",
      "valid": true
    },
    {
      "value": "273.15 K",
      "description": "water freezing point in kelvins",
      "valid": true
    },
    {
      "value": "25K",
      "description": "K without a space usually means thousands",
      "valid": false
    },
    {
      "value": "°C",
      "description": "unit without a number",
      "valid": false
    }
  ],
  "mappings": {
    "wikidata": "P2076"
  },
  "links": [
    {
      "type": "wikipedia",
      "url": "https://en.wikipedia.org/wiki/Temperature"
    },
    {
      "type": "wikidata",
      "url": "https://www.wikidata.org/wiki/Property:P2076"
    },
    {
      "type": "doc",
      "url": "https://www.semantic-mediawiki.org/wiki/Help:Type_Temperature"
    }
  ],
  "translations": {
    "ru": {
      "name": "Температура"
    }
  },
  "detected_by": {
    "tools": [
      "collibra",
      "greatexpectations",
      "ibmknowledgecatalog"
    ]
  },
  "quality": {
    "score": 100,
    "missing": []
  },
  "source": {
    "path": "data/datatypes/any/values/temperature.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/any/values/temperature.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/values/temperature.yaml"
  },
  "urls": {
    "html": "http://registry.apicrafter.io/datatype/temperature",
    "json": "http://registry.apicrafter.io/api/v1/datatypes/temperature.json"
  }
}