WP:Bots/Requests for approval/KasparBot

KasparBot

[[User:KasparBot|KasparBot]]

{{Newbot|KasparBot|}}

Operator: {{botop|T.seppelt}}

Time filed: 11:29, Wednesday, April 8, 2015 (UTC)

Automatic, Supervised, or Manual: Automatic

Programming language(s): Java

Source code available: [https://github.com/frederikkaspar/Kaspar General API], especially [https://github.com/frederikkaspar/Kaspar/blob/master/src/mediawiki/task/NormdatenTask2.java NormdatenTask2]

Function overview: The Bot will analyse all articles in namespace 0 which embed Template:Authority control. For every property of this template the bot checks if it is stored in wikidata. If not it will add a claim on Wikidata (KasparBot is a bot on Wikidata). If Wikidata has conflicting information the Article will be skipped. After this the bot checks whether all information is stored in wikidata now. In that case the information will be removed from wikipedia and a plain {{Authority control}} will be included.

Links to relevant discussions (where appropriate):

Edit period(s): one time run

Estimated number of pages affected: 280,000

Exclusion compliant (Yes/No): Yes

Already has a bot flag (Yes/No): No

Function details:

  • fetch all articles with {{Template:Authority control}}
  • fetch the corresponding wikidata item
  • fetch the key-value-pairs of that template in this article
  • compare with the articles wikidata item
  1. template value = wikidata claim → Okay
  2. no wikidata claim → add wikidata claim → Okay
  3. template value ≠ wikidata claim → skip
  • if everything is okay the bot replaces \{\{Authority\ control[\|A-Za-z0-9\=\ \/\-]+\}\} with {{Authority control}}

=Discussion=

:As mentioned in function details all articles/wikidata entities with conflicting information will be skipped. I could add a category membership but implementing this functionality in the authority control template is in my eyes the best option. Even though it isn't important for the bot's task. -- T.seppelt (talk) 06:01, 9 April 2015 (UTC)

::Thanks - asked at Template talk:Authority control#Maintenance category? instead. GoingBatty (talk) 21:33, 9 April 2015 (UTC)

:::Great! -- T.seppelt (talk) 07:09, 10 April 2015 (UTC)

((BAG assistance needed))

{{BotTrial|edits=100}} -- Magioladitis (talk) 15:38, 24 April 2015 (UTC)

{{BotTrialComplete}} -- T.seppelt (talk) 21:36, 24 April 2015 (UTC)

T.seppelt please provide me some diffs. -- Magioladitis (talk) 09:37, 25 April 2015 (UTC)

Please have a look at the [https://en.wikipedia.org/w/index.php?limit=50&tagfilter=&title=Special%3AContributions&contribs=user&target=KasparBot&namespace=&tagfilter=&year=2015&month=-1 bot's contribs]. Some examples: [https://en.wikipedia.org/w/index.php?title=Ram%C3%B3n_Lista&diff=prev&oldid=659051492], [https://en.wikipedia.org/w/index.php?title=Claude_Garache&diff=prev&oldid=659050324], [https://en.wikipedia.org/w/index.php?title=Laurent_Mauvignier&diff=prev&oldid=659049556], [https://en.wikipedia.org/w/index.php?title=Peter_Funke&diff=prev&oldid=659051449]. I didn't notice any mistakes. Regards, --T.seppelt (talk) 11:05, 25 April 2015 (UTC)

T.seppelt Before requesting a flag and starting the bot please add a description of the task at User:KasparBot with a link here. -- Magioladitis (talk) 19:17, 25 April 2015 (UTC)

{{BotApproved}} -- Magioladitis (talk) 19:13, 25 April 2015 (UTC)

:The above discussion is preserved as an archive of the debate. Please do not modify it. To request review of this BRFA, please start a new section at WT:BRFA.