Following my DBpedia Europe Countries post… DBpedia World! Bigger and lovely!.
Maps
Click for full zoomed version!
Small comment on the maps
The maps are a nice visualization to show what is good and what is wrong on DBpedia Places subset. And already opened a discussion on the mailing list.
Data Retrieval
Very similar to Europe Countries but going a bit further. You can check the full code at my github, Including the Python command line feedback :-).
SELECT (COUNT(*) AS ?count) WHERE{ ?place rdf:type dbpedia-owl:Place . ?place foaf:name ?title . ?place geo:lat ?geolat . ?place geo:long ?geolong . }
The query asks for all the Places with title and geolon/geolat. The rest of the code deals with the limitations of the SPARQL endpoint (Totally legitimate limitations). Retrieving the results by offsets and waiting when there is a rejection. Also, a little switch to choose between dbpedia last stable version and live version.
Map Generation
This is a bit more manual than retrieving the points in CSV. But nothing from another world.
The only missing thing is the beautiful Mollweide World projection:
+proj=moll +lon_0=0 +x_0=0 +y_0=0 +ellps=WGS84 +datum=WGS84 +units=m +no_defs
I copied the PROJ4 from spatialreference.org.
Data Sets
The data sets used in this map are:
- Natural Earth Data 50m Ocean
- Continents from GeoCommons
- Dbpedia Datasets dump (not added because they are 27M and 44M). If you want, use the script
Last
🙂 I love this two maps. 🙂