Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
update dump_wikidata
  • Loading branch information
ppKrauss committed Sep 17, 2018
1 parent 3663dd2 commit 2bfd46c
Show file tree
Hide file tree
Showing 173 changed files with 2,717 additions and 197 deletions.
4 changes: 4 additions & 0 deletions README.md
Expand Up @@ -13,6 +13,10 @@ Brazilian city names and official codes of 5570 municipalities.

See [Collaborative spreadsheet editor](https://docs.google.com/spreadsheets/d/1A4WzBTH26YMtp62CCaOjS30WwlubauSmOnpecZQ-fpI/) and Wikidata references.

Periodic dumps: please, to update dumps run
* `php src/etc/dumpWikidata.php` to update [data/dump_wikidata](data/dump_wikidata), `*.json` files at each state-folder.
* `php src/dumpOsm.php geo` to update [data/dump_osm](data/dump_osm), `*.geojson` files at each state-folder.

## Stable versions

See homologation process after each cicle of update.
Expand Down
10 changes: 8 additions & 2 deletions data/dump_osm/README.md
@@ -1,5 +1,11 @@
## Licence
## Provenance and update frequency

At this moment GeoJSON dumps are experimental, low quality: using `http://polygons.openstreetmap.fr/get_geojson.py?id={osm_relation_id}`,
where no update or quality guarantees are offered.
No [data provenance](https://en.wikipedia.org/wiki/Data_lineage#Data_Provenance) metadata or report about simplification methods.
See also reported bug at [issue #34](https://github.com/datasets-br/city-codes/issues/34).

All OSM dumps are OSM data or derived, so ODbL licensed, http://opendatacommons.org/licenses/odbl/1.0
## Licence

All OSM dumps are OSM data or derived, so ODbL licensed, http://opendatacommons.org/licenses/odbl/1.0

43 changes: 43 additions & 0 deletions data/dump_wikidata/AC/RioBranco.json
Expand Up @@ -303,6 +303,49 @@
"value": "68",
"type": "string"
}
],
"P1313": [
{
"value": {
"entity-type": "item",
"numeric-id": 56449668,
"id": "Q56449668"
},
"type": "wikibase-entityid"
}
],
"P194": [
{
"value": {
"entity-type": "item",
"numeric-id": 56450268,
"id": "Q56450268"
},
"type": "wikibase-entityid"
}
],
"P571": [
{
"value": {
"time": "+1882-12-28T00:00:00Z",
"timezone": 0,
"before": 0,
"after": 0,
"precision": 11,
"calendarmodel": "http://www.wikidata.org/entity/Q1985727"
},
"type": "time"
}
],
"P206": [
{
"value": {
"entity-type": "item",
"numeric-id": 73584,
"id": "Q73584"
},
"type": "wikibase-entityid"
}
]
}
}
20 changes: 20 additions & 0 deletions data/dump_wikidata/AL/Maceio.json
Expand Up @@ -365,6 +365,26 @@
"value": "7321",
"type": "string"
}
],
"P1313": [
{
"value": {
"entity-type": "item",
"numeric-id": 56449610,
"id": "Q56449610"
},
"type": "wikibase-entityid"
}
],
"P194": [
{
"value": {
"entity-type": "item",
"numeric-id": 56450221,
"id": "Q56450221"
},
"type": "wikibase-entityid"
}
]
}
}
6 changes: 3 additions & 3 deletions data/dump_wikidata/AL/OlhoAguaCasado.json
Expand Up @@ -7,10 +7,10 @@
"P625": [
{
"value": {
"latitude": -9.5361111111111,
"longitude": -37.293888888889,
"latitude": -9.5,
"longitude": -37.816666666667,
"altitude": null,
"precision": 0.00027777777777778,
"precision": 0.016666666666667,
"globe": "http://www.wikidata.org/entity/Q2"
},
"type": "globecoordinate"
Expand Down
2 changes: 1 addition & 1 deletion data/dump_wikidata/AM/Manaus.json
Expand Up @@ -309,7 +309,7 @@
},
{
"value": {
"amount": "+2094391",
"amount": "+2145444",
"unit": "1"
},
"type": "quantity"
Expand Down
6 changes: 3 additions & 3 deletions data/dump_wikidata/AM/SaoPauloOlivenca.json
Expand Up @@ -17,10 +17,10 @@
"P625": [
{
"value": {
"latitude": -3.1019444444444,
"longitude": -67.94,
"latitude": -3.45,
"longitude": -68.95,
"altitude": null,
"precision": 0.00027777777777778,
"precision": 0.016666666666667,
"globe": "http://www.wikidata.org/entity/Q2"
},
"type": "globecoordinate"
Expand Down
20 changes: 20 additions & 0 deletions data/dump_wikidata/AP/Macapa.json
Expand Up @@ -261,6 +261,26 @@
},
"type": "wikibase-entityid"
}
],
"P1313": [
{
"value": {
"entity-type": "item",
"numeric-id": 56449649,
"id": "Q56449649"
},
"type": "wikibase-entityid"
}
],
"P194": [
{
"value": {
"entity-type": "item",
"numeric-id": 56450251,
"id": "Q56450251"
},
"type": "wikibase-entityid"
}
]
}
}
7 changes: 7 additions & 0 deletions data/dump_wikidata/BA/Abaira.json
Expand Up @@ -85,6 +85,13 @@
"unit": "1"
},
"type": "quantity"
},
{
"value": {
"amount": "+8767",
"unit": "1"
},
"type": "quantity"
}
],
"P242": [
Expand Down
7 changes: 7 additions & 0 deletions data/dump_wikidata/BA/Abare.json
Expand Up @@ -85,6 +85,13 @@
"unit": "1"
},
"type": "quantity"
},
{
"value": {
"amount": "+19814",
"unit": "1"
},
"type": "quantity"
}
],
"P242": [
Expand Down
20 changes: 20 additions & 0 deletions data/dump_wikidata/BA/Camacari.json
Expand Up @@ -213,6 +213,26 @@
"value": "71",
"type": "string"
}
],
"P1313": [
{
"value": {
"entity-type": "item",
"numeric-id": 56449701,
"id": "Q56449701"
},
"type": "wikibase-entityid"
}
],
"P194": [
{
"value": {
"entity-type": "item",
"numeric-id": 56450295,
"id": "Q56450295"
},
"type": "wikibase-entityid"
}
]
}
}
56 changes: 56 additions & 0 deletions data/dump_wikidata/BA/CapimGrosso.json
Expand Up @@ -101,6 +101,13 @@
"unit": "1"
},
"type": "quantity"
},
{
"value": {
"amount": "+27007",
"unit": "1"
},
"type": "quantity"
}
],
"P242": [
Expand Down Expand Up @@ -189,6 +196,55 @@
"value": "74",
"type": "string"
}
],
"P1705": [
{
"value": {
"text": "Capim Grosso",
"language": "pt"
},
"type": "monolingualtext"
}
],
"P1448": [
{
"value": {
"text": "Capim Grosso",
"language": "pt"
},
"type": "monolingualtext"
}
],
"P571": [
{
"value": {
"time": "+1985-00-00T00:00:00Z",
"timezone": 0,
"before": 0,
"after": 0,
"precision": 9,
"calendarmodel": "http://www.wikidata.org/entity/Q1985727"
},
"type": "time"
}
],
"P421": [
{
"value": {
"entity-type": "item",
"numeric-id": 6513,
"id": "Q6513"
},
"type": "wikibase-entityid"
},
{
"value": {
"entity-type": "item",
"numeric-id": 6536,
"id": "Q6536"
},
"type": "wikibase-entityid"
}
]
}
}
20 changes: 20 additions & 0 deletions data/dump_wikidata/BA/FeiraSantana.json
Expand Up @@ -265,6 +265,26 @@
"value": "place/Feira-de-Santana",
"type": "string"
}
],
"P1313": [
{
"value": {
"entity-type": "item",
"numeric-id": 56449630,
"id": "Q56449630"
},
"type": "wikibase-entityid"
}
],
"P194": [
{
"value": {
"entity-type": "item",
"numeric-id": 56450235,
"id": "Q56450235"
},
"type": "wikibase-entityid"
}
]
}
}
8 changes: 8 additions & 0 deletions data/dump_wikidata/BA/Salvador.json
Expand Up @@ -298,6 +298,14 @@
"id": "Q11876909"
},
"type": "wikibase-entityid"
},
{
"value": {
"entity-type": "item",
"numeric-id": 17378381,
"id": "Q17378381"
},
"type": "wikibase-entityid"
}
],
"P244": [
Expand Down
26 changes: 26 additions & 0 deletions data/dump_wikidata/BA/VitoriaConquista.json
Expand Up @@ -278,6 +278,32 @@
"value": "place/Vitoria-da-Conquista",
"type": "string"
}
],
"P1313": [
{
"value": {
"entity-type": "item",
"numeric-id": 56449677,
"id": "Q56449677"
},
"type": "wikibase-entityid"
}
],
"P194": [
{
"value": {
"entity-type": "item",
"numeric-id": 56450274,
"id": "Q56450274"
},
"type": "wikibase-entityid"
}
],
"P227": [
{
"value": "10137718-6",
"type": "string"
}
]
}
}

0 comments on commit 2bfd46c

Please sign in to comment.