NoeFlandre commited on
Commit
095f974
·
verified ·
1 Parent(s): 7d88e6e

Sync complete region china-hebei-latest

Browse files
.gitattributes CHANGED
@@ -635,3 +635,8 @@ wikidata/facts/china-guizhou-latest.parquet filter=lfs diff=lfs merge=lfs -text
635
  wikipedia/documents/china-hainan-latest.parquet filter=lfs diff=lfs merge=lfs -text
636
  wikipedia/sections/china-hainan-latest.parquet filter=lfs diff=lfs merge=lfs -text
637
  wikidata/facts/china-hainan-latest.parquet filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
635
  wikipedia/documents/china-hainan-latest.parquet filter=lfs diff=lfs merge=lfs -text
636
  wikipedia/sections/china-hainan-latest.parquet filter=lfs diff=lfs merge=lfs -text
637
  wikidata/facts/china-hainan-latest.parquet filter=lfs diff=lfs merge=lfs -text
638
+ wikipedia/documents/china-hebei-latest.parquet filter=lfs diff=lfs merge=lfs -text
639
+ wikipedia/sections/china-hebei-latest.parquet filter=lfs diff=lfs merge=lfs -text
640
+ wikivoyage/documents/china-hebei-latest.parquet filter=lfs diff=lfs merge=lfs -text
641
+ wikivoyage/sections/china-hebei-latest.parquet filter=lfs diff=lfs merge=lfs -text
642
+ wikidata/facts/china-hebei-latest.parquet filter=lfs diff=lfs merge=lfs -text
README.md CHANGED
@@ -6,6 +6,7 @@ tags:
6
  - openstreetmap
7
  - wikidata
8
  - wikipedia
 
9
  - polygons
10
  - geospatial
11
  - multilingual
@@ -22,6 +23,26 @@ configs:
22
  data_files:
23
  - split: polygon_articles
