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

Here is a new notebook Article's wikilinks inspector / PAC / Observable which provides insight about all entities named in a Wikipedia article.

It’s useful to compare articles. For instance, you can see that Sociology in English cites 53 Americans (Article's wikilinks inspector / PAC / Observable) whereas the corresponding article in French cites a majority of French people (Article's wikilinks inspector / PAC / Observable). Both article are about the same topic but the content is different.


New tool to explore gender diversity in Wikipedia Gender diversity inspector / PAC / Observable. It now filter on birthdate.

1 Like

I have collected a dataset including 2,400 SPARQL queries : Hello SPARQL queries dataset / PAC / Observable

I have some new notebooks: