Task 2: Help us to show who fills the role of head of government on Wikidata

Lucy Chambers
Jun 1, 2017 · 4 min read

Update: 2017–06–05. This mission is now over. But don’t despair, you can still help! There are now more missions like this over on the Wikidata:WikiProject Heads of state and government. Come join us!


Welcome back! This is part two of a five part series examining how to use Wikidata to answer the question: “What is the gender breakdown of heads of government across the world?”.


Last time, we were trying to fill in blanks in the office held by heads of government. Our job now is to answer the question:

“Who currently occupies the role of head of government in a given country?”

The way to say this in Wikidata speak is “Last time we filled in blanks in P1313 statements, our job now is to complete the P1308 statements for all of the offices we added last time”.

How the Wikidata components we have explored so far fit together.

To do this, we’re going to be looking at another report that we call the officeholders report (or P1313 + P1308). You can find the report here. And below is a quick overview of what things look like at the top of that list at time of posting:

First, let’s deal with the gaps:

The information in the second column is what we added in the P1313 report in the first challenge. The information in the third column is what we are focussing on this time. So how do we add the officeholder?

You can’t hold an office that doesn’t exist, so if the office is missing or incorrect for the country you care about, take a peep back at the previous post and do those steps first. Once the office exists, visit the page for that office (you can click through from the second column of the report).

On that page, search for whether there is a statement about the post of officeholder. Often there is, it just isn’t up to date.

If there isn’t a statement about officeholder, add one. You can find the “+ add” button at the bottom of the list of statements:

Start typing ‘officeholder’ in the box indicated and you should see it pop up. Note: we are writing this with English as our default language, but you can use Wikidata in your language and search for the equivalent, or just type P1308 and you’ll get the right result!


Now, add the person who currently occupies the role — start typing and suggestions should start popping up.

Here I’m editing the Prime Minister of Madagascar:

In most cases, these people should already exist in Wikidata but if the record for the person doesn’t exist, add it by clicking “Create new item”. Next, fill in the necessary statements, including at minimum:

If you are relatively familiar with Wikidata, you can always add additional fields as suggested here.

Second, let’s chat about what to do if you spot that the wrong person is listed as the officeholder

In most cases when the data is wrong here, it is probably because it is out of date — i.e. this person used to be the head of government but isn’t any more. If this is the case:

Summary

Congratulations! You have just made another important link in the step to make politicians around the world more accountable.

Have any questions or struggling with any of the steps? Tweet us at @everypolitbot and we’ll gladly help. It also helps us to improve this documentation so you are doing us a favour.

Join us in the next post when we will be examining the data from another angle.

“The Parliament Glass Roof” (CC-BY-SA | Gabriel Hess)

mySociety for coders

Posts about the code, the data, the development and the…

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store