We’ve made a few timeline engines recently. First we made one for English Heritage, which gave us some challenges dealing with historical dates. Then we made another timeline for the Wellcome Library. This uses a completely different approach to rendering the interactive timeline. You can see it in action here. We’re also developing a new Timeline for English Heritage, but that’s not public yet. It builds on our learning from the Wellcome Library project.
their timeline data from a publicly available URL. For example, the Wellcome Library timeline loads in
a large chunk of JSON from here:
In theory, other people can do what they like with this data. And obviously as long as you can supply the data, you can make as many timelines as you like once you have the engine to display them. In all our timeline implementations we’ve made it easy for editors to build the content for the timeline in a CMS.
For a timeline like the Wellcome Library, there’s no getting around the fact that getting the data together is a big editorial job. But there may be a way of speeding up that process, or even bypassing it altogether for some timelines, if the information you want to display on the timeline is available via a sparql query from somewhere else. A timeline is a sequence of events, with each event having simple fields like title, description, date (of course), thumbnail, image, “read more”...
If we can concoct a Sparql query that returns the necessary data, all we need to then is transform it
into the JSON that the timeline engine needs, something which is fairly simple to do. For example,
here’s a SPARQL query directed against DBpedia that returns Led Zeppelin albums:
This gives us all the data we need.
And here’s another that gives us battles of the 100 years’ war:
This web site allows you to build SPARQL queries and see them plotted on the Wellcome Library timeline engine.
There is a snag when using DBpedia as a source. The images in the DBpedia data often result in 404s. For example, this triple:
..gives us a URI that ends up with a 404.
Often the image paths are consistently different, so they can be fixed with a search and replace
operation – yielding images from DBpedia. For example:
But if you have a source of RDF that can accept a Sparql query over the web, and you have the data to supply the required fields of a timeline event, then you can generate a timeline very quickly.
- Once you’ve built your timeline from a Sparql query, you can edit the JSON to improve it, tweak the text, select better images etc. We’ll add a nicer editing UI than a raw JSON editor, so that it’s easy to build a timeline whether you made it from linked data or from scratch.