Wikidata:Requests for permissions/Bot/PoliticianBot
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-- Lymantria (talk) 11:15, 24 June 2017 (UTC)[reply]
PoliticianBot 1[edit]
PoliticianBot (talk • contribs • new items • new lexemes • SUL • Block log • User rights log • User rights • xtools)
Operator: Knuthuehne (talk • contribs • logs)
Task/s: Add legislative term qualifiers to German politicians.
Code: Github
Function details: We would like to add additional information to German politicians. They have the `P39` (is member of) property with the value of the corresponding local parliament already.
We want to add an additional qualifier `P2937` (legislative period) with a value of the corresponding current period. And example for this can be found on Ernst-Ulrich Alda
The list of the politicians we would like to edit has been derived from scraping the parliament websites and comparing them to wikidata items that have the property (`Member of Landtag <state here>`) already. --Knuthuehne (talk) 05:59, 9 June 2017 (UTC)[reply]
- Can your bot please perform some test edits? Lymantria (talk) 10:00, 9 June 2017 (UTC)[reply]
- I added the qualifier for the new (now 17th ) period for five politicians as an example yesterday: https://www.wikidata.org/wiki/Special:Contributions/PoliticianBot Not all of the politicians of the new Landtag exist in Wikidata yet but there are not too many that are missing and I would create those in another step and just let the bot run for the existing ones for now.Knuthuehne (talk) 07:31, 18 June 2017 (UTC)[reply]
- Please create the user page for the bot's account (
{{bot|Knuthuehne}}
) and consider adding a reference to modified claims as well. Otherwise looks good to me, thanks for your data donation. Matěj Suchánek (talk) 18:45, 20 June 2017 (UTC)[reply]- I created the bot page now. Are we good to go or ist there anything I can still do? --Knuthuehne (talk) 17:42, 23 June 2017 (UTC)[reply]
- I mentioned adding a reference to the modified claim. Your addition seems very trivial to me, though, so I consider it non-mandatory (it would be very nice to have). Ready for approval, I believe. Matěj Suchánek (talk) 17:55, 23 June 2017 (UTC)[reply]
- Oh sorry, I overread that. I ran it again for a couple of entries, this time also adding a source url. An example can be found here: https://www.wikidata.org/wiki/Q2127999 Is this like you expected it? --Knuthuehne (talk) 20:26, 23 June 2017 (UTC)[reply]
- As you can see, another bot immediately moved the URL to the references part (it shouldn't be a qualifier). You can do this with
claim.addSource(source)
. Matěj Suchánek (talk) 07:41, 24 June 2017 (UTC)[reply]
- As you can see, another bot immediately moved the URL to the references part (it shouldn't be a qualifier). You can do this with
- Oh sorry, I overread that. I ran it again for a couple of entries, this time also adding a source url. An example can be found here: https://www.wikidata.org/wiki/Q2127999 Is this like you expected it? --Knuthuehne (talk) 20:26, 23 June 2017 (UTC)[reply]
- I mentioned adding a reference to the modified claim. Your addition seems very trivial to me, though, so I consider it non-mandatory (it would be very nice to have). Ready for approval, I believe. Matěj Suchánek (talk) 17:55, 23 June 2017 (UTC)[reply]
- I created the bot page now. Are we good to go or ist there anything I can still do? --Knuthuehne (talk) 17:42, 23 June 2017 (UTC)[reply]