CoolFace
Datasetpublic

Flightmussy/castles-of-the-world

Castles of the World β€” 8,131 castles, fortresses & palaces A curated, hand-checked dataset of the world's 8,131 great castles, fortresses, palaces and ruins across 149 countries β€” every landmark verified to have exact coordinates, a real Wikimedia Commons photo and an English Wikipedia article. This is the exact dataset behind Castlemap, a free interactive night-map of all 8,131 landmarks. πŸ—ΊοΈ Interactive map: https://thecastlemap.com πŸ“„ Dataset page & downloads:… See the full description on the dataset page: https://huggingface.co/datasets/Flightmussy/castles-of-the-world.

sourceHugging Facecc0-1.0updated 20d agoView on Hugging Face
0likes61downloads
Dataset Card

Castles of the World β€” 8,131 castles, fortresses & palaces

A curated, hand-checked dataset of the world's 8,131 great castles, fortresses, palaces and ruins across 149 countries β€” every landmark verified to have exact coordinates, a real Wikimedia Commons photo and an English Wikipedia article.

This is the exact dataset behind [Castlemap](https://thecastlemap.com), a free interactive night-map of all 8,131 landmarks.

  • β€”πŸ—ΊοΈ Interactive map: https://thecastlemap.com
  • β€”πŸ“„ Dataset page & downloads: https://thecastlemap.com/data/
  • β€”πŸ† Fame ranking (methodology): https://thecastlemap.com/castles/ranked/
  • β€”πŸ€– Live MCP server for AI agents: https://thecastlemap.com/mcp (Model Context Protocol, streamable HTTP, no key β€” tools: search_castles, get_castle, castles_near, top_castles, list_countries, get_statistics, random_castle)

Files

FileFormatContents
castles.geojsonGeoJSON FeatureCollection8,131 Point features with all properties
castles.csvCSV (UTF-8, header row)Same records, flat

Fields

FieldDescription
qidWikidata item ID (e.g. Q2946) β€” join key to the whole linked-data web
nameEnglish name
categorycastle \fortress \palace \ruin
country, isoCountry name and ISO 3166-1 alpha-2 code
lat, lonWGS84 coordinates (verified)
year, centuryFounding year and century, where documented (6,025 of 8,131 carry a year)
year_approxWhether that year is an approximation rather than a documented date β€” 1/0 in the CSV, true/false in the GeoJSON. True for 2,334 records
wikipediaEnglish Wikipedia article URL
imageWikimedia Commons photo URL
image_byPhotographer, as credited on Commons β€” most of these licences require you to name them if you reuse the picture
image_licenceThe photo's licence (e.g. CC BY-SA 4.0, Public domain). Applies to the photograph only, never to this dataset
sitelinksNumber of Wikipedia language editions covering the landmark
pageviewsWikipedia pageviews over the trailing 60 days, summed across every language edition that covers the landmark
fame_rankGlobal fame rank 1…8131 β€” a blend of Wikipedia language coverage (sitelinks) and readership (pageviews). Rank 1 = the Great Wall of China. Methodology
urlThe landmark's page on thecastlemap.com

image_by and image_licence were added on 2026-08-08 and, since v2.2.0, are present for every record (6,993 of 7,738 in v2.1.0). CSV columns are appended, never reordered: the column order is a contract with everyone who has already cited the file.

Provenance & method

Curated from [Wikidata](https://www.wikidata.org) (CC0). Candidates are filtered to significant, well-documented sites: exact coordinates required, a real Commons photo required, an English Wikipedia article required; categories normalized; countries normalized; duplicates and phantom entries removed by hand. The dataset refreshes from Wikidata β€” spot an error or a missing castle? Improve its Wikidata entry and it flows into the next release.

Mirrors & citation

  • β€”GitHub: https://github.com/Flightmussy/castlemap-dataset
  • β€”Kaggle: https://www.kaggle.com/datasets/flightmussy/castles-of-the-world
  • β€”Citable DOI (Zenodo): [10.5281/zenodo.21322359](https://doi.org/10.5281/zenodo.21322359)

Releases

  • β€”v2.2.0 (2026-09-07) β€” 7,738 β†’ 8,131 landmarks, 141 β†’ 149 countries (406 added, 13 removed); no schema change, the same 18 columns in the same order as v2.0.0. Most of the growth is landmarks the queries could not see. Above twelve Wikipedia editions the castle, fort, chΓ’teau, palace and citadel classes turned out to be complete, so the remaining gap was single wrong-class items: probes of the classes Wikidata files them under (dzong, kasbah, ksar, hillfort, castrum, city walls, and World Heritage Sites typed as settlements) plus a walk of 22,220 English Wikipedia category pages found 353 β€” Sigiriya, Mycenae, Knossos, the dzongs of Bhutan, the walls of Tallinn and Seoul β€” and seven countries the dataset had never had: Antigua and Barbuda, Kuwait, Mongolia, Nigeria, Saint Kitts and Nevis, Timor-Leste and Venezuela. Two French readers added 51 more around Lyon and along the Loire. Puerto Rico is the 149th country: its three San Juan fortifications had been filed under the United States. 412 records changed category, 287 of them to ruin: 161 landmarks that Wikidata marks demolished or ruined were settled one by one from each article's infobox condition, its categories and its home-language lead (133 are ruins, 25 stand and are pinned), and a further pass over Iran, the Middle East and everything outside Western Europe re-filed 195 as palaces, ruins or fortresses. 101 founding years moved: Wikidata's SPARQL export counts BC years with a year 0, so every BC date had been off by one (the Ishtar Gate is 575 BC, Erebuni 782 BC); an "earliest statement wins" rule had kept renovation dates for a few (KernavΔ— 1989 β†’ 1279, the Ca' d'Oro 1927 β†’ 1424, Chantilly 1882 β†’ 1386); millennium-precision dates no longer yield a year at all. Readership sums were incomplete: a failed language batch had been written as a final total (the Great Wall of China carried 12,116 pageviews against 467,136 real), so fame_rank now puts the Great Wall first, Machu Picchu second and Versailles third β€” a correction of the counts, not a change of method. Every photograph was re-checked on Commons (one had vanished and was replaced), and every record now carries image_by and image_licence. Of the 13 removals two were duplicates and eleven were never castles at all β€” a weapon, a wine estate, a market hall, a garden, a Roman theatre, a lighthouse, a castle trail, a theme park. Category counts: 3,125 castles Β· 1,558 fortresses Β· 1,556 palaces Β· 1,892 ruins. 6,025 records carry a founding year, 2,334 of them flagged approximate. ⚠ Known defect, fixed in the next release: 111 image_by values read as a doubled string (Unknown authorUnknown author on 106 of them), an artefact of flattening Commons' Artist field; read those as no credit β€” the licence column is still right.
  • β€”v2.1.0 (2026-08-24) β€” 7,044 β†’ 7,738 landmarks, still 141 countries; no schema change, so every column and its position is exactly as in v2.0.0. Two things drove the growth, and both came from readers rather than from a scheduled refresh. A whole shelf of Wikidata was unreachable: Blenheim Palace β€” a World Heritage Site and the eleventh most-read landmark in the atlas β€” was missing because Wikidata types it an English country house, not a palace, and Highclere the same, Kinloch Castle a mansion, Eltham Palace a historic house museum. None of those classes descends from castle, fortress, palace, chΓ’teau, fort, citadel or fortification, so no query could see them however famous they were; 49 landmarks across fifteen countries were recovered. Then a Spanish reader counted JaΓ©n's castles and found nine. He was right, and the cause was a rule rather than a gap: the atlas admitted landmarks in national fame order, so a dense province lost every slot to Catalonia's better-read castles. Reading that province's admissible tier by hand took JaΓ©n to 29, and the same correction applied outward added 645 landmarks across 57 countries. Category counts: 3,409 castles Β· 1,496 fortresses Β· 1,336 palaces Β· 1,497 ruins. 5,727 records now carry a founding year.
  • β€”v2.0.0 (2026-08-17) β€” 2,435 β†’ 7,044 landmarks, 129 β†’ 141 countries, the largest expansion the dataset has had. It closes the gap that the previous release opened up between this file and the live atlas: the map had grown for a month while the published dataset stood still, so anyone downloading it was getting a third of the atlas. Thin countries were raised toward a per-country floor (Spain 500, Germany 475, France 456, Italy 416, Poland 360, England 315, Japan 296), whole classes that had been unreachable were admitted β€” the fortification superclass is now resolved globally rather than per country, which alone recovered 56 well-known fortifications β€” and Andean, Australian and Gulf sites were added from reader reports. Category counts: 3,180 castles Β· 1,453 fortresses Β· 1,024 palaces Β· 1,387 ruins. Four new fields: year_approx, image_by, image_licence and url; the CSV also carries url, which previously only the GeoJSON did, so a row can now be linked back to its page. Founding years were re-audited against each landmark's Wikipedia lead in eleven further languages.
  • β€”v1.2.0 (2026-07-19) β€” 27 corrections. 26 founding years that were really renovation or heritage-designation dates in Wikidata (the Tang-dynasty Daming Palace claimed 2010 β†’ now 634; Chapultepec 1944 β†’ 1785; Sanok 2010 β†’ 1523; a cluster of Czech castles stamped with their 2000 national-monument decree…) were fixed to the documented construction start, and Erebuni Fortress moved from the defunct historical state "Urartu" to Armenia β€” the dataset now spans 129 countries. These years power the new oldest-castles ranking: https://thecastlemap.com/castles/oldest/
  • β€”v1.1.0 (2026-07-19) β€” 2,400 β†’ 2,435 landmarks (4 Norwegian fortresses and 9 Indian landmarks added on reader request, plus 22 further ruins; the phantom "French Third Republic" country is gone β€” the Imperial City of HuαΊΏ now sits under Vietnam, so 130 countries). 225 category corrections: an unambiguous display name now beats Wikidata's often-sloppy P31 typing (83 fixes β€” Kufstein Fortress is no longer a "castle"), and ruin is now a state that wins over the building type, read from each monument's English Wikipedia lead (142 fixes β€” Heidelberg, Poenari, Tantallon, the Slovak hilltop castles). Category counts: 1,031 castles Β· 427 fortresses Β· 716 palaces Β· 261 ruins.
  • β€”v1.0.0 (2026-07-12) β€” first release: 2,400 landmarks across 131 countries.

License

Facts/data: [CC0 1.0](https://creativecommons.org/publicdomain/zero/1.0/) β€” public domain dedication; use for anything, no permission needed. Attribution to Castlemap is appreciated but not required.

Photos and Wikipedia texts referenced by URL are not part of this dataset and remain under their own licenses (see each Commons/Wikipedia page).