Dataset Viewer
The dataset viewer is not available for this dataset.
The JWT signature verification failed. Check the signing key and the algorithm.
Error code:   JWTInvalidSignature
Exception:    InvalidSignatureError
Message:      Signature verification failed
Traceback:    Traceback (most recent call last):
                File "/src/libs/libapi/src/libapi/jwt_token.py", line 286, in validate_jwt
                  decoded = jwt.decode(
                      jwt=token,
                  ...<2 lines>...
                      options=options,
                  )
                File "/usr/local/lib/python3.14/site-packages/jwt/api_jwt.py", line 368, in decode
                  decoded = self.decode_complete(
                      jwt,
                  ...<8 lines>...
                      leeway=leeway,
                  )
                File "/usr/local/lib/python3.14/site-packages/jwt/api_jwt.py", line 265, in decode_complete
                  decoded = self._jws.decode_complete(
                      jwt,
                  ...<3 lines>...
                      detached_payload=detached_payload,
                  )
                File "/usr/local/lib/python3.14/site-packages/jwt/api_jws.py", line 270, in decode_complete
                  self._verify_signature(
                  ~~~~~~~~~~~~~~~~~~~~~~^
                      signing_input,
                      ^^^^^^^^^^^^^^
                  ...<4 lines>...
                      options=merged_options,
                      ^^^^^^^^^^^^^^^^^^^^^^^
                  )
                  ^
                File "/usr/local/lib/python3.14/site-packages/jwt/api_jws.py", line 417, in _verify_signature
                  raise InvalidSignatureError("Signature verification failed")
              jwt.exceptions.InvalidSignatureError: Signature verification failed

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

NoeFlandre/osm-polygon-wikidata-only

OSM polygons tagged with a wikidata=* reference, enriched with Wikidata descriptions and Wikipedia article text for every valid language-Wikipedia sitelink, with full text and no per-QID article cap. Core and text tables are published as:

  • polygons/<stem>.parquet — one row per polygon
  • wikipedia/documents/<stem>.parquet — one lossless row per unique Wikipedia article
  • polygon_articles/<stem>.parquet — many-to-many link table

Additional derived text and fact tables are:

  • wikipedia/sections/<stem>.parquet
  • wikivoyage/documents/<stem>.parquet and wikivoyage/sections/<stem>.parquet
  • wikidata/facts/<stem>.parquet

Generated on 2026-07-17.

Maintained by Noé Flandre.

Coverage

Coverage Map

Geographic coverage

Both maps below aggregate dataset polygons into H3 cells at the same resolution. All denominators and counts are conditional on each polygon carrying an OSM wikidata=* tag.

Wikipedia text coverage

Geographic Wikipedia Text Coverage

coverage_rate(h) = covered_polygons(h) / all_dataset_polygons(h), where a covered polygon has at least one linked Wikipedia article with non-empty text. Cell colour encodes this fraction from 0% to 100%; grey cells hold fewer than 20 polygons and are not statistically meaningful.

Polygon density

Geographic Polygon Density

polygon_count(h) = number of dataset polygons whose centroid belongs to H3 cell h. Colour encodes the raw count on a logarithmic scale because counts are highly skewed across the world. Low counts remain visible.

Dataset snapshot

Metric Value
Polygons 647,762
Unique Wikidata entities 621,210
Polygon-article links 979,581
Languages 349
Geographic regions 234
Core tables size 4.3 GB
Wikipedia documents 872,147
Wikipedia sections 4,629,886
Wikivoyage documents 7,800
Wikivoyage sections 165,295
Wikidata facts 1,629,015
Fully augmented regions 233
Wikipedia + Wikivoyage document words 322,997,069
Augmentation tables size 6.8 GB
Total Parquet size 8.0 GB

Wikipedia + Wikivoyage document words sums the full Wikipedia and Wikivoyage documents and excludes section rows because sections duplicate document text.

Wikipedia coverage funnel

Stage Count % of all polygons
All polygons 647,762 100.0%
With >=1 article 272,452 42.1%
With non-empty text 272,451 42.1%
With English coverage 74,587 11.5%
No English, another language 197,865 30.5%
2+ languages 116,179 17.9%
5+ languages 42,972 6.6%
10+ languages 19,212 3.0%

Language distribution

Top 20 languages by Wikipedia document count:

