{
  "id": "ca_tcp_uid",
  "kind": "datatype",
  "status": "draft",
  "name": "Canadian Historical GIS census unit identifier (TCPUID)",
  "doc": "Identifier of a census division or census subdivision of a historical census of Canada (1851 to 1921) in the Canadian Historical GIS, built to join the boundary layers with the census tables and the microdata of The Canadian Peoples / Les populations canadiennes project. A census division is the two-letter abbreviation of the province and a three-digit number (ON001, BC004); a census subdivision adds its three-digit number within the division (ON001001). The fields are named after the level and the census year: TCPUID_CD_1891, TCPUID_CSD_1891. The numbering is made anew for every census year.",
  "parent": "id",
  "is_pii": false,
  "categories": [
    "geo"
  ],
  "country": [
    "CA"
  ],
  "langs": [
    "en",
    "fr"
  ],
  "classification": "identifier",
  "regexp": "^[A-Z]{2}\\d{3}(?:\\d{3})?$",
  "examples": [
    {
      "value": "ON001",
      "description": "a census division of Ontario",
      "valid": true
    },
    {
      "value": "BC001004",
      "description": "a census subdivision of the first census division of British Columbia, 1891",
      "valid": true
    },
    {
      "value": "PE003",
      "valid": true
    },
    {
      "value": "ON0010",
      "description": "four digits",
      "valid": false
    },
    {
      "value": "3501005",
      "description": "a census subdivision code of today (casgc)",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "doc",
      "url": "https://hgiscanada.usask.ca/about"
    },
    {
      "type": "other",
      "url": "https://doi.org/10.5683/SP3/QA4AKE"
    }
  ],
  "translations": {
    "ru": {
      "name": "Идентификатор переписной единицы Исторической ГИС Канады (TCPUID)"
    }
  },
  "detected_by": {
    "tools": [
      "metacrafter"
    ],
    "metacrafter_rules": [
      {
        "rule": "catcpuidbyname",
        "type": "field",
        "match": "regex",
        "file": "ca/ca_stats.yaml"
      }
    ]
  },
  "quality": {
    "score": 90,
    "missing": [
      "mapping (Wikidata, Schema.org, ...)"
    ]
  },
  "source": {
    "path": "data/datatypes/CA/geo/ca_tcp_uid.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/CA/geo/ca_tcp_uid.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/CA/geo/ca_tcp_uid.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/ca_tcp_uid",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/ca_tcp_uid.json"
  }
}