Property talk:P4335

Latest comment: 1 month ago by Pere prlpz in topic Dead links for entities inside the municipality

Documentation

IDESCAT territorial code in Catalonia
official identifier for a Catalonian territorial unit, from Institut Estadístic de Catalunya (IDESCAT)
Representscomarca of Catalonia (Q937876), municipality of Catalonia (Q33146843), decentralized municipal entity (Q6554043), minor local entity of Spain (Q3333989), collective population entity of Spain (Q8776398), single entity of population (Q3055118), populated place nucleus (Q11939023)
Associated itemInstitut d'Estadística de Catalunya (Q1636785)
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 (note: this should be moved to the property statements)
Allowed values\d{2}|\d{6}|\d{10}|\d{13}
ExampleAlt Empordà (Q6904)02
Barcelona (Q1492)080193
Picamoixons (Q9059342)7006240003
Oix (Q2945174)1710960002200
Sourcehttps://www.idescat.cat/codis/?lang=en
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.
Related to country  Spain (Q29) (See 146 others) (Catalonia (Q5705))
Lists
Proposal discussionProposal discussion
Current uses
Total4,979
Main statement4,97399.9% of uses
Qualifier4<0.1% of uses
Reference2<0.1% of uses
Search for values
[create Create a translatable help page (preferably in English) for this property to be included here]
Allowed entity types are Wikibase item (Q29934200): the property may only be used on a certain entity type (Help)
List of violations of this constraint: Database reports/Constraint violations/P4335#Entity types, hourly updated report
Scope is as main value (Q54828448), as reference (Q54828450): the property must be used by specified way only (Help)
List of violations of this constraint: Database reports/Constraint violations/P4335#Scope, hourly updated report, SPARQL
Format “\d{2}|\d{6}|\d{10}\d{13}: value must be formatted using this pattern (PCRE syntax). (Help)
List of violations of this constraint: Database reports/Constraint violations/P4335#Format, hourly updated report, SPARQL
Distinct values: this property likely contains a value that is different from all other items. (Help)
List of violations of this constraint: Database reports/Constraint violations/P4335#Unique value, hourly updated report, SPARQL (every item), SPARQL (by value)
Single value: this property generally contains a single value. (Help)
List of violations of this constraint: Database reports/Constraint violations/P4335#Single value, hourly updated report, SPARQL
Qualifiers “start time (P580), end time (P582): this property should be used only with the listed qualifiers. (Help)
List of violations of this constraint: Database reports/Constraint violations/P4335#allowed qualifiers, hourly updated report, SPARQL
Item “country (P17): Spain (Q29): Items with this property should also have “country (P17): Spain (Q29)”. (Help)
List of violations of this constraint: Database reports/Constraint violations/P4335#Item P17, hourly updated report, search, SPARQL
Item “coordinate location (P625): Items with this property should also have “coordinate location (P625)”. (Help)
List of violations of this constraint: Database reports/Constraint violations/P4335#Item P625, hourly updated report, SPARQL
Item “population (P1082): Items with this property should also have “population (P1082)”. (Help)
List of violations of this constraint: Database reports/Constraint violations/P4335#Item P1082, hourly updated report, SPARQL
Label required in languages: ca: Entities using this property should have labels in one of the following languages: ca (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303).
List of violations of this constraint: Database reports/Constraint violations/P4335#Label in 'ca' language, search, SPARQL
 
Divisions sense codi
Comarques, municipis o entitats municipals decentralitzades sense codi IDESCAT (Help)
Violations query: SELECT ?item where { VALUES (?divisio) { ( wd:Q937876 ) ( wd:Q33146843 ) ( wd:Q6554043 ) } ?item p:P31 ?stat . ?stat ps:P31 ?divisio . MINUS { ?stat pq:P582 [] } MINUS { ?item wdt:P4335 [] } }
List of this constraint violations: Database reports/Complex constraint violations/P4335#Divisions sense codi
edit

When the id issues an entity inside the municipality and therefore smaller, the link does not work:

Davileci (talk) 11:14, 10 June 2024 (UTC)Reply

Probably the solution should be some kind of "if", that only links if the number of digits is that of municipalities.
Additionally the restrictions should be updated to deal with sub-municipal entities. Pere prlpz (talk) 18:10, 20 June 2024 (UTC)Reply
@Quelet: Tens algun suggeriment de què hauria d'enllaçar l'id de l'IDESCAT per entitats singulars de població i altres elements submunicipals? No tinc gens clar que aquí es pugui fer servir un if, ni si es pot agafar les primeres xifres per enllaçar sempre el municipi, però abans de preguntar les solucions tècniques per com fer-ho caldria tenir una idea del que volem fer. Pere prlpz (talk) 20:07, 20 June 2024 (UTC)Reply
L'IDESCAT no sembla tenir una pàgina web on proporcioni dades de l'entitat poblacional relacionada amb el codi de 13 dígits, com sí que en té l'INE per al codi d'11 dígits. Llavors, es podria fer que si el codi és de 13, no linki cap pàgina... O també, demanar una nova propietat "codi IDESCAT de 13 dígits". Lògicament es podria demanar la pàgina de l'INE d'11 dígits a partir del codi de 13... però no seria IDESCAT.
Potser caldria convèncer l'IDESCAT que faciliti aquest servei. Quelet (talk) 21:29, 20 June 2024 (UTC)Reply
I una altra cosa - els codis d'EMD (que comencen per 70) no tenen pas gaire res a veure amb els codis de 13 dígits. Els d'EMD haurien de ser una propietat independent (o una propietat genèrica com a codi, amb un qualificador adient com vam fer amb el "codi de catàleg" dels centres docents catalans).
Una EMD, igual que un municipi, comporta govern i administració. Les entitats de 13 dígits són només entitats estadístico-poblacionals, i tinc els meus dubtes que hagin de ser subclasse de "assentament humà".
I per acabar: seria bo diferenciar "nucli" estadístic (provinent de l'IDESCAT o INE) de "nucli" geogràcic (provinent de l'ICGC o IGN). Potser es podria definir un "nucli d'entitat singular de població"/"disseminat d'entitat singular de població" i per un altre cantó un "nucli poblacional geogràfic"/"disseminat poblacional geogràfic" (noms totalment inventats, és per deixar clara la diferència" , provinents de l'IDESCAT i de l'ICGC, respectivament. Considerar-los equivalent va provocar una confusió. A més, els primers tenen dades poblacionals i geogràfiques (fins i tot geometria/àrea), i els segons no en tenen de poblacionals (només lat-lon-alt). Quelet (talk) 21:45, 20 June 2024 (UTC)Reply
Estem parlant de coses diferents.
Una cosa és que tinguem un elements "nucli d'entitat singular de població"/"disseminat d'entitat singular de població" per posar-los a la instància del que sigui (tot i que jo no acabo de veure l'interès d'entrar a Wikidata el nucli i el disseminat d'una entitat de població). Una altra cosa és que hàgim de demanar propietats diferents pel codi idescat de cada un d'ells. I el mateix per les EMD. Només cal veure que fins fa uns dies tenien codi idescat els municipis i les comarques, i són ben diferents.
Això d'enllaçar uns codis i no uns altres haurem de preguntar si és possible. Entenc que els que han de seguir enllaçats són els de 2 i 6 xifres. Pere prlpz (talk) 22:06, 20 June 2024 (UTC)Reply
Return to "P4335" page.