Wikidata:Requests for permissions/Bot/CensusBot 2
- The following discussion is closed. Please do not modify it. Subsequent comments should be made in a new section. A summary of the conclusions reached follows.
- Approved--Ymblanter (talk) 07:32, 6 February 2017 (UTC)[reply]
CensusBot (talk • contribs • new items • new lexemes • SUL • Block log • User rights log • User rights • xtools)
Operator: SasanBotMan (talk • contribs • logs)
Task/s: This bot will perform a few different tasks, including updating/creating new Wikidata pages that include Census information, updating Wikipedia Infoboxes with links to this information, and updating textual references to this information as well.
Code: https://github.com/CommerceDataService/census-wikidata-bot
Function details:
This bot will upload official Census data for the US using Census data API's
This details of the actions this bot will perform include the following:
- Read a configuration file which will state all necessary information needed for the bot to run and write entries.
- Communicate with the Census API for a specific dataset and get that information (this will include entities such as Counties, Regions, and any other associated Census Geographic Entities as well as a point in time such as 2015)
- Search for the corresponding Wikidata page for a specific entity
- If one page is found, it will then crawl that page to search for the specific property of concern and check the claim values associated with that property. If there are no point in time qualifiers for a claim, the bot will remove that claim. If an existing claim exists for the point in time of concern, the bot will check the value, qualifiers, and references to make sure they are complete and accurate.
- If any part of the claim does not match the proper format of an entry or represent the correct value, that entry will be replace with a proper entry including the following:
- Value
- Qualifiers:
- point in time
- determination method
- References:
- stated in: (link to corresponding Wikidata entry)
- reference URL: (link to specific Census API in which data originated from)
- Qualifiers:
This bot initially executed on 2015 state population values and this request is an extension of the following approved request which was successfully executed. Some of the next areas of data this bot will tackle include counties, regions, as well as expanding state entries with any additional data from State Census API's that can be written to Wikidata.
--SasanBotMan (User talk:SasanBotMan)
- I will approve the bot in a couple of days provided there have been no objections raised.--Ymblanter (talk) 15:42, 4 February 2017 (UTC)[reply]