Wikidata:Requests for permissions/Bot/Botcrux 11

Botcrux 11 edit

Botcrux (talkcontribsnew itemsnew lexemesSULBlock logUser rights logUser rightsxtools)
Operator: Horcrux (talkcontribslogs)

Task/s: Replace stated in (P248) to publisher (P123) where the value is Q1158.

Problem description: In 2020 User:Reinheitsgebot made a massive addition of references in which stated in (P248)World Athletics (Q1158) have been added as claim in the reference (edit example). The operation was ok, except that World Athletics (Q1158) is an organization, not a document or a database, therefore thousands of warnings are currently raised up (example). A more suitable property is publisher (P123).

Function details: For technical reasons, I'm not able to fix the source with a single edit, so the bot will:

  1. copy all the claims in the reference to be removed (except for stated in (P248)World Athletics (Q1158));
  2. remove the problematic reference;
  3. add a new reference with all the claims copied plus publisher (P123)World Athletics (Q1158).

The script is ready, here a couple of edits: [1][2]. --Horcrux (talk) 09:04, 28 November 2022 (UTC)[reply]

  • Sounds fine though why not just remove the "Stated In" "World Atheletics" claim from the reference altogether? Surely that's implied by the athlete ID.
BrokenSegue (talk) 16:41, 28 November 2022 (UTC)[reply]
@BrokenSegue: Just because I'm used to be as much complete as I can when I add a reference. But yes, it would also be ok just to execute point #2. --Horcrux (talk) 19:41, 28 November 2022 (UTC)[reply]
Personally I'd prefer just doing point 2 but I don't care enough to argue either way. I might even argue that this bot doesn't need approval since the scope is so limited and there's warnings. BrokenSegue (talk) 21:39, 28 November 2022 (UTC)[reply]
Hey Horcrux, are you still interested in doing those edits?   Support from me! I also see stated in (P248) + a specific external ID property as a great combo, by the way. I'd say that's how they are usually used as well? The UseAsRef userscript also creates references like that. --Azertus (talk) 17:37, 12 April 2024 (UTC)[reply]