Wikidata:Requests for permissions/Bot/AliciaFagervingWMSE-bot 4
- 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) 19:05, 10 April 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 built heritage (protected buildings) 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-bbr. There are about 5800 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: Q10658799, Skonaren 1 (Q29206856), Säby Church (Q10687886), Carl Larsson-gården (Q10443072), Q10718979, Sirishov (Q10668799), Holsljunga Church (Q10525515). --Alicia Fagerving (WMSE) (talk) 09:23, 7 April 2017 (UTC)[reply]