Wikidata:WikiProject Govdirectory

From Wikidata
Jump to navigation Jump to search
WikiProject Govdirectory









Agency data model


Error reports

Gov directory white logo on gradient.svg

This is a page for the Govdirectory tool and associated WikiProject to improve the data. It aims to become a global user-friendly directory of government agencies and their online presence by utilizing Wikidata. The tool can be reached at

The project is supported through Wikimedia Deutschland's Unlock Accelerator (original application).


Govdirectory is aligned with target 16.7 and 16.8 of the Sustainable Development Goals.


Improving the data[edit]

You can help the project by improving data about public agencies on Wikidata. Here is what we know that we need right now:

  1. Add all public agencies. You can start with the ones in your country. Public agencies should be notable, so you don't need to worry about that. Please add sources and/or external identifiers so that it is possible to verify their existence.
  2. Make sure it's possible to differentiate active agencies in contrast to historic agencies in a query.
    1. The most common way to mark that an agency has ceased its operations is by adding dissolved, abolished or demolished date (P576) on it. If you don't know the exact date, but are sure it has stopped, you can add unknown value to it (read more on Help:Statements#Unknown_or_no_values).
    2. If the agency was replaced by another (this is not always the case), you can also add replaced by (P1366) to it, linking to the agency that replaced it.
  3. Add basic properties like country (P17) and which administrative level they are on (state, regional, local etc.). How this is modeled may vary by country, and we will try to provide examples for that soon. If possible, add Classification of the Functions of Government (P9798) (just finding official sources for this is valuable).
  4. Add the online platforms you can find for them. Common ones are YouTube channel ID (P2397), Facebook ID (P2013), Twitter username (P2002), Instagram username (P2003) and LinkedIn company ID (P4264). But others that they are active on (that have properties in Wikidata) are also good to add. Thanks to Wikidata property to identify online accounts (Q105388954) you can find common properties through a query like this.
    1. Here is an example with Tabernacles for Swedish municipalities.

Data model[edit]

The data model for agencies is a Work In Progress attempt to document current best practices for modelling data about public organizations — please contribute/discuss!


A full list of properties are outlined on the Agency data model page.

In most cases that means consistently added instance of (P31) records, as well as basic information (country (P17), inception (P571), dissolved, abolished or demolished date (P576) etc) and links to authoritative third-party sources and official identifiers (if they exist).

These are not all used consistently everywhere, and in some cases aren't really used widely enough yet for it to be clear that they are the best approaches for ease of both querying and data entry. Discussion on different/better approaches are very welcome!

Progress Indicators[edit]

As a (very) rough guide to how good the data is in a country, we are tracking what information already exists for the primary house of the national agencies:

  • ☆: Basic structures in place, but all current agencies are not confirmed to have an item yet
  • ★: All current agencies are known to have items, but not all historic have end data yet
  • ★★: Can produce a complete and accurate list of all current agencies
    i.e. each agency has a proper instance of (P31), country (P17) and a correct inception (P571) and all dissolved agencies has dissolved, abolished or demolished date (P576)) OR, the instance of (P31) is only used for current agencies
  • ★★★: All agencies can be queried for their level/type and the structure is documented on the country page
  • ★★★★: Import of official data for Classification of the Functions of Government (P9798) has been made.
  • ★★★★★: A manual review has been made on each agency for which online accounts they have. The review is documented on the country page with a date.

If any level has three stars, it is ready to be included on the website and the process of adding a country can be started.

Add your country[edit]

Browse the mini-projects that have already been created, or set one up for the country you're interested working on (don't just add empty countries, we could have automated this, but this way we get an overview where there are actually people working). To get started, use the button below. You can also be inspired by the queries and tabernacles on some other countries where cut and paste and tweak the IDs (Sweden has some that might be interesting). You might also want to checkout the list on WikiProject Country subdivision which might have queries done already for some levels.

State level agencies[edit]

Agencies in first-level administrative country subdivision (Q10864048)[edit]


Agencies in second-level administrative country subdivision (Q13220204)[edit]


Agencies in third-level administrative country subdivision (Q13221722)[edit]


Agencies in fourth-level administrative country subdivision (Q14757767)[edit]



[+] Add yourself to the list

The participants listed below can be notified using the following template in discussions:

{{Ping project|Govdirectory}}