Category Archives: code

Europe Countries – DbPedia+SPARQL+Python

Introduction

DBpedia is a project that aims to extract structured information from Wikipedia. They generate RDF information that can be queried in different ways, one of this is using the SPARQL query language.

In this post I’ll show how to query Dbpedia using a python SPARQL wrapper to obtain all the Wikipedia points of places in Europe. The post explains it step by step, you can fork the code at my github.


..
NOTE from the future:
the original code was Europe.py. The closest actual code would be alldbpediapoints.py
..


Results

The result will look something like this:

DBpedia Europe Points

DBpedia Europe Points

I have time, show me how it’s done

7 Comments

Filed under code, gis, Maps

ModernCV


My time at ITC is temporal, since my current CV dates from 4 years ago (I was not even a computer engineer) it’s time to prepare another one.

Show me the code!

1 Comment

Filed under code, tips, tools

Emerillon: Geocoding Names

Current search bar on emerillon is limited:

Current Emerillon Search with GeoNames


I want emerillon to find also streets!

Emerillon search with GeoNames and OSM

And in this post I explain how I’ve done it

All the text (Beware! lot of code)

2 Comments

Filed under code, emerillon, gis, Maps, webservices

α – Shape generation with R

α-shape, is a family of piecewise linear simple curves in the Euclidean plane associated with the shape of a finite set of points.
— Wikipedia

Boum!. Let’s make it simpler. α-shape is a generalization of the convex hull concept. And the convex hull of a set of points is the minimal convex set containing all the points. Is typical to depict as some pins covered by a rubber band.

convex hull

Representation of convex hull idea


α-shape me!

1 Comment

Filed under code, tips, tools