{
  "id": "bo_community_code",
  "kind": "datatype",
  "status": "draft",
  "name": "Bolivian community code (INE)",
  "doc": "Eleven-digit code of a Bolivian community or locality (comunidad, localidad) in the census cartography of the INE: the municipality code, two digits for the canton and three for the locality, as in 02010501001 and 03020101001. The community layers of the Censo 2012 in the GeoNode of SIARH (COD_COM) give it next to the municipality code; some add three digits for a part of a dispersed community (01010105005001), and spreadsheets drop the leading zero.",
  "parent": "id",
  "is_pii": false,
  "categories": [
    "geo",
    "government"
  ],
  "country": [
    "BO"
  ],
  "langs": [
    "es"
  ],
  "classification": "identifier",
  "regexp": "^0?[1-9](?:0[1-9]|1[0-9]|20)0[1-9]\\d{5}(?:\\d{3})?$",
  "examples": [
    {
      "value": "03020101001",
      "description": "a community of Aiquile, Cochabamba",
      "valid": true
    },
    {
      "value": "02010501001",
      "description": "a community of El Alto, La Paz",
      "valid": true
    },
    {
      "value": "020105",
      "description": "a municipality code: bo_municipality_code",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "doc",
      "url": "https://www.ine.gob.bo/"
    }
  ],
  "translations": {
    "es": {
      "name": "Código de comunidad (INE)"
    }
  },
  "detected_by": {
    "tools": [
      "metacrafter"
    ],
    "metacrafter_rules": [
      {
        "rule": "bocommunitycodebyname",
        "type": "field",
        "match": "regex",
        "file": "bo/bo_geo.yaml"
      }
    ]
  },
  "quality": {
    "score": 90,
    "missing": [
      "mapping (Wikidata, Schema.org, ...)"
    ]
  },
  "source": {
    "path": "data/datatypes/BO/geo/bo_community_code.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/BO/geo/bo_community_code.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/BO/geo/bo_community_code.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/bo_community_code",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/bo_community_code.json"
  }
}