Jump to content

Wikidata:WikiProject Govdirectory/Data model

Welcome
to
WikiProject Govdirectory

Main

 

Discuss

 

Events

 

Queries

 

Data model

 

Error reports

 
Infographic explaining the data model.

This is a draft for a data model for public agencies. This is meant to be a generic and global data model, so add important country specific properties on the country subpage instead of here. Often it is very helpful to use specific items for the types in a country as the instance of (P31), like ministry of the Netherlands (Q3143387) rather than just a generic ministry (Q192350). Not only will it make queries easier, it will also be usful on items like list of ministries of the Netherlands (Q26720850) and Category:Government ministries of the Netherlands (Q8394832) which are likely to exist anyway for major types of organizaitons.

Please help improve this model!

There is also an extensive Entity Schema that you can use to discover new properties and use in various tools.

Besides the statements, also make sure that the label and description are good.

Labels
Having these in English is important, because that is what we show on the website. It is also very helpful to have labels in all local languages as that may make it much easier to match them on official lists and websites. Don't use disambiguations like "in Sweden" or "(Sweden)" in the label unless that is actually part of the name, see Help:Label.
Descriptions
try to put in thorough descriptions so that it easy to disambiguate items. It might be useful to describe the following characteristics: type, structure, place, mission. For example, "Swedish agency under the Riksdag responsible for hearing appeals regarding general elections".

If you are using this data model to edit in bulk (and have some authoritative sources), see the guides for collecting and preparing data and how to upload it using QuickStatements.

Model for an agency/organization

[edit]

In this WikiProject, we aim to model all public organizations and/or agencies. However, in some countries, defining these are not trivial. Whereas in some places, these are defined in law and sometimes even given a unique ID and listed in a register, in other places the type may be defined in law and the individual entities may be defined by the current cabinet, government, parliament, ministry or some other level of decision makers. It may sometimes also be unclear if an entity is a part of another entity or if it is an independent suborganization. When this is challenging, some guiding principles for the project can be whether the entity is referred to, or understood by, by the public to be something that one can contact and communicate with. Signs of this may include if they have their own Wikipedia article, have their own website and social media accounts etc. When judgment calls like this are made, it is essential that they are documented on the project page so that other editors can understand the modeling and possibly help improve it.

Title ID Data type Description Examples Inverse
instance ofP31Iteminstance of: type to which this subject corresponds/belongs. Different from P279 (subclass of); for example: K2 is an instance of mountain; volcano is a subclass of mountain
This is the most flexible property, but it is easier if there is a specific item for the type, like for example municipality of Sweden (Q127448)
Government agency X Whatever type is fitting-
countryP17Itemcountry: sovereign state that this subject item is in (not to be used for human beings)Östhammar Municipality Sweden-
applies to jurisdictionP1001Itemjurisdiction: the item (institution, law, public office, public register, etc) or statement belongs to or has power over or applies to the value (a territorial jurisdiction: a country, state, municipality, etc)Swedish Environmental Protection Agency Sweden-
located in the administrative territorial entityP131Itemadministrative territorial entity: the item is located on the territory of the following administrative entity. Use P276 for specifying locations that are non-administrative places and for items about events. Use P1382 if the item falls only partially into the administrative entity
Perhaps not applicable to state level agencies.
Östhammar Municipality Uppsala Countycontains the administrative territorial entity
parent organization or unitP749Itemparent organization/unit: parent organization or unit of an organization or unit, opposite of child organization or unit (P355); use instance of (P31) to distinguish organization (Q43229) and organization unit (Q10387680)Swedish Environmental Protection Agency Ministry of the Environmentchild organization or unit
email addressP968URLemail address: email address, prefixed with mailto:Swedish Environmental Protection Agency mailto:registrator@naturvardsverket.se-
phone numberP1329Stringtelephone number: telephone number in standard format (RFC3966), without "tel:" prefixSwedish Environmental Protection Agency +46-10-698-10-00-
official website with qualifier language of work or nameP856URLofficial website: URL of the official page of an item (current or former). Usage: If a listed URL no longer points to the official website, do not remove it, but see the "Hijacked or dead websites" section of the Talk pageSwedish Environmental Protection Agency https://www.naturvardsverket.se
Swedish
-
main regulatory textP92Itemauthorizing legislation: text setting the main rules by which the subject is regulatedSwedish Environmental Protection Agency
Ordinance (2012:989) with instructions for the Swedish Environmental Protection Agency
-
Classification of the Functions of GovernmentP9798ItemClassification of the Functions of Government: UN classification to compare government agencies across countriesSwedish Environmental Protection Agency 05.6.0 - Environmental protection n.e.c. (CS)-
field of workP101Itemfield of work and by field of work: specialization of a person or organization; see P106 for the occupation/ P452 for industrySwedish Environmental Protection Agency environmental protection-
citizens' initiative URL with qualifier language of work or nameP9732URLcitizens' initiative: URL for a service where citizens can start a petition or initiativeKarlstad Municipality https://karlstad.dialogportalen.se/
Swedish
-
contact page URL with qualifier language of work or nameP11266URLcontact page: URL to the official page listing the subject's contact information or a contact formSwedish Environmental Protection Agency https://www.naturvardsverket.se/om-oss/kontakt/
Swedish
-
freedom of information requests URL with qualifier language of work or nameP10214URLfreedom of information request: URL pointing to a form or other page allowing citizens to make freedom of information request to public organizationsNational Aeronautics and Space Administration https://socialforms.nasa.gov/foia-
open meeting page URL with qualifier main regulatory textP13769URLinformation page describing open meetings, public meetings or town hall meetingsCity of Perth Council https://perth.wa.gov.au/council/council-meetings
Local Government Act 1995
-
X (Twitter) usernameP2002External identifierX account and X username: username on X (formerly Twitter); do not include the '@' symbolKarlstad Municipality KarlstadKommun-
Instagram usernameP2003External identifierInstagram account: item's username on InstagramKarlstad Municipality karlstadskommun-
Facebook usernameP2013External identifierFacebook page: identifier for an official (preferably) Facebook person, product or organization page (everything that follows URL part 'https://www.facebook.com/')Karlstad Municipality karlstadskommun-
YouTube channel IDP2397External identifierYouTube channel ID: ID of the YouTube channel of a person or organisation (not to be confused with the name of the channel) The ID can also be used for music.youtube.com IDsKarlstad Municipality UCypOL0rdx_udylFAZ1WgvzQ-
LinkedIn company or organization IDP4264External identifierLinkedIn company or organization profile: identifier for an official company, school, organisation page, or showcase page, on LinkedInKarlstad Municipality karlstadskommun-
Mastodon addressP4033External identifierMastodon: address on the Mastodon decentralized social network (the form is 'user@server.domain' without a leading '@')Ministry of the Interior and Kingdom Relations minbzk@social.overheid.nl-
on focus list of Wikimedia projectP5008ItemWikiProject focus list: property to indicate that an item is of particular interest for a Wikimedia project. This property does not add notability. Items should not be created with this property if they are not notable for Wikidata. See also P6104, P972, P2354
Use this on agencies that have been published and where the country URL can be used as source for the list.
Ministry of the Interior and Kingdom Relations WikiProject Govdirectory-

