{
  "id": "owid_entity_code",
  "kind": "datatype",
  "status": "draft",
  "name": "Our World in Data entity code",
  "doc": "Code that Our World in Data gives to an entity without an ISO 3166-1 alpha-3 code, OWID_ and two to four capitals: continents and income groups (OWID_AFR Africa, OWID_EUR Europe, OWID_WRL World, OWID_HIC High-income countries, OWID_EUN European Union) and countries or parts of countries outside ISO 3166 (OWID_KOS Kosovo, OWID_CYN Northern Cyprus, OWID_ENG England, OWID_SCT Scotland). The iso_code column of the OWID datasets (COVID-19, energy, CO2) mixes these codes with alpha-3 codes (countrycode_alpha3); a column of aggregates holds only OWID codes.",
  "is_pii": false,
  "categories": [
    "geo"
  ],
  "langs": [
    "common"
  ],
  "classification": "identifier",
  "regexp": "^OWID_[A-Z]{2,4}$",
  "examples": [
    {
      "value": "OWID_WRL",
      "description": "World",
      "valid": true
    },
    {
      "value": "OWID_AFR",
      "description": "Africa (OWID COVID-19 data on the Africa Data Hub portal)",
      "valid": true
    },
    {
      "value": "OWID_KOS",
      "description": "Kosovo",
      "valid": true
    },
    {
      "value": "OWID_HIC",
      "description": "High-income countries",
      "valid": true
    },
    {
      "value": "AFG",
      "description": "ISO 3166-1 alpha-3: countrycode_alpha3",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "doc",
      "url": "https://github.com/owid/covid-19-data/tree/master/public/data"
    },
    {
      "type": "doc",
      "url": "https://ourworldindata.org/"
    }
  ],
  "translations": {
    "ru": {
      "name": "Код объекта Our World in Data",
      "doc": "Код OWID_ для объектов без кода ISO 3166-1 alpha-3 в данных Our World in Data, например OWID_WRL (мир) или OWID_KOS (Косово)."
    }
  },
  "detected_by": {
    "tools": [
      "metacrafter"
    ],
    "metacrafter_rules": [
      {
        "rule": "owidentitycodevalue",
        "type": "data",
        "match": "regex",
        "file": "common/intcodes.yaml"
      }
    ]
  },
  "quality": {
    "score": 90,
    "missing": [
      "mapping (Wikidata, Schema.org, ...)"
    ]
  },
  "source": {
    "path": "data/datatypes/any/geo/owid_entity_code.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/any/geo/owid_entity_code.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/geo/owid_entity_code.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/owid_entity_code",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/owid_entity_code.json"
  }
}