Wikidata:Bot requests/Archive/2014/06

Correct name parameter

In some pages given name (P735) has as value François (Q1450800) and it should be François (Q1166840). Can anyone correct this with a bot? Thanks. -- Agabi10 (talk) 08:17, 6 June 2014 (UTC)

@Agabi10: For this no bot action is needed. That can be easily solved with Autolist 2. The tool has found 199 items with P735:Q1450800. I've started working on it. -- Pütz M. (talk) 14:47, 7 June 2014 (UTC)
@Pütz M.: thanks for the tool, I'll add this to my favorites to make other corrections like these ones. -- Agabi10 (talk) 15:40, 7 June 2014 (UTC)
This section was archived on a request by: - Agabi10 (talk) 15:40, 7 June 2014 (UTC)

On Polish Wikipedia names of 2000 categories were changed. I would like to rename records and link with new categories on plwiki. I have no idea how to extract and join Wikidata with these categories, but I hope some bot can do it :-)

List of categories is in my sandbox, and it is prepared as follow:

Category:Old name ==> Category:New name

Sample editions: name & link. -- Blackfish (talk) 14:06, 4 June 2014 (UTC)

@Blackfish:   Done 1924 items updated, 20 deleted, 17 pairs left. --Ricordisamoa 20:41, 7 June 2014 (UTC)
This section was archived on a request by: --Ricordisamoa 23:12, 8 June 2014 (UTC)

Hi, when an image is deleted the imagelink stays on Wikidata. Is there any way to locate and delete deleted imagelinks? I have also put a question at Commons village pump, see [1]. Sincerely, Taketa (talk) 21:13, 10 June 2014 (UTC)

Ivan A. Krestinin creates a list of imagelinks to deleted images once a day: Wikidata:Database_reports/Constraint_violations/P18#.22Existing_file.22_violations. Its bot also removes some deleted imagelinks. --Pasleim (talk) 22:48, 10 June 2014 (UTC)
Thank you for the fast response Pasleim. Good to know that it is being seen into. Sincerely, Taketa (talk) 07:03, 11 June 2014 (UTC)
This section was archived on a request by: --Pasleim (talk) 21:32, 27 June 2014 (UTC)

Importing coordinates from Italian Wikipedia

I would like to ask if it possibile to import coords from itwiki (in particular @Multichill:). I think we already have the module and the category like Category:Coordinates not on Wikidata (Q15181099). Thanks! --AlessioMela (talk) 18:39, 7 June 2014 (UTC)

This section was archived on a request by: Sorry for the late reply AlessioMela. Not sure if I ran back in June, but my bot is running again now and adding plenty of coordinates. Multichill (talk) 18:21, 22 October 2014 (UTC)

P6 script?

moved from Wikidata:Project_chat#P6_script

While working on Wikidata:Database reports/Constraint violations/P6 I thought about a script to add P6 statements more easily to our items. A nice to have would be a list with basic information on heads of government and the position held plus a script that adds that information to existing items for teritorial entities as well as creates new items for persons if necessary.
A basic list could look like this:

Territorial entity;person;sex;citizenship;position;start;end
Q723796;Jean Claude Legoux;m;France;Q30185;2008;09.2011
Q723796;Jacky Furaux;m;France;Q30185;09.2011;

A script should add P6 statements to the item (Q723796) including start and end of term as qualifiers. Further it should create new items for the persons (if not already existing) and add statements like P31:Q5 (human), P21 (sex/gender), P27 (citizenship), P39 (position held) including the territorial entity as qualifier and links to the predecessor and succssor. Finally the script should remove the line from the list.
I could fill the list with the required information. Anybody, who could do the script? -- Pütz M. (talk) 01:13, 3 June 2014 (UTC)

The right place for this request is Bot requests. However, the problem I see is on the person, need the item becuse the name can be "ambiguos".--ValterVB (talk) 18:12, 3 June 2014 (UTC)
This is indeed a problem as people could have had more than one position held. Could we implement in the script a semi-automatic duplicates check? Meaning, that no action is done if the name exists as label or alias. Those names could be checked manually. -- Pütz M. (talk) 18:43, 3 June 2014 (UTC)
The problem is more complex. For ex. if person is John Richardson, what is the correct one in this list? And if the specific item isn't created, but exist another person with that name? Probably the risk of errors is too high. --ValterVB (talk) 19:45, 3 June 2014 (UTC)
This is not a specific bot problem. Also by manual editing a new item "John Richardson" could be created, although he might exist already.
In a case of possible duplicates (same label, same alias) I suggest that the bot takes no action, but leaves a notice in the list. Those cases could be checked manually. Like this we could minimize the risk of duplicates. -- Pütz M. (talk) 23:01, 3 June 2014 (UTC)

