{
  "id": "es_ine_country_code",
  "kind": "datatype",
  "status": "draft",
  "name": "Spanish INE country code",
  "doc": "Three-digit code of a country or territory in the standard list of countries of the Spanish National Statistics Institute (INE, lista estándar de países y otros territorios), which the municipal register of inhabitants uses for the nationality and the country of birth. The first digit is the continent, 1 for Europe, 2 for Africa, 3 for the Americas, 4 for Asia and 5 for Oceania, as in 108 for Spain, 110 for France, 125 for the United Kingdom and 340 for Argentina. The codes are not the numeric codes of ISO 3166-1.",
  "is_pii": false,
  "categories": [
    "geo"
  ],
  "country": [
    "ES"
  ],
  "langs": [
    "common"
  ],
  "classification": "categorical",
  "regexp": "^[1-5]\\d{2}$",
  "examples": [
    {
      "value": "108",
      "description": "España",
      "valid": true
    },
    {
      "value": "110",
      "description": "Francia",
      "valid": true
    },
    {
      "value": "340",
      "description": "Argentina",
      "valid": true
    },
    {
      "value": "724",
      "description": "Spain in ISO 3166-1 numeric",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "doc",
      "url": "https://www.ine.es/daco/daco42/clasificaciones/paises_estandar.xls"
    }
  ],
  "translations": {
    "es": {
      "name": "Código de país del INE"
    },
    "ru": {
      "name": "Код страны по классификации INE (Испания)"
    }
  },
  "detected_by": {
    "tools": [
      "metacrafter"
    ],
    "metacrafter_rules": [
      {
        "rule": "esinecountrycodebyname",
        "type": "field",
        "match": "regex",
        "file": "es/es_codes.yaml"
      }
    ]
  },
  "quality": {
    "score": 90,
    "missing": [
      "mapping (Wikidata, Schema.org, ...)"
    ]
  },
  "source": {
    "path": "data/datatypes/ES/geo/es_ine_country_code.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/ES/geo/es_ine_country_code.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/ES/geo/es_ine_country_code.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/es_ine_country_code",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/es_ine_country_code.json"
  }
}