Model for a type of agency/organization

[edit]

These are preferrably used as instance of (P31) on individual agencies/organizations.

Title ID Data type Description Examples Inverse
instance ofP31Iteminstance of: type to which this subject corresponds/belongs. Different from P279 (subclass of); for example: K2 is an instance of mountain; volcano is a subclass of mountainSwedish government agency government agency-
countryP17Itemcountry: sovereign state that this subject item is in (not to be used for human beings)Swedish government agency Sweden-
quantityP1114Quantityquantity: number of instances of this subject in the universe of the subject (the actual number of instances in Wikidata may be lower or higher)U.S. state 50-
maintained by WikiProjectP6104ItemWikiProject: WikiProject that maintains this property, item, or linked pages. If the WikiProject is hosted outside of Wikidata, identify the hosting project using the qualifier "part of" (P361)
Add this property with WikiProject Govdirectory (Q108109790) as value to all organization types that you are using to model agencies for this project. They will then show on our Type watchlist.
Swedish government agency WikiProject Govdirectory-

Closed agencies

[edit]

Develop closed agencies with the main model, but additionally, mark their end.

Title ID Data type Description Examples Inverse
dissolved, abolished or demolishedP576Point in timedate of dissolution, abolition or demolition and date of the last award ceremony: point in time at which the subject (organisation, building) ceased to exist; see "date of official closure" (P3999) for closing a facility, "service retirement" (P730) for retiring equipment, "discontinued date" (P2669) for stopping a product
This is the most flexible property, but it is easier if there is a specific item for the type, like for example municipality of Sweden (Q127448)
Department for Exiting the European Union 31 January 2020-
replaced by with qualifier point in timeP1366Itemreplacing entity: other person or item which continues the item by replacing it in its role. Use P156 ("followed by") if the item is not replaced nor identical, but adds to the series (e.g. books in a series)
Add multiple values if needed, as in this case, this agency was replaced with three: National Railway Administration (Q10926081), Ministry of Transport (1954-2008) (Q52083871), and China State Railway Group (Q1073489)
Ministry of Railways of the People's Republic of China National Railway Administration
2013
replaces
date of official closureP3999Point in timeclosing ceremony and closure: date of official closure of a building or eventFederal Executive Institute 10 February 2025-
official name with qualifier point in timeP1448Monolingual textofficial name: official name of the subject in its official language(s)
This agency changed named and scope after World War II.
Ministry of the Overseas Ministère des Colonies
1884
-
state of useP5817Itemuse status: to indicate state of use of a building, monument, etc. It is not related with its heritage protection (P1435), but to its present state of use. Ex.: abandoned, in use, temporarily closed, etc.
Often used on embassies.
Embassy of Sweden, Quito decommissioned-