24
  path: polygon_articles/*.parquet
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
25
  dataset_info:
26
  polygon_count: 342196
27
  unique_wikidata_count: 329191
@@ -77,7 +98,16 @@ Both maps below aggregate dataset polygons into H3 cells at the same resolution.
77
  | Languages | 348 |
78
  | Geographic regions | 130 |
79
  | Total words | 223,219,362 |
80
- | Dataset size on disk | 2.9 GB |
 
 
 
 
 
 
 
 
 
81
 
82
  ## Wikipedia coverage funnel
83
 
@@ -132,6 +162,170 @@ Top 20 languages by article count:
132
  - 20 language(s) appear in fewer than 10 article(s)
133
  - 6 language(s) appear in fewer than 5 polygons
134
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
135
  ## Schema
136
 
137
  ### `polygons`
@@ -221,6 +415,83 @@ Top 20 languages by article count:
221
  | `revision_id` | MediaWiki revision ID of the linked article. |
222
  | `is_best_language` | True if this row's language matches the polygon's `best_language`. |
223
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
224
 
225
  ## Data sources & licenses
226
 
 
6
  - openstreetmap
7
  - wikidata
8
  - wikipedia
9
+ - wikivoyage
10
  - polygons
11
  - geospatial
12
  - multilingual
 
23
  data_files:
24
  - split: polygon_articles
25
  path: polygon_articles/*.parquet
26
+ - config_name: wikipedia_documents
27
+ data_files:
28
+ - split: wikipedia_documents
29
+ path: wikipedia/documents/*.parquet
30
+ - config_name: wikipedia_sections
31
+ data_files:
32
+ - split: wikipedia_sections
33
+ path: wikipedia/sections/*.parquet
34
+ - config_name: wikivoyage_documents
35
+ data_files:
36
+ - split: wikivoyage_documents
37
+ path: wikivoyage/documents/*.parquet
38
+ - config_name: wikivoyage_sections
39
+ data_files:
40
+ - split: wikivoyage_sections
41
+ path: wikivoyage/sections/*.parquet
42
+ - config_name: wikidata_facts
43
+ data_files:
44
+ - split: wikidata_facts
45
+ path: wikidata/facts/*.parquet
46
  dataset_info:
47
  polygon_count: 342196
48
  unique_wikidata_count: 329191
 
98
  | Languages | 348 |
99
  | Geographic regions | 130 |
100
  | Total words | 223,219,362 |
101
+ | Core tables size | 2.9 GB |
102
+ | Wikipedia documents | 476,798 |
103
+ | Wikipedia sections | 2,564,276 |
104
+ | Wikivoyage documents | 4,337 |
105
+ | Wikivoyage sections | 90,735 |
106
+ | Wikidata facts | 1,057,914 |
107
+ | Fully augmented regions | 83 |
108
+ | Document corpus words | 182,543,117 |
109
+ | Augmentation tables size | 3.0 GB |
110
+ | Total Parquet size | 6.0 GB |
111
 
112
  ## Wikipedia coverage funnel
113
 
 
162
  - 20 language(s) appear in fewer than 10 article(s)
163
  - 6 language(s) appear in fewer than 5 polygons
164
 
165
+ ## Augmentation coverage
166
+
167
+ | Metric | Count | Percentage |
168
+ | --- | ---: | ---: |
169
+ | Core regions | 130 | 100.0% |
170
+ | Fully augmented | 83 | 63.8% |
171
+ | Partially augmented | 0 | 0.0% |
172
+ | Not augmented | 47 | 36.2% |
173
+ | Orphan sidecar stems | 0 | - |
174
+
175
+ Augmentation is additive and a zero-row sidecar may still represent a completed region. Orphan sidecars (a sidecar with no matching core polygon) do not count toward core regions.
176
+
177
+ ## Storage accounting
178
+
179
+ Core tables size and total storage size are additive:
180
+
181
+ | Metric | Bytes | Human-readable |
182
+ | --- | ---: | --- |
183
+ | Core tables size | 3,140,525,690 | 2.9 GB |
184
+ | Augmentation tables size | 3,261,561,239 | 3.0 GB |
185
+ | Total Parquet size | 6,402,086,929 | 6.0 GB |
186
+
187
+ ## Wikipedia text corpus
188
+
189
+ ### Documents
190
+
191
+ | Metric | Value |
192
+ | --- | ---: |
193
+ | Document rows | 476,798 |
194
+ | Unique documents | 458,377 |
195
+ | Unique Wikidata entities | 137,757 |
196
+ | Languages | 343 |
197
+ | Non-empty text | 476,787 |
198
+ | Empty / null text | 11 |
199
+ | Characters | 1,199,249,030 |
200
+ | Words | 176,866,582 |
201
+ | Estimated tokens | 299,633,220 |
202
+ | Regions / files represented | 83 |
203
+
204
+ ### Sections
205
+
206
+ | Metric | Value |
207
+ | --- | ---: |
208
+ | Section rows | 2,564,276 |
209
+ | Unique sections | 2,453,448 |
210
+ | Documents represented | 457,373 |
211
+ | Avg sections per represented document | 5.61 |
212
+ | Non-empty section rate | 100.0% |
213
+ | Unique Wikidata entities | 137,754 |
214
+ | Languages | 343 |
215
+ | Non-empty text | 2,564,276 |
216
+ | Empty / null text | 0 |
217
+ | Characters | 1,592,088,809 |
218
+ | Words | 249,446,647 |
219
+ | Estimated tokens | 397,050,927 |
220
+ | Regions / files represented | 83 |
221
+
222
+ ### Languages
223
+
224
+ | Language | Documents | % of total |
225
+ | --- | ---: | ---: |
226
+ | de | 50,288 | 10.5% |
227
+ | en | 39,310 | 8.2% |
228
+ | fr | 30,810 | 6.5% |
229
+ | ceb | 29,934 | 6.3% |
230
+ | es | 21,640 | 4.5% |
231
+ | it | 15,583 | 3.3% |
232
+ | zh | 15,072 | 3.2% |
233
+ | arz | 14,872 | 3.1% |
234
+ | nl | 13,249 | 2.8% |
235
+ | sv | 12,424 | 2.6% |
236
+
237
+
238
+ ## Wikivoyage text corpus
239
+
240
+ ### Documents
241
+
242
+ | Metric | Value |
243
+ | --- | ---: |
244
+ | Document rows | 4,337 |
245
+ | Unique documents | 4,225 |
246
+ | Unique Wikidata entities | 1,575 |
247
+ | Languages | 27 |
248
+ | Non-empty text | 4,336 |
249
+ | Empty / null text | 1 |
250
+ | Characters | 36,035,511 |
251
+ | Words | 5,676,535 |
252
+ | Estimated tokens | 9,007,240 |
253
+ | Regions / files represented | 83 |
254
+
255
+ ### Sections
256
+
257
+ | Metric | Value |
258
+ | --- | ---: |
259
+ | Section rows | 90,735 |
260
+ | Unique sections | 88,127 |
261
+ | Documents represented | 4,224 |
262
+ | Avg sections per represented document | 21.48 |
263
+ | Non-empty section rate | 100.0% |
264
+ | Unique Wikidata entities | 1,574 |
265
+ | Languages | 27 |
266
+ | Non-empty text | 90,735 |
267
+ | Empty / null text | 0 |
268
+ | Characters | 41,306,239 |
269
+ | Words | 6,771,303 |
270
+ | Estimated tokens | 10,291,157 |
271
+ | Regions / files represented | 83 |
272
+
273
+ ### Languages
274
+
275
+ | Language | Documents | % of total |
276
+ | --- | ---: | ---: |
277
+ | en | 857 | 19.8% |
278
+ | de | 680 | 15.7% |
279
+ | pl | 441 | 10.2% |
280
+ | fr | 372 | 8.6% |
281
+ | it | 285 | 6.6% |
282
+ | es | 202 | 4.7% |
283
+ | pt | 199 | 4.6% |
284
+ | fa | 159 | 3.7% |
285
+ | zh | 156 | 3.6% |
286
+ | nl | 155 | 3.6% |
287
+
288
+
289
+ ## Wikidata facts
290
+
291
+ | Metric | Value |
292
+ | --- | ---: |
293
+ | Fact rows | 1,057,914 |
294
+ | Unique facts | 1,027,807 |
295
+ | Unique subjects | 257,499 |
296
+ | Distinct properties | 8 |
297
+ | Non-empty English property label | 1,057,914 |
298
+ | Non-empty English value label | 978,003 |
299
+ | With qualifiers | 52,764 |
300
+ | With references | 453,205 |
301
+ | Unreadable qualifier JSON | 1,005,150 |
302
+ | Unreadable references JSON | 604,709 |
303
+ | Regions / files represented | 83 |
304
+
305
+ **Value-type distribution:**
306
+
307
+ | Value type | Facts |
308
+ | --- | ---: |
309
+ | wikibase-item | 978,003 |
310
+ | time | 47,986 |
311
+ | quantity | 31,925 |
312
+
313
+ **Top properties:**
314
+
315
+ | Property ID | English label | Facts |
316
+ | --- | --- | ---: |
317
+ | P31 | instance of | 304,667 |
318
+ | P131 | located in the administrative territorial entity | 277,577 |
319
+ | P17 | country | 265,914 |
320
+ | P1435 | heritage designation | 112,453 |
321
+ | P571 | inception | 47,986 |
322
+ | P2044 | elevation above sea level | 31,925 |
323
+ | P361 | part of | 16,992 |
324
+ | P279 | subclass of | 400 |
325
+
326
+ English labels are requested where available; multilingual labels are preserved verbatim in the Parquet column `property_labels`.
327
+
328
+
329
  ## Schema
330
 
331
  ### `polygons`
 
415
  | `revision_id` | MediaWiki revision ID of the linked article. |
416
  | `is_best_language` | True if this row's language matches the polygon's `best_language`. |
417
 
418
+ ### `wikipedia/documents` and `wikivoyage/documents`
419
+
420
+ | Column | Description |
421
+ | --- | --- |
422
+ | `document_id` | Deterministic document identifier (`<wikidata>:<project>:<language>:<page_id>:<revision_id>`). |
423
+ | `article_id` | Stable article identifier that pairs this document with its `articles/<stem>.parquet` row. |
424
+ | `wikidata` | Wikidata QID this document is linked to. |
425
+ | `project` | Wiki project name: `wikipedia` or `wikivoyage`. |
426
+ | `language` | Wikipedia or Wikivoyage language code (e.g. `en`). |
427
+ | `site` | Wikidata sitelink host, e.g. `enwiki` or `enwikivoyage`. |
428
+ | `title` | Page title as returned by the MediaWiki API. |
429
+ | `url` | Canonical URL of the page. |
430
+ | `page_id` | MediaWiki page ID (integer). |
431
+ | `revision_id` | MediaWiki revision ID used to fetch the page text (integer). |
432
+ | `revision_timestamp` | ISO-8601 timestamp of the revision. |
433
+ | `retrieved_at` | ISO-8601 UTC timestamp when the pipeline fetched the page. |
434
+ | `full_text` | Cleaned plain-text document body (Wikipedia articles or Wikivoyage pages). |
435
+ | `full_text_format` | Encoding of `full_text`; always `plain_text`. |
436
+ | `article_length_chars` | Length of `full_text` in characters. |
437
+ | `article_length_words` | Approximate whitespace-token count of `full_text`. |
438
+ | `article_length_tokens_estimate` | Rough token estimate: `chars / 4`. |
439
+ | `license` | License string (`CC BY-SA` for Wikipedia/Wikivoyage text). |
440
+ | `attribution` | Attribution string for the page. |
441
+ | `source_api` | Which API was queried: `mediawiki_action_api` or `wikivoyage_rest_api`. |
442
+ | `fetch_status` | One of: `ok`, `page_not_found`, `http_error`, `rate_limited`, `parse_error`, `empty_text`. |
443
+ | `fetch_error` | Short diagnostic on failure, empty string on success. |
444
+ | `content_hash` | Stable SHA-256 of `full_text` for change tracking. |
445
+
446
+ ### `wikipedia/sections` and `wikivoyage/sections`
447
+
448
+ | Column | Description |
449
+ | --- | --- |
450
+ | `section_id` | Deterministic SHA-256 over `(document_id, section_index, anchor)`. |
451
+ | `document_id` | FK back to `documents` (Wikipedia or Wikivoyage). |
452
+ | `article_id` | FK back to the corresponding `articles` row. |
453
+ | `wikidata` | Wikidata QID (denormalized for fast filtering). |
454
+ | `project` | Wiki project name: `wikipedia` or `wikivoyage`. |
455
+ | `language` | Wikipedia or Wikivoyage language code. |
456
+ | `site` | Wikidata sitelink host. |
457
+ | `page_id` | MediaWiki page ID (integer). |
458
+ | `revision_id` | MediaWiki revision ID (integer). |
459
+ | `section_index` | Sequential position of the section inside the document (integer). |
460
+ | `heading` | Section heading, or empty string when the section is the lead. |
461
+ | `anchor` | Section anchor after MediaWiki parsing. |
462
+ | `level` | Heading level (1..6), or 0 for the lead section (integer). |
463
+ | `parent_section_id` | Section ID of the enclosing section, or empty string. |
464
+ | `section_path` | JSON array of ancestor section IDs, in order. |
465
+ | `text` | Plain-text section body. |
466
+ | `text_length_chars` | Length of `text` in characters (integer). |
467
+ | `text_length_words` | Approximate whitespace-token count of `text` (integer). |
468
+ | `text_length_tokens_estimate` | Rough token estimate: `chars / 4` (integer). |
469
+ | `content_hash` | Stable SHA-256 of `section.text`. |
470
+ | `license` | License string for this section. |
471
+ | `attribution` | Attribution string for this section. |
472
+
473
+ ### `wikidata/facts`
474
+
475
+ | Column | Description |
476
+ | --- | --- |
477
+ | `fact_id` | Deterministic SHA-256 over `(subject, property, value, ordinal)`. |
478
+ | `wikidata` | Wikidata QID the fact belongs to (the subject). |
479
+ | `property_id` | Property P-id (e.g. `P17`). |
480
+ | `property_label_en` | English label for the property, when available. |
481
+ | `property_labels` | Deterministic JSON object of property labels per language. |
482
+ | `value_type` | Wikidata value datatype: `wikibase-entityid`, `string`, `quantity`, `time`, ... |
483
+ | `value_entity_id` | Entity-valued object QID, when the value is a Wikidata entity. |
484
+ | `value_label_en` | English label for the value entity, when available. |
485
+ | `value_labels` | Deterministic JSON object of value labels per language. |
486
+ | `value_text` | Rendered text representation of the value. |
487
+ | `numeric_value` | Numeric amount for `quantity`-typed values, otherwise null. |
488
+ | `unit_entity_id` | Wikidata QID of the unit (e.g. `Q11573` for metre). |
489
+ | `rank` | Wikidata rank: `preferred`, `normal`, or `deprecated`. |
490
+ | `qualifiers` | Deterministic JSON object of qualifier snaks, or `{}` when absent. |
491
+ | `references` | Deterministic JSON array of reference groups, or `[]` when absent. |
492
+ | `retrieved_at` | ISO-8601 UTC timestamp when the pipeline fetched the entity. |
493
+ | `source_api` | Which API was queried (always `wikidata_action_api`). |
494
+
495
 
496
  ## Data sources & licenses
497
 
manifests/augmentation_manifest.json CHANGED
The diff for this file is too large to render. See raw diff
 
wikidata/facts/china-hebei-latest.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:204d877b0df36c053e0946f8b4df57ee72f0866625d6995be27d651e5dab1202
3
+ size 941258
wikipedia/documents/china-hebei-latest.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bebe58b98fd5e29568f11bf1cc2c870a0f5d679e37596548d2df21b71c814fbe
3
+ size 15181186
wikipedia/sections/china-hebei-latest.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ebc3a3b0ba09b29ea656e10afb0e33dbcce895e6d24c87553b496ac47d8049bd
3
+ size 24187116
wikivoyage/documents/china-hebei-latest.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8bfa53b33327946b48ac2710df8b2dd59fd11f675497fafa651d0ae1ccbebd01
3
+ size 923070
wikivoyage/sections/china-hebei-latest.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:07fd0c30847503df8cf9c6d7fbb0b0e8ff19e3f30c8104a117f790c6f9f7a9e9
3
+ size 1351368