Language Wikipedia documents % of total Polygons
de 76,306 8.7% 92,701
en 67,690 7.8% 74,587
fr 52,315 6.0% 57,543
ceb 43,115 4.9% 44,872
es 34,755 4.0% 38,500
nl 30,682 3.5% 33,977
it 28,798 3.3% 32,046
zh 26,685 3.1% 29,141
sv 24,629 2.8% 26,278
ru 20,771 2.4% 23,269
arz 20,362 2.3% 21,535
pl 18,979 2.2% 20,894
ca 16,833 1.9% 18,414
pt 15,366 1.8% 17,506
cs 15,202 1.7% 16,933
uk 14,912 1.7% 16,996
fa 12,866 1.5% 14,232
ms 11,250 1.3% 11,782
fi 11,126 1.3% 12,394
da 9,582 1.1% 10,260

Concentration:

  • Top 1 language: 8.7% of all Wikipedia documents
  • Top 5 languages: 31.4% of all Wikipedia documents
  • Top 10 languages: 46.5% of all Wikipedia documents
  • Top 20 languages: 63.3% of all Wikipedia documents

Long-tail:

  • 349 language(s) total
  • 0 language(s) appear in fewer than 1 Wikipedia document(s)
  • 7 language(s) appear in fewer than 5 Wikipedia document(s)
  • 10 language(s) appear in fewer than 10 Wikipedia document(s)
  • 4 language(s) appear in fewer than 5 polygons

Augmentation coverage

Metric Count Percentage
Core regions 234 100.0%
Fully augmented 233 99.6%
Partially augmented 0 0.0%
Not augmented 1 0.4%
Orphan sidecar stems 0 -

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.

Storage accounting

Core tables size and total storage size are additive:

Metric Bytes Human-readable
Core tables size 1,345,684,432 1.3 GB
Augmentation tables size 7,276,941,272 6.8 GB
Total Parquet size 8,622,625,704 8.0 GB

Wikipedia text corpus

Documents

Metric Value
Document rows 872,147
Unique documents 854,102
Unique Wikidata entities 246,357
Languages 349
Non-empty text 872,136
Empty / null text 11
Characters 2,124,905,477
Words 312,903,766
Estimated tokens 530,899,082
Regions / files represented 233

Sections

Metric Value
Section rows 4,629,886
Unique sections 4,523,045
Documents represented 852,682
Avg sections per represented document 5.43
Non-empty section rate 100.0%
Unique Wikidata entities 246,354
Languages 349
Non-empty text 4,629,886
Empty / null text 0
Characters 2,815,626,778
Words 440,518,751
Estimated tokens 702,155,243
Regions / files represented 233

Languages

Language Documents % of total
de 76,306 8.7%
en 67,690 7.8%
fr 52,315 6.0%
ceb 43,115 4.9%
es 34,755 4.0%
nl 30,682 3.5%
it 28,798 3.3%
zh 26,685 3.1%
sv 24,629 2.8%
ru 20,771 2.4%

Wikivoyage text corpus

Documents

Metric Value
Document rows 7,800
Unique documents 7,643
Unique Wikidata entities 2,714
Languages 27
Non-empty text 7,797
Empty / null text 3
Characters 64,059,088
Words 10,093,303
Estimated tokens 16,011,810
Regions / files represented 233

Sections

Metric Value
Section rows 165,295
Unique sections 162,223
Documents represented 7,641
Avg sections per represented document 21.63
Non-empty section rate 100.0%
Unique Wikidata entities 2,713
Languages 27
Non-empty text 165,295
Empty / null text 0
Characters 75,017,560
Words 12,258,376
Estimated tokens 18,690,211
Regions / files represented 233

Languages

Language Documents % of total
en 1,469 18.8%
de 1,238 15.9%
pl 741 9.5%
fr 613 7.9%
it 607 7.8%
zh 377 4.8%
es 333 4.3%
pt 310 4.0%
nl 289 3.7%
fa 257 3.3%

Wikidata facts

Metric Value
Fact rows 1,629,015
Unique facts 1,615,804
Unique subjects 411,760
Distinct properties 8
Non-empty English property label 1,629,015
Non-empty English value label 1,507,029
With qualifiers 82,766
With references 651,183
Unreadable qualifier JSON 1,546,249
Unreadable references JSON 977,832
Regions / files represented 233

Value-type distribution:

Value type Facts
wikibase-item 1,507,029
time 81,211
quantity 40,775

Top properties:

Property ID English label Facts
P31 instance of 481,233
P131 located in the administrative territorial entity 425,674
P17 country 416,524
P1435 heritage designation 153,897
P571 inception 81,211
P2044 elevation above sea level 40,775
P361 part of 28,953
P279 subclass of 748