Importing images from zh.wikipedia and de.wikipedia

Hi,

there is a category on zh.wikipedia with about 8000 pages that have images, where wikidata does not have images [2] and a similar page on de.wikipedia with 1600 pages [3]. If these could be brought into Wikidata that would be great. This has been done before, see also my earlier request above about da.wikipedia images. Sincerely, Taketa (talk) 19:14, 10 June 2014 (UTC)

Replace values

Hi, I need a bot to remove any instances of member of political party (P102)independent politician (Q327591) and replace it with member of political party (P102)no value. This is to clean up the constraints page for member of political party (P102) and remove the classification of independent politician (Q327591) as an instance of a political party. Please refer to User talk:SPQRobin#Independent politicians for the rationale for this request. —Wylve (talk) 18:02, 11 June 2014 (UTC)

No one for this task? --Pasleim (talk) 10:19, 12 December 2014 (UTC)
I'll have a go at creating a bot and using Widar for this request. George Edward CTalkContributions 19:20, 8 January 2015 (UTC)
Revising this, I'll probably have to use Python. George Edward CTalkContributions 16:24, 9 January 2015 (UTC)

I've made a test edit. Is it okay? Special:Diff/187048653 --JulesWinnfield-hu (talk) 18:23, 10 January 2015 (UTC)

looks good --Pasleim (talk) 18:32, 10 January 2015 (UTC)

  Done --JulesWinnfield-hu (talk) 19:31, 10 January 2015 (UTC)

This section was archived on a request by: --Pasleim (talk) 12:31, 15 January 2015 (UTC)

Importing Commons Categories (P373)

Dutch Wikipedia has a nl:Categorie:Wikipedia:Commonscat zonder link op Wikidata (Commonscat without equivalent in Wikidata). From there the P373 statement could be filled. -- Pütz M. (talk) 23:13, 13 June 2014 (UTC)

In en:Category:Commons category without a link on Wikidata is even more. -- Pütz M. (talk) 23:28, 13 June 2014 (UTC)
  Writing something up for this, I'll work on it as much as I can. George Edward CTalkContributions 19:25, 15 January 2015 (UTC)
@George.Edward.C: any progress in this or do you know how to do that? We would like to import commonscat links from fi-wiki to Wikidata. --Stryn (talk) 17:59, 21 January 2015 (UTC)
Doing the parser right now. Will work on it more at the weekend. If I can figure out the parser, it should be easy to complete the rest of it. When I've written it, and it works, I will run both NL and FI after that. George Edward CTalkContributions 18:05, 21 January 2015 (UTC)
Please don't run a bot on nl. There are a lot of conflicts in them, also a lot of pages with double templates. Sjoerd de Bruin (talk) 18:12, 21 January 2015 (UTC)
Noted. :-) The bot will only run on EnWiki and FiWiki (as long as there's no problems with either of them). (Edit: I will probably need a category similar to those mentioned in the reques') George Edward CTalkContributions 18:23, 21 January 2015 (UTC)
Been a while, but I've finally finished the code, and tested it with 4 edits (2 didn't work as planned, so I'm going to work on that, as it happens when Commonscat defaults to the pagename when no value is specified). Expect a request at RFP soon. --George (Talk · Contribs · CentralAuth · Log) 08:47, 20 February 2015 (UTC)
@Caliburn: Are still working on this task? --Pasleim (talk) 14:33, 26 July 2015 (UTC)
I've been working on other Internet projects recently, but I do plan on picking this back up again. I ran into a bug on User:Caliburn/code.py, where it wouldn't properly detect Commons Categories that did not exist.  :) --George (Talk · Contribs · CentralAuth · Log) 16:21, 26 July 2015 (UTC)
This section was archived on a request by: --- Jura 12:06, 4 December 2015 (UTC)