Wikidata:Requests for permissions/Bot/William Avery Bot 8
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) 18:40, 1 August 2022 (UTC)[reply]
William Avery Bot 8 edit
William Avery Bot (talk • contribs • new items • new lexemes • SUL • Block log • User rights log • User rights • xtools)
Operator: William Avery (talk • contribs • logs)
Task/s: Set qualifiers on family name (P734) to standardised values, as discussed at Wikidata talk:WikiProject Names § Qualifiers for given names and surnames - establish a guideline, and requested at WD:RBOT § Request to replace qualifiers (2022-07-17)
Code: https://bitbucket.org/WilliamAvery/wikipythonics/src/master/replaceQualifiers.py The task logic is in the treat_page method
Function details:
For each family name (P734) claim on the item:
- If the claim doesn't have a criterion used (P1013) qualifier:
- Ignore the claim
- If the qualifier doesn't have a value of maiden name (Q1376230) or married name (Q30232378):
- Ignore the claim
- If the claim already has a object has role (P3831) qualifier:
- Output a warning and ignore the claim
- Create a new object has role (P3831) qualifier on the claim, with the value of the existing criterion used (P1013) qualifier
- Remove the existing criterion used (P1013) qualifier
Save changed item.
--William Avery (talk) 10:33, 27 July 2022 (UTC)[reply]
Bulk test:
If there are no objections, I will do a test run of 50 edits on 28/07/2022. William Avery (talk) 10:33, 27 July 2022 (UTC)[reply]
- Output from the test run is here.
- I have checked that the script is making the correct changes.
- I was a little surprised to see the married name (Q30232378) value being applied to names of men, such as Bohumil Pick (Q95134155) and Arnoštka Janovicová (Q104088604), but that isn't a fault in the script, so it seems to be good to go. William Avery (talk) 12:40, 28 July 2022 (UTC)[reply]
- Support of course --Epìdosis 20:17, 27 July 2022 (UTC)[reply]