English labels are requested where available; multilingual labels are preserved verbatim in the Parquet column property_labels.

Schema

polygons

Column Description
polygon_id Deterministic ID: <source_pbf_stem>:<osm_type>:<osm_id>.
region Geofabrik region slug parsed from the source PBF filename (e.g. monaco).
source_pbf Source PBF filename (e.g. monaco-latest.osm.pbf).
osm_type OSM element type: way or relation.
osm_id OpenStreetMap numeric identifier of the element.
wikidata Wikidata Q-id from the OSM wikidata=* tag.
name Convenience: tags.name if present, empty string otherwise.
tags Deterministic JSON object of all OSM tags except wikidata.
tag_keys Deterministic JSON list of sorted OSM tag keys.
tag_count Number of OSM tags (excluding wikidata).
osm_primary_tag Best single tag for coarse analysis, e.g. landuse=forest.
centroid Polygon centroid as a GeoJSON Point string ([lon, lat]).
lat Centroid latitude in decimal degrees (WGS84).
lon Centroid longitude in decimal degrees (WGS84).
bbox Bounding box as JSON list [min_lon, min_lat, max_lon, max_lat].
geometry Full polygon geometry as deterministic GeoJSON string in WGS84 lon/lat coordinates.
area_m2 Polygon area in square meters (WGS84 equirectangular approximation).
area_km2 Polygon area in square kilometers.
area_bucket Human-readable size bucket (e.g. 1-10km2).
has_name True if the polygon has a name tag.
has_wikidata True if the polygon has a wikidata tag (always true by filter).
has_wikipedia True if at least one linked Wikipedia article was fetched.
wikipedia_language_count Number of Wikipedia languages for which articles were linked.
wikipedia_languages Deterministic JSON list of language codes (e.g. ["en","fr"]).
wikipedia_article_count Number of unique article revisions linked to this polygon.
has_english_wikipedia True if en is among the available languages.
has_french_wikipedia True if fr is among the available languages.
text_available True if at least one linked article has non-empty full text.
best_language Deterministic preferred language code (e.g. en).
extraction_version Package version that produced the row.
extracted_at ISO-8601 UTC timestamp at the moment the row was extracted.

wikipedia/documents

Column Description
document_id Deterministic document identifier (<wikidata>:<project>:<language>:<page_id>:<revision_id>).
article_id Deterministic ID: <wikidata>:<language>:<page_id>:<revision_id>.
wikidata Wikidata Q-id this article is linked to.
project Wiki project name: always wikipedia for this table.
language Wikipedia language code, e.g. en.
site Wikidata sitelink site, e.g. enwiki.
title Article title as returned by the Wikipedia API.
url Canonical Wikipedia article URL.
page_id MediaWiki page ID.
revision_id Exact revision ID used for text extraction.
revision_timestamp ISO-8601 timestamp of the revision.
retrieved_at ISO-8601 UTC timestamp when this pipeline fetched the article.
wikidata_label Best Wikidata label for the article's language, fallback English.
wikidata_description Best Wikidata description for the article's language.
wikidata_aliases Deterministic JSON list of Wikidata aliases.
lead_text Lead section of the article, plain text.
extract Short summary/extract if the API provided one.
full_text Full cleaned article text, plain text.
full_text_format Encoding of full_text; always plain_text.
article_length_chars Length of full_text in characters.
article_length_words Approximate whitespace-token count of full_text.
article_length_tokens_estimate Rough token count: chars / 4.
thumbnail_url Thumbnail URL only (no image bytes stored).
thumbnail_width Thumbnail width in pixels, if known.
thumbnail_height Thumbnail height in pixels, if known.
categories Deterministic JSON list of category titles, or [].
license License string, e.g. CC BY-SA.
attribution Attribution string for the article.
source_api Which API was queried: mediawiki_action_api / wikipedia_rest_api.
fetch_status One of: ok, article_not_found, http_error, rate_limited, parse_error, empty_text.
fetch_error Short diagnostic on failure, empty string on success.
content_hash Stable SHA-256 of full_text for change tracking.

polygon_articles

Column Description
polygon_id FK to polygons.polygon_id.
article_id FK to articles.article_id.
wikidata Wikidata Q-id (denormalized for fast filtering).
language Wikipedia language code.
source_pbf Source PBF filename (denormalized).
region Geofabrik region slug.
osm_type OSM element type.
osm_id OSM numeric identifier.
page_id MediaWiki page ID of the linked article.
revision_id MediaWiki revision ID of the linked article.
is_best_language True if this row's language matches the polygon's best_language.

