Wikidata:Requests for permissions/Bot/AliciaFagervingWMSE-bot
- 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:49, 2 March 2017 (UTC)[reply]
AliciaFagervingWMSE-bot (talk • contribs • new items • new lexemes • SUL • Block log • User rights log • User rights • xtools)
Operator: Alicia Fagerving (WMSE) (talk • contribs • logs)
Task/s:
The function of the bot is to import data about immovable cultural heritage to Wikidata as part of Wikimedia Sverige's Connected Open Heritage Project.
This request is for data about Swedish working life museums from the Wiki Loves Monuments Database.
Code:
The bot uses Python and the Pywikibot framework. The code is up on Github: Framework, Specific table processing script
Function details:
The bot processes data from the Wiki Loves Monuments Database, in this case the se-arbetsl. There are about 1400 of them, each with a unique ID number (ArbetSam ID (P3426)).
Since each item in the database has a monument_article property, we know whether there's a corresponding Wikipedia article (and Wikidata object). An additional check is carried out using the unique ID number. If there's no object on Wikidata, a new one will be created and filled with data. If one already exists, data that it does not already have will be added.
An example of what the processed items can look like can be seen here. The WLM database is used a source, linking to the url of the particular item in the API.
The same workflow will, hopefully, be used for future WLM datasets. Next in line are the three remaining datasets from Sweden -- ancient monuments, buildings and historical ships -- as well Norwegian buildings and Danish buildings and ancient monuments. --Alicia Fagerving (WMSE) (talk) 13:15, 14 February 2017 (UTC)[reply]
- Please make some test edits.--Ymblanter (talk) 04:53, 23 February 2017 (UTC)[reply]
- Y Done. --Alicia Fagerving (WMSE) (talk) 12:30, 28 February 2017 (UTC)[reply]
- Looks good to me, I will approve the bot in a couple of days provided there have been no objections raised.--Ymblanter (talk) 12:54, 28 February 2017 (UTC)[reply]
- Y Done. --Alicia Fagerving (WMSE) (talk) 12:30, 28 February 2017 (UTC)[reply]