Wikidata:Requests for permissions/Bot/MilanBot
From Wikidata
Jump to navigation
Jump to search
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) 09:20, 26 November 2016 (UTC)[reply]
MilanBot[edit]
MilanBot (talk • contribs • new items • new lexemes • SUL • Block log • User rights log • User rights • xtools)
Operator: Милан Јелисавчић (talk • contribs • logs)
Task/s: For start, bot should add description on disambiguation pages for Serbian language. Later I plan to expand to be more useful.
Code: https://github.com/milanjelisavcic/milanbot
Function details:
- It runs SPARQL query, iterate over items, check if there is no description for 'sr' and if the claim with P31 has only one item and then adds Wikimedia disambiguation page (Q4167410) label as a description.
- It should also do the same for 'sr-ec' and 'sr-el'
- It could log any exception for later examination
--Милан Јелисавчић (talk) 00:09, 16 November 2016 (UTC)[reply]
- Please make some test edits (till 25, I think). --Edgars2007 (talk) 10:45, 17 November 2016 (UTC)[reply]
- Donе! link to last edit --Милан Јелисавчић (talk) 21:12, 18 November 2016 (UTC)[reply]
- I will approve the bot in a couple of days provided there have been no objections raised.--Ymblanter (talk) 09:12, 23 November 2016 (UTC)[reply]
- @Милан Јелисавчић: I think you can the related 'sh' description too for items where it is missing, or, what do you think? --XXN, 11:55, 23 November 2016 (UTC)[reply]
- Well, the bot extracts the label from Wikimedia disambiguation page (Q4167410) and adds that as a description, so I can add arbitrarily many languages. Before that, I would like to add some safety checks for vandalism eg. if label is changed in a meantime. But yes, I can add 'sh' for now as well. --Милан Јелисавчић (talk) 14:07, 23 November 2016 (UTC)[reply]
- @Милан Јелисавчић: I think you can the related 'sh' description too for items where it is missing, or, what do you think? --XXN, 11:55, 23 November 2016 (UTC)[reply]
- I will approve the bot in a couple of days provided there have been no objections raised.--Ymblanter (talk) 09:12, 23 November 2016 (UTC)[reply]
- Nice, it even numbered the test edits! What happens if there are several P31 statements?
--- Jura 14:22, 23 November 2016 (UTC)[reply]- In that case, it just skips. I want to log that item ID's for later examination. --Милан Јелисавчић (talk) 17:24, 23 November 2016 (UTC)[reply]
- Sounds good. Sometimes disambiguation items get merged and mixed up with other stuff.
--- Jura 17:26, 23 November 2016 (UTC)[reply]
- Sounds good. Sometimes disambiguation items get merged and mixed up with other stuff.
- In that case, it just skips. I want to log that item ID's for later examination. --Милан Јелисавчић (talk) 17:24, 23 November 2016 (UTC)[reply]
- Donе! link to last edit --Милан Јелисавчић (talk) 21:12, 18 November 2016 (UTC)[reply]