Wikidata:Requests for permissions/Bot/EranBot
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) 17:33, 12 January 2017 (UTC)[reply]
EranBot (talk • contribs • new items • new lexemes • SUL • Block log • User rights log • User rights • xtools)
Operator: ערן (talk • contribs • logs)
Task/s:
- Adding claims and labels imported from hewiki based on harvest_templates script (pywikibot)
- Adding Hebrew labels to existing entities based on hewiki
Code: pywikibot based bots (numbered according to task)
- pywikibot harvest_templates + harvest_labels option (under development)
- https://github.com/eranroz/heLablelsToWikidata
Function details: Both tasks are focusing on adding local labels to Wikidata entities.
- The first task is to use harvest_templates to add claims to Wikidata based on hewiki templates (new claims will have reference imported from Wikimedia project (P143) = Hebrew Wikipedia (Q199913)). This task is already done by similar bots (with same code) on other wikis. In addition the bot will run with -harvest_labels flag, a new flag which tells the bot to add label to related entity if the claim already exist and points to entity with no local label. For example: Deep Throat (Q506013) has a claim director (P57) assigned with Gerard Damiano (Q380715). Since Gerard Damiano (Q380715) didn't have a local (Hebrew) label, the bot can assign it based on the template in the hewiki sitelink of Deep Throat (Q506013) (he:גרון_עמוק_(סרט)). The bot is limited to run only when there is a clear mapping between the template value and the related claims: e.g it skips films with multiple claims in director (P57) as the mapping between value in template and the related template is not machine readable.
- The second task is to use the hewiki template which associate an article in enwiki to non existing article in hewiki (Q16869045) in order to assign label to the entity associated with the related enwiki. When ever the bot sees [[HEBREW PAGE]] {{en|EN PAGE}} on hewiki, it adds "HEBREW PAGE" as label to the entity associated with "EN PAGE".
I tested both features (Special:Contribs/Eranbot) running on greater and greater batches of pages and manually validating the values are correct, and it seems to be stable enough for running on a regular basis. --Eran (talk) 18:33, 4 January 2017 (UTC)[reply]
- Support Or • Talk with me • Send Email • 17:42, 5 January 2017 (UTC)[reply]
- I will approve the bot in a couple of days provided there have been no objections raised.--Ymblanter (talk) 10:34, 9 January 2017 (UTC)[reply]