Europeana Hackathon

# Posted on Tuesday, 05th April 2011 , under OpenLayers Europeana Hack days

The past Friday and Saturday took place in Hilversum, near Amsterdam, the first Europeana Hackathon. Europeana is a project funded by the European Comission that aggregates cultural content from organizations across Europe. It hosts around 16 million records, and the variety of stuff you can find on it is incredible, from ancient maps to fashion clogs to dolls sitting on a monkey.

The team behind Europeana has recently published a preliminary beta version of an API, and the objectives of the Hackathon were both receiving feedback from developers and see what they could came up with after playing with it.

The hacking took place in the impressive Netherlands Institute for Sound and Vision and the room was everything but dull! The organization was absolutely flawless and there were lots of interesting ideas for enhancing and building services around the API.

Netherlands Institute for Sound and Vision
Funky hacking

Just the day before starting, new enrichment terms were included in the API, including location information extracted from GeoNames. This allowed to perform bounding box based spatial queries, and I quickly started looking at ways to use them.

The Europeana API is based on OpenSearch, and returns a RSS response of the query results. Unfortunately, the location information is not included in this first response, but in a SRW representation that has to be queried in a second query. So my first step was to create a thin wrapper around the Europeana API that captured the results, queried the details of each item and injected the coordinates back in the results RSS.

So instead of getting this:

    <title>Vierge &#224; l'Enfant : Nostre Dame de Grasse</title>
    <link> ... </link>
    <enclosure url=""/>

You get this:

    <title>Vierge &#224; l'Enfant : Nostre Dame de Grasse</title>
    <link> ... </link>
    <enclosure url=""/>
    <georss:point xmlns:georss="">43.41667 1.5</georss:point>

A tiny but crucial difference. This effectively transforms the results in a GeoRSS feed, an open standard used to include location information in RSS which is widely supported in mapping applications and libraries like OpenLayers or Google Maps. The obvious problem is that this is terribly inefficient and very slow, so it will be great if the API itself would provide this information.

Once the GeoRSS wrapper was ready, there were several possible applications to build around it. I wrote a simple interface with OpenLayers that allows you to draw a bounding box, perform an API query and plot the results on the map. It also supports pagination and filtering by historic period (though in some cases no results are returned).

Europeana Geo-Wrapper Demo

There was no time for more, but hopefully it will show the potential of geo-enabling the Europeana API, which I'm sure has a bright future ahead.


# Wednesday, 06th April 2011, 16:29

Thanks for the write-up! And glad you had fun! I believe we' ll take your feedback to heart and add lat/long to the RSS-results.

Also, to all readers Adria forgets to mention he won one of the Eurohack prizes for best app!

# Wednesday, 06th April 2011, 20:41

Hi David,

I may have forgot to mention the prize :)

Adding lat/long to the RSS results would add a huge value to the API.

What about adding support for opensearch-geo in a future?

I think it's now a draft, but the queries would look definitely nicer:,42,15,48&wskey;=xxx

instead of:[42+TO+48]+AND+enrichmentplacelongitude%3A[10+TO+15]&wskey;=xxx

# Wednesday, 06th April 2011, 22:51

+1 to that!

New comment:

(optional and not stored, used for gravatar)
  • Links will be automatically created for you.
  • You can use Markdown syntax (**bold**,_em_, bullet points for lists. Complete reference).
  • Please do not use html tags.