Wikidata:Requests for permissions/Bot/BEANS Bot
- 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) 16:01, 22 May 2023 (UTC)[reply]
BEANS Bot (talk • contribs • new items • new lexemes • SUL • Block log • User rights log • User rights • xtools)
Operator: BEANS X2 (talk • contribs • logs)
Task/s: Use protocol (P2700) instead of of (P642) to specify the protocol used in port (P1641) statements.
Code: https://gitea.com/TrueBeans/wikidata-bot
Function details: In Febuary 2023, the of (P642) qualifier was deprecated for use with the port (P1641) property. Previously, it had been used to specify the type of port being referred to, e.g. User Datagram Protocol (Q11163) or Transmission Control Protocol (Q8803). The correct qualifier to use is now port (P1641), but almost all uses of port (P1641) still use of (P642).
I propose to run a script that will replace the old uses of of (P642) with port (P1641), to ensure that our data is kept semantic and useful. A SPARQL query is used to find statements that need fixing, and the wikibase-edit
library is used to move the qualifier's value to the new property.
As of writing, 374 statements across 221 items will be affected by this script. (View SPARQL query) --BEANS X2 (talk) 20:40, 1 May 2023 (UTC)[reply]
- I don't think bot approval is needed for just 374 one time edits. But SGTM. BrokenSegue (talk) 21:19, 1 May 2023 (UTC)[reply]
- That's a fair point: this job is probably smaller than the test runs of large bots. Nonetheless, I still wanted to ensure that I was following the correct procedures regarding automated edits (WD:BOTS) to avoid confusion. BEANS X2 (talk) 07:33, 2 May 2023 (UTC)[reply]
- Do you have test edits? Ymblanter (talk) 19:06, 20 May 2023 (UTC)[reply]
- Not yet, apart from two supervised edits performed during development. I'll perform a test run of around 50 edits tomorrow (~18 hours after this comment). Thanks for the response, BEANS X2 (talk) 21:19, 20 May 2023 (UTC)[reply]
- I've just performed a test run of 50 edits, and I haven't noticed any issues with the results. BEANS X2 (talk) 18:35, 21 May 2023 (UTC)[reply]
- Thank you, looks good to me. Given this is a significant part of the task, I will approve the bot tomorrow provided no objections have been raised. Ymblanter (talk) 18:44, 21 May 2023 (UTC)[reply]
- Do you have test edits? Ymblanter (talk) 19:06, 20 May 2023 (UTC)[reply]
- That's a fair point: this job is probably smaller than the test runs of large bots. Nonetheless, I still wanted to ensure that I was following the correct procedures regarding automated edits (WD:BOTS) to avoid confusion. BEANS X2 (talk) 07:33, 2 May 2023 (UTC)[reply]