Wikidata:Requests for permissions/Bot/MedalBot
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.
MedalBot (talk • contribs • new items • new lexemes • SUL • Block log • User rights log • User rights • xtools)
Operator: John Vandenberg (talk • contribs • logs)
Task/s: Create person items and add award received (P166) for sportspeople have become notable by winning a medals, e.g. at the Olympics and Paralympics, thereby meaning the medal tallies can be calculated and populated into infoboxes and tables on Wikipedias (e.g. w:Chinese Taipei at the 2014 Winter Olympics)
Code: User:MedalBot/medalbot.py
Function details: The bot will either syncronise Wikidata with the authoritative data where possible, or syncronise Wikidata to English Wikipedia data, adding medals awarded to sports player's. The claim will be award received (P166)=>{gold/silver/bronze medal} with a qualifier significant event (P793)=>{event item in w:Category:2014 Winter Olympics events} and qualifier point in time (P585)=>the day the medal was awarded. I suggested that data structure at Wikidata talk:Sport results task force#Medals, but only user:Ymblanter has replied so far. If this data structure is later replaced, I am happy to do the cleanup.
Typical syncronisation checks will be performed, including at least:
- if there is an existing matching award claim, a duplicate wont be added.
- if the sportsperson has more award received claims than the authoritative data says they have received, log an exception onwiki so the community can investigate.
- if there are more sportspeople with medals from a country (cohort) than the authoritative data reports, log an exception onwiki so the community can investigate. (it probably means a dup)
I will provide sample code to update a Wikipedia using Wikidata, and hopefully Wikipedia bot operators will pick this up, improve it and automate the replication of medals data across the Wikipedias during this Olympics and Paralympics period. --John Vandenberg (talk) 17:03, 6 February 2014 (UTC)[reply]
- Exciting! Do some test edits? :D Legoktm (talk) 09:22, 9 February 2014 (UTC)[reply]
- @John Vandenberg:--GZWDer (talk) 11:03, 24 February 2014 (UTC)[reply]
- Sorry, I had to sink my time into finishing the Academic journal database, and also had a baby arrive, which has meant learning how to write code with my toes. I am getting back up to speed, and should have some test edits happening within the next day or two. I will ping you both when that happens. John Vandenberg (talk) 00:18, 26 February 2014 (UTC)[reply]
- @John Vandenberg: Any update?--GZWDer (talk) 16:39, 1 March 2014 (UTC)[reply]
- @GZWDer:; yes - Two test edits here. Also ~1000 edits on English Wikipedia to clean up the Medal templates. John Vandenberg (talk) 04:20, 4 March 2014 (UTC)[reply]
- @John Vandenberg:--GZWDer (talk) 11:03, 24 February 2014 (UTC)[reply]
I am unsure whether to use award received (P166)=>{gold/silver/bronze medal} (e.g. gold medal (Q406039)) or award received (P166)=>Paralympic gold medal (Q15243424)/Paralympic silver medal (Q15243447)/Paralympic bronze medal (Q15243454). John Vandenberg (talk) 04:26, 4 March 2014 (UTC)[reply]
- @John Vandenberg: Paralympic gold medal (Q15243424) is better.--GZWDer (talk) 04:56, 4 March 2014 (UTC)[reply]
Done Correctly handles Olympic & Paralympic medal types. Medals at any other competition will use the default {gold/silver/bronze medal} target. See code modifications and Jamie Benn (Q1064791) as test edits. John Vandenberg (talk) 14:46, 4 March 2014 (UTC)[reply]
On Lim Yong-Kyu (Q15303660), I see User:Openbk has used of (P642) to record medal results. John Vandenberg (talk) 10:48, 4 March 2014 (UTC)[reply]
@Legoktm: I've now done some more test edits, now covering two different sports, two different games and some world championships. Importing will need to be done by approving each edit, and each sport will need to be have custom code written and data items added to avoid importing data which isnt granular enough to be accurate, for e.g. English doesnt have articles about bobsleigh per event (e.g. two-man, four-man, two-woman) for Games before ~2002, so importing from Italian or Hungarian may be a better option that I will need to explore (see bobsleigh at the 1988 Winter Olympics – two-man (Q1005478)). I will be coding, data entry, etc, etc throughout the Paralympic Games, so I expect that I can keep up with the medal announcements as they occur. John Vandenberg (talk) 02:45, 5 March 2014 (UTC)[reply]
- @Bene*, Vogone, Legoktm, Ymblanter, The Anonymouse: Any 'crat to comment?--GZWDer (talk) 04:55, 30 April 2014 (UTC)[reply]
- This request seems uncontroversial to me, if there are no objections forthcoming, I will aprove it in a day or so.--Ymblanter (talk) 20:33, 30 April 2014 (UTC)[reply]