NoeFlandre commited on
Commit
a655354
·
verified ·
1 Parent(s): 8ca5e1b

docs(v2): refresh dataset card and viewer configs

Browse files
Files changed (1) hide show
  1. README.md +90 -14
README.md CHANGED
@@ -1,40 +1,116 @@
1
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  dataset_info:
3
- config_name: default
4
  version: wikipedia-tags-v2
 
 
 
5
  ---
6
- # OSM Polygon Wikidata + Wikipedia
7
 
8
- Version 2 keeps every V1 polygon and adds polygons discovered through valid multilingual OSM `wikipedia=*` tags, including polygons without a Wikidata QID.
9
 
10
- The build reuses finalized V1 documents and sidecars. It fetches only direct Wikipedia pages that are not already present in V1, so reruns are resumable and do not refetch the existing corpus.
 
 
 
 
11
 
12
  ## Snapshot
13
 
14
  - **Hugging Face dataset:** [NoeFlandre/osm-polygon-wikidata-and-wikipedia](https://huggingface.co/datasets/NoeFlandre/osm-polygon-wikidata-and-wikipedia)
15
  - **Regions:** 386
16
  - **Polygons:** 1,259,424
 
17
  - **Wikipedia documents:** 2,332,053
18
- - **Wikipedia sections:** 12,492,162
19
  - **Wikivoyage documents:** 14,420
 
 
20
  - **Wikivoyage sections:** 302,200
21
  - **Wikidata facts:** 3,901,092
22
  - **Polygon-document links:** 2,541,553
23
  - **Wikipedia-tag-only polygons:** 33,682
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24
 
25
- ## Discovery and provenance
26
 
27
- Each polygon row records `discovery_sources` (`wikidata`, `wikipedia_tag`, or both), normalized multilingual references, and structured rejections. The `polygon_document_links` table stores both V1 Wikidata-sitelink relationships and V2 direct-tag relationships in one schema, with `link_sources` identifying how each relationship was found.
28
 
29
  ## Repository layout
30
 
31
- - `polygons/` — one row for every retained OSM polygon.
32
- - `wikipedia/documents/` — canonical 32-column Wikipedia document rows; direct-only rows may have a null `wikidata`.
33
- - `polygon_document_links/` — unified polygon-to-document relationships for Wikipedia and Wikivoyage.
34
- - `wikipedia/sections/` — section-level Wikipedia text using the exact V1 22-column section schema.
35
- - `wikivoyage/documents/`, `wikivoyage/sections/`, `wikidata/facts/` — reused V1 sidecars.
36
- - `manifests/processed_pbfs.json` — versioned, per-region row counts and file hashes.
37
 
38
  ## Reproducibility
39
 
40
- The V2 build is selected explicitly with `sync-dir --dataset-version v2`. V1 commands and the V1 artifact tree remain unchanged.
 
1
  ---
2
+ license: odbl
3
+ language:
4
+ - en
5
+ tags:
6
+ - openstreetmap
7
+ - wikidata
8
+ - wikipedia
9
+ - wikivoyage
10
+ - geospatial
11
+ configs:
12
+ - config_name: polygons
13
+ data_files:
14
+ - split: polygons
15
+ path: polygons/*.parquet
16
+ - config_name: polygon_document_links
17
+ data_files:
18
+ - split: polygon_document_links
19
+ path: polygon_document_links/*.parquet
20
+ - config_name: wikipedia_documents
21
+ data_files:
22
+ - split: wikipedia_documents
23
+ path: wikipedia/documents/*.parquet
24
+ - config_name: wikipedia_sections
25
+ data_files:
26
+ - split: wikipedia_sections
27
+ path: wikipedia/sections/*.parquet
28
+ - config_name: wikivoyage_documents
29
+ data_files:
30
+ - split: wikivoyage_documents
31
+ path: wikivoyage/documents/*.parquet
32
+ - config_name: wikivoyage_sections
33
+ data_files:
34
+ - split: wikivoyage_sections
35
+ path: wikivoyage/sections/*.parquet
36
+ - config_name: wikidata_facts
37
+ data_files:
38
+ - split: wikidata_facts
39
+ path: wikidata/facts/*.parquet
40
  dataset_info:
 
41
  version: wikipedia-tags-v2
42
+ regions: 386
43
+ polygons: 1259424
44
+ documents: 2346473
45
  ---
 
46
 
47
+ # OSM Polygon Wikidata + Wikipedia, V2
48
 
49
+ ![V2 dataset overview](assets/dataset_hero.png)
50
+
51
+ V2 keeps the V1 Wikidata-derived corpus and adds valid multilingual OSM `wikipedia=*` references, including polygons without a Wikidata QID. The code is maintained in the [GitHub repository](https://github.com/NoeFlandre/osm-polygon-wikidata-only).
52
+
53
+ The public V2 Trackio snapshot is [`final-dataset-snapshot-v2`](https://huggingface.co/spaces/NoeFlandre/osm-polygon-wikidata-and-wikipedia-trackio).
54
 
55
  ## Snapshot
56
 
57
  - **Hugging Face dataset:** [NoeFlandre/osm-polygon-wikidata-and-wikipedia](https://huggingface.co/datasets/NoeFlandre/osm-polygon-wikidata-and-wikipedia)
58
  - **Regions:** 386
59
  - **Polygons:** 1,259,424
60
+ - **Unique Wikidata entities:** 1,119,287
61
  - **Wikipedia documents:** 2,332,053
 
62
  - **Wikivoyage documents:** 14,420
63
+ - **Wikipedia + Wikivoyage documents:** 2,346,473
64
+ - **Wikipedia sections:** 12,492,162
65
  - **Wikivoyage sections:** 302,200
66
  - **Wikidata facts:** 3,901,092
67
  - **Polygon-document links:** 2,541,553
68
  - **Wikipedia-tag-only polygons:** 33,682
69
+ - **Document words:** 845,066,382
70
+ - **Languages represented:** 353
71
+ - **Polygon/link-table storage:** 0.1 GB
72
+ - **Total Parquet storage:** 21.4 GB
73
+
74
+ ## V2 compared with V1
75
+
76
+ The following deltas are computed from local V1 and V2 artifact identities, not entered manually:
77
+
78
+ - **Additional polygons discovered through V2 Wikipedia tags:** 75,314
79
+ - **Additional Wikipedia document identities:** 40,013
80
+
81
+ ## Coverage maps
82
+
83
+ ### All V2 dataset polygons
84
+
85
+ ![All V2 dataset polygons](assets/coverage_map.png)
86
+
87
+ Every point is one retained V2 polygon, including polygons without text.
88
+
89
+ ### Polygons with Wikipedia or Wikivoyage text
90
+
91
+ ![V2 polygons with text](assets/geographic_text_presence.png)
92
+
93
+ Each point is one polygon linked to at least one non-empty Wikipedia or Wikivoyage document. A polygon is counted once even when several documents qualify.
94
+
95
+ ### H3 density of polygons with text
96
+
97
+ ![V2 geographic text density](assets/geographic_text_density.png)
98
+
99
+ Each H3 cell shows the raw count of unique V2 polygons with non-empty Wikipedia or Wikivoyage text. Colour uses a logarithmic scale; it is not a proportion.
100
 
101
+ ## Deduplication and provenance
102
 
103
+ V2 deduplicates documents by `document_id` and polygon-document links by `(polygon_id, project, document_id)` within each region. Byte-identical repeats collapse deterministically; conflicting rows fail closed. The `discovery_sources` and `link_sources` fields distinguish Wikidata-derived and direct Wikipedia-tag relationships.
104
 
105
  ## Repository layout
106
 
107
+ - `polygons/<stem>.parquet` — one row per retained OSM polygon.
108
+ - `wikipedia/documents/<stem>.parquet` and `wikipedia/sections/<stem>.parquet` — multilingual Wikipedia documents and their sections.
109
+ Wikipedia sections retain the exact V1 22-column section schema for lossless reuse.
110
+ - `wikivoyage/documents/<stem>.parquet` and `wikivoyage/sections/<stem>.parquet` — Wikivoyage documents and sections reused from V1 where available.
111
+ - `polygon_document_links/<stem>.parquet` — unified Wikipedia and Wikivoyage polygon links.
112
+ - `wikidata/facts/<stem>.parquet` — structured Wikidata facts.
113
 
114
  ## Reproducibility
115
 
116
+ Run V2 explicitly with `sync-dir --dataset-version v2`. V1 remains a separate contract and is not modified by V2 processing.