Wikidata:Property proposal/Moroccan geographic code (2015)

From Wikidata
Jump to navigation Jump to search

Moroccan geographic code (2015)[edit]

Originally proposed at Wikidata:Property proposal/Place

DescriptionMoroccan geographic code since 2015
RepresentsMoroccan Geographic Code (Q2981579)
Data typeExternal identifier
Domainadministrative territorial entity of Morocco (Q4115671)
Allowed values(0[1-9]|1[0-2]|[1-9])(\.\d+){0,6}\.? : first two digits 01 to 12 (for 12 administrative regions). Dotting follows a specific pattern, and the length of the code depends on the administrative level as explained below. The code must not be used for former administrative divisions of Morocco, only the current ones.
Example 1Q28880163 → 01.051.03.01.2.04.05
Example 2Al Hoceima Province (Q1969619) → 01.051
Example 3Tangier-Tetouan-Al Hoceima (Q19951300) → 01
SourceExcel table (xlsx) (ar) from [1]
Number of IDs in source32125, sourcing circumstances (P1480) : more (Q54418095)
Implied notabilityWikidata property for an identifier that suggests notability (Q62589316)
Robot and gadget jobsOpenRefine (Q5583871), QuickStatements 2 (Q29032512)
Applicable "stated in"-valueno value
Single-value constraintyes
Distinct-values constraintyes
Wikidata projectWikiProject Morocco (Q15106931)

Motivation[edit]

  • According to the article in French about the Moroccan geographic code, the Moroccan geographic code is established by the Haut-Commissariat au plan, an independent government statistical institution. The number of digits in the code depends on the level of administrative division, and is as follows:
    • two digits for regions;
    • three (additional) for the prefecture or province;
    • five (additional to the regional code) for circles;
    • seven (additional to the regional code) for communes.

For lower level administrative divisions, the code can be longer. I have statistics of Moroccan villages (douars) from the 2014 census in Excel format (see here, hopefully it's accessible to everyone), and their code is 13 digits long. For example, Q28880163 has the Moroccan geo-code 1051030120405. I hope this makes the proposal clearer so it can go through.--Ideophagous (talk) 10:44, 7 July 2023 (UTC)[reply]

Discussion[edit]