{
  "id": "be_statistical_sector",
  "kind": "datatype",
  "status": "draft",
  "name": "Belgian statistical sector code (Statbel)",
  "doc": "Code of a statistical sector (secteur statistique, statistische sector), the smallest territorial unit of Statbel, the Belgian statistical office, drawn for the 1970 census: Belgium has about 19,800 of them, and population, income and housing statistics are published by sector. The code has nine characters: the five-digit NIS code of the municipality (be_nis_code), a letter for the former municipality (A for the first one, B for the second), and three characters that number the sector, digits or letters, with a hyphen filling the last place (21004A00-, 62063A012, 61072F3MN). Statbel writes ZZZZ after the municipality code for an unknown sector.",
  "parent": "admin_area_3",
  "is_pii": false,
  "categories": [
    "geo",
    "government"
  ],
  "country": [
    "BE"
  ],
  "langs": [
    "common"
  ],
  "classification": "identifier",
  "regexp": "^[1-9]\\d[01]\\d{2}[0-9A-Z]{3}[0-9A-Z-]$",
  "examples": [
    {
      "value": "21004A00-",
      "description": "a sector of the City of Brussels (NIS 21004)",
      "valid": true
    },
    {
      "value": "62063A012",
      "description": "a sector of Liège (NIS 62063), population by statistical sector 2020",
      "valid": true
    },
    {
      "value": "61072F3MN",
      "description": "a sector of Wanze (NIS 61072), income by statistical sector 2020",
      "valid": true
    },
    {
      "value": "62063",
      "description": "the NIS code of the municipality alone",
      "valid": false
    },
    {
      "value": "62063A01",
      "description": "eight characters",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "doc",
      "url": "https://statbel.fgov.be/fr/open-data/secteurs-statistiques"
    },
    {
      "type": "wikipedia",
      "url": "https://nl.wikipedia.org/wiki/Statistische_sector"
    }
  ],
  "translations": {
    "fr": {
      "name": "Code de secteur statistique (Statbel)"
    },
    "nl": {
      "name": "Code van de statistische sector (Statbel)"
    },
    "ru": {
      "name": "Код статистического сектора Бельгии (Statbel)"
    }
  },
  "detected_by": {
    "tools": [
      "metacrafter"
    ],
    "metacrafter_rules": [
      {
        "rule": "bestatisticalsectorbyname",
        "type": "field",
        "match": "regex",
        "file": "be/be_geo.yaml"
      },
      {
        "rule": "bestatisticalsectorvalue",
        "type": "data",
        "match": "func",
        "file": "be/be_geo.yaml"
      }
    ]
  },
  "quality": {
    "score": 90,
    "missing": [
      "mapping (Wikidata, Schema.org, ...)"
    ]
  },
  "source": {
    "path": "data/datatypes/BE/geo/be_statistical_sector.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/BE/geo/be_statistical_sector.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/BE/geo/be_statistical_sector.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/be_statistical_sector",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/be_statistical_sector.json"
  }
}