wikivoyage/documents

Column Description
document_id Deterministic document identifier (<wikidata>:<project>:<language>:<page_id>:<revision_id>).
article_id Stable article identifier referenced by polygon_articles/<stem>.parquet.
wikidata Wikidata QID this document is linked to.
project Wiki project name: wikipedia or wikivoyage.
language Wikipedia or Wikivoyage language code (e.g. en).
site Wikidata sitelink host, e.g. enwiki or enwikivoyage.
title Page title as returned by the MediaWiki API.
url Canonical URL of the page.
page_id MediaWiki page ID (integer).
revision_id MediaWiki revision ID used to fetch the page text (integer).
revision_timestamp ISO-8601 timestamp of the revision.
retrieved_at ISO-8601 UTC timestamp when the pipeline fetched the page.
full_text Cleaned plain-text document body (Wikipedia articles or Wikivoyage pages).
full_text_format Encoding of full_text; always plain_text.
article_length_chars Length of full_text in characters.
article_length_words Approximate whitespace-token count of full_text.
article_length_tokens_estimate Rough token estimate: chars / 4.
license License string (CC BY-SA for Wikipedia/Wikivoyage text).
attribution Attribution string for the page.
source_api Which API was queried: mediawiki_action_api or wikivoyage_rest_api.
fetch_status One of: ok, page_not_found, http_error, rate_limited, parse_error, empty_text.
fetch_error Short diagnostic on failure, empty string on success.
content_hash Stable SHA-256 of full_text for change tracking.

wikipedia/sections and wikivoyage/sections

Column Description
section_id Deterministic SHA-256 over (document_id, section_index, anchor).
document_id FK back to documents (Wikipedia or Wikivoyage).
article_id FK back to the corresponding articles row.
wikidata Wikidata QID (denormalized for fast filtering).
project Wiki project name: wikipedia or wikivoyage.
language Wikipedia or Wikivoyage language code.
site Wikidata sitelink host.
page_id MediaWiki page ID (integer).
revision_id MediaWiki revision ID (integer).
section_index Sequential position of the section inside the document (integer).
heading Section heading, or empty string when the section is the lead.
anchor Section anchor after MediaWiki parsing.
level Heading level (1..6), or 0 for the lead section (integer).
parent_section_id Section ID of the enclosing section, or empty string.
section_path JSON array of ancestor section IDs, in order.
text Plain-text section body.
text_length_chars Length of text in characters (integer).
text_length_words Approximate whitespace-token count of text (integer).
text_length_tokens_estimate Rough token estimate: chars / 4 (integer).
content_hash Stable SHA-256 of section.text.
license License string for this section.
attribution Attribution string for this section.

wikidata/facts

Column Description
fact_id Deterministic SHA-256 over (subject, property, value, ordinal).
wikidata Wikidata QID the fact belongs to (the subject).
property_id Property P-id (e.g. P17).
property_label_en English label for the property, when available.
property_labels Deterministic JSON object of property labels per language.
value_type Wikidata value datatype: wikibase-entityid, string, quantity, time, ...
value_entity_id Entity-valued object QID, when the value is a Wikidata entity.
value_label_en English label for the value entity, when available.
value_labels Deterministic JSON object of value labels per language.
value_text Rendered text representation of the value.
numeric_value Numeric amount for quantity-typed values, otherwise null.
unit_entity_id Wikidata QID of the unit (e.g. Q11573 for metre).
rank Wikidata rank: preferred, normal, or deprecated.
qualifiers Deterministic JSON object of qualifier snaks, or {} when absent.
references Deterministic JSON array of reference groups, or [] when absent.
retrieved_at ISO-8601 UTC timestamp when the pipeline fetched the entity.
source_api Which API was queried (always wikidata_action_api).

Data sources & licenses

  • OpenStreetMap polygons: (c) OpenStreetMap contributors, licensed under ODbL 1.0.
  • Wikidata entity data: CC0 1.0.
  • Wikipedia article text: licensed under CC BY-SA 4.0 by the respective Wikipedia editors; attributed inline per article.

How to load

from datasets import load_dataset
ds = load_dataset("parquet", data_files={
    "polygons": "hf://datasets/NoeFlandre/osm-polygon-wikidata-only/polygons/*.parquet",
})
Downloads last month
1,208

Collection including NoeFlandre/osm-polygon-wikidata-only