Wikidata:Requests for permissions/Bot/AliciaFagervingWMSE-bot 3
- 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) 20:06, 22 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 ancient monuments 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-fornmin. There are about 145 000 of them.
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.
This is the same workflow that we used when importing museum data.
I have made some test edits: Q28946798, Östra Ed 28:1 (Q28946797), Västra Stenby 226 (Q28946795), Q28946793, Lid 19:1 (Q28946792), Q28946789, Q28946788, Muskö 64:3 (Q28946808), Tanum 948:3 (Q28946807), Gåsinge-Dillnäs 174:1 (Q28946805).
- No label? --ValterVB (talk) 18:25, 21 March 2017 (UTC)[reply]
- @ValterVB: They all have labels in Swedish. --Alicia Fagerving (WMSE) (talk) 10:24, 22 March 2017 (UTC)[reply]