Property talk:P1976

Latest comment: 7 years ago by Man77 in topic URL

Documentation

INEGI locality ID
identifier for a locality of Mexico
Representsimport and export of data (Q6007395)
Data typeExternal identifier
Template parameterWikipedia infobox parameters, if any; ex: "código" in es:Plantilla:Ficha de localidad
Domainlocality of Mexico (Q20202352) (note: this should be moved to the property statements)
Allowed values[0-9]{9}
ExampleSisal (Q517463)310380004
no label (Q61259000)180190918
El Chino (Q61300588)260030090
Source
According to this template: external reference, Wikipedia list article, etc.
According to statements in the property:
https://www.inegi.org.mx/app/ageeml/
When possible, data should only be stored as statements
Formatter URLhttps://www.inegi.org.mx/app/areasgeograficas/?ag=$1
Robot and gadget jobsNot sure. But data can be imported from Spanish Wikipedia
Related to country  Mexico (Q96) (See 20 others)
See alsoINEGI municipality ID (P3801)
Lists
Proposal discussionProposal discussion
Current uses
Total203,844
Main statement203,829>99.9% of uses
Qualifier3<0.1% of uses
Reference12<0.1% of uses
Search for values
[create Create a translatable help page (preferably in English) for this property to be included here]
Distinct values: this property likely contains a value that is different from all other items. (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/P1976#Unique value, 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/P1976#Single value, hourly updated report, SPARQL
Format “\d{9}: value must be formatted using this pattern (PCRE syntax). (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/P1976#Format, SPARQL
Item “country (P17): Mexico (Q96): Items with this property should also have “country (P17): Mexico (Q96)”. (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/P1976#Item P17, search, SPARQL
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/P1976#Item P131, search, SPARQL
Allowed entity types are Wikibase item (Q29934200): the property may only be used on a certain entity type (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/P1976#Entity types
Scope is as main value (Q54828448), as reference (Q54828450): the property must be used by specified way only (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/P1976#Scope, SPARQL
Item “instance of (P31): locality of Mexico (Q20202352): Items with this property should also have “instance of (P31): locality of Mexico (Q20202352)”. (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/P1976#Item P31, search, SPARQL

URL edit

(Notifying Tobias1984, with whom I talked about this property last year)

The URL used for this property, currently http://www.microrregiones.gob.mx/catloc/contenido.aspx?refnac=$1 has one big weakness: It only works for villages (localidades), INEGI IDs however also exist for the Mexican municipalities (municipios) and states (estados). For example:

The microrregiones database however does offer a way to point to a municipality. For this purpose, however, the code needs to be split:

And for a state the URL we could use looks like this:

Consequently, different URLs for different input lenghts (two-digit, five-digit or nine-digit) are necessary.

Yet there is another database, where any INEGI code can be used as is resulting in a useful URL:

This, however, is only a beta URL. Comments? → «« Man77 »» 16:46, 13 January 2017 (UTC)Reply

Return to "P1976" page.