Using Observable to explore Wikidata

I think that Observable is a great tool to explore Wikidata.

Wikidata is a collaborative knowledge base. It’s a sister project for Wikipedia. Each Wikipedia article is linked to a Wikidata item. For instance, the Wikipedia article about [Florence Nightingale] (Florence - Wikipedia Nightingale) is linked to a Wikidata item. Of course, the big advantage of Wikidata is that data is structured. It can be queried using which uses the SPARQL syntax. is very powerful but limited if you want to draw a visualisation or tell a story with the data.

Of course @mbostock has a nice Hello Wikidata notebook. @lukesmurray has a nice trick to show a query directly in the notebook without any javascript manipulation : Using WikiData Sparql as a "Cell Mode" in Observable / Luke Murray / Observable.

@piecesofuk has a nice notebook exploring UK government : UK Parliament: Cabinet Ministers / piecesofuk / Observable

Since I really believe that Observable is great to explore Wikidata, I’ve written a small introduction for Wikidata users: An introduction to Observable for Wikidata users / PAC / Observable

I also have some examples:

Of course Wikidata and SPARQL are also useful to explore Wikipedia:

I’m sure that there are lots of other great examples and I’d really be interested in creating more bridges between Observable and Wikidata communities.


SPARQL is not the only way to retrieve data from Wikidata. There is also an API. Here are some functions using Wikidata API: Wikidata API / PAC / Observable

1 Like

A new notebook which look at the history of the tour de France using a query from Wikidata : Tour de France's history at a glance / PAC / Observable


Observable users interested in discovering Wikidata and SPARQL may have a look at the SPARQL wikibook : SPARQL - Wikibooks, open books for an open world and the Wikidata introduction Wikidata:Introduction - Wikidata