DBPedia World

Following my DBpedia Europe Countries post… DBpedia World! Bigger and lovely!.

Maps

Click for full zoomed version!

DBpedia 3.7 World points

DBpedia Live World Points as of july 2012

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:

Last

🙂 I love this two maps. 🙂

Advertisements

Leave a comment

Filed under code, gis, Maps

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s