Histropedia - Wikidata Query Timeline (beta)

Generate interactive timelines from live Wikidata SPARQL queries

This tool allows you to generate an interactive HistropediaJS timeline using live results from a Wikidata SPARQL query.

Enter your query into the input box below, then click the GENERATE TIMELINE button to see the results.

The system will guess which variables in your query should be used to render the timeline, but you can choose manually using the Map variables section below. This can also be used for choosing variables to use as colour codes and filters for the resulting timeline.

Enter a SPARQL query:


Event density:


 Click to process the query and render the timeline

merge duplicate results?

Map variables (optional)

Choose which query variables are used for the basic timeline data, colour code and filtering options. Leave any/all fields blank for auto detection.

NOTE: Enter variable names without the preceding question mark (e.g. personLabel not ?personLabel)



Start date:

Start date precision:


End date:

End date precision:



Colour codes and filters

Colour code by:

Max no. of groups:

Filter by:

Share this Query and Timeline

Links are very long, a link shortener will come soon. To make things easier we reccomend copy the url to the clipboard and shortening it at tiny URL

Choose one of the export options, then copy the output below.

The JSON output can be loaded directly into any HistropediaJS timeline.

The Histropedia Sheets output can be pasted into a Google Spreadsheet for use with the Histropedia Sheets tool. This allows you to edit the timeline data in any desired way, or add custom events not available on Wikidata.

Any data used as a colour code or filter option will be included in the export.

If your query contains variables named "item", "itemDescription" or "wikipedia", then these will also be included automatically.