Wikidata:Property proposal/IDESCAT territorial code in Catalonia

IDESCAT territorial code in Catalonia edit

Originally proposed at Wikidata:Property proposal/Authority control

Descriptionofficial identifier for a Catalonian territorial unit, from Institut Estadístic de Catalunya (IDESCAT)
RepresentsMunicipality and regional codes for all the administrative entities of Catalonia territories: comarca of Catalonia (Q937876), municipality of Catalonia (Q33146843), decentralized municipal entity (Q6554043), minor local entity of Spain (Q3333989). Exemple: Alt Empordà (Q6904), Barcelona (Q1492), Picamoixons (Q9059342), etc.
Data typeExternal identifier
Template parameterca:Plantilla:Infotaula geografia política, now just for municipalities.
Domainsubclass of (P279) of administrative territorial entity of Catalonia (Q11917457) and its dependents
Allowed valuesNumeric. 2 digits for comarca of Catalonia (Q937876), 6 digits for municipality of Catalonia (Q33146843), 10 digits for the rest of entities
Example
Sourcehttps://www.idescat.cat/codis/?lang=en
Planned useUpload values and incorporate them to cawiki infoboxes
Formatter URLhttps://www.idescat.cat/emex/?id=$1
Robot and gadget jobsControl domain constrains. Possible access to get public information to upload several properties (population (P1082), nominal GDP (P2131), et al.
Motivation

It's an official code for all catalan territory levels. Now, it's showed in infobox as a calculated code from INE municipality code (P772) just for municipalities, but not for the rest of the entities. It allows to access directly to whole statistical information (Demographic, housing, economy, etc.)

Formatter URL - Information is only for comarca of Catalonia (Q937876) and municipality of Catalonia (Q33146843)

Amadalvarez (talk) 11:39, 31 July 2017 (UTC)[reply]


Discussion
If Spain and Catalunya assign different numbers to Catalunyan regions, then you can't use just LAU (without a qualifier who assigned it...). --Vladimir Alexiev (talk) 18:08, 29 September 2017 (UTC)[reply]
Added links in the examples. --Vladimir Alexiev (talk) 18:11, 29 September 2017 (UTC)[reply]