Wikidata:Bot requests/Archive/2014/03

From Wikidata
Jump to navigation Jump to search

Unexpected value for gender

I added recently sex or gender (P21) to many items and made a mistake. I suspect that most of my editions require to change man (Q8441) to male (Q6581097) and woman (Q467) to female (Q6581072). My native language is Polish (Q809), so it is configured as default in my settings. Unfortunately in Polish, there is no difference in the names of the items used in the incorrectly set claims. Paweł Ziemian (talk) 20:09, 5 March 2014 (UTC)

According to Special:AbuseLog, you made such wrong edits only 59 times. Would not be that much work to correct it manually. --YMS (talk) 21:32, 5 March 2014 (UTC)
Thanks for the link. Paweł Ziemian (talk) 20:04, 7 March 2014 (UTC)
This section was archived on a request by: Paweł Ziemian (⧼Talkpagelinktext</small>) 20:35, 7 March 2014 (UTC)
This section was archived on a request by: Rippitippi (⧼Talkpagelinktext</small>) 21:52, 14 March 2014 (UTC)

Its only a couple of hundred entries but could a bot import values for this template from fr:Modèle:Base Sycomore? -- Gymel (talk) 10:43, 9 January 2014 (UTC)

@Gymel: ✓ Done. — Ayack (talk) 22:27, 12 March 2014 (UTC)

population (P1082) for some Swedish urban areas

This section was archived on a request by: Rippitippi (⧼Talkpagelinktext</small>) 21:54, 14 March 2014 (UTC)

I have not finished adding the needed codes to all items yet. But I would like to see how a bot work with this task will work. I have therefor prepared a page with a csv-dump describing which items should have which value.

Steps:

This is for the counties of Stockholm, Uppsala, Södermanland, Östergötland, Jönköping, Kronoberg, Kalmar, Gotland and Blekinge. I can provide the other years and counties later.

You do not have to worry about Swedish copyright in this case. It has expired, since the data is older than 15 years. -- Lavallen (talk) 07:04, 6 February 2014 (UTC)

@Lavallen: I have finished with italian population, so I can start with you request. :) --ValterVB (talk) 17:54, 16 February 2014 (UTC)
@Lavallen: Bot is working if you want check. --ValterVB (talk) 19:38, 16 February 2014 (UTC)
Looks lovely! :D I will now take this to svwp, to see their response! -- Lavallen (talk) 19:45, 16 February 2014 (UTC)
✓ Done. I have replaced Älmsta (Q3185307), Grisslehamn (Q1547090) so they have the same precision. --ValterVB (talk) 20:03, 16 February 2014 (UTC)
Fine, I have added two more csv's for 1965 and 1970, for you, when you have time and interest. -- Lavallen (talk) 11:11, 17 February 2014 (UTC)
Probably this week end. --ValterVB (talk) 21:43, 18 February 2014 (UTC)
✓ Done --ValterVB (talk) 10:29, 21 February 2014 (UTC)

Change

This section was archived on a request by: Rippitippi (⧼Talkpagelinktext</small>) 21:58, 14 March 2014 (UTC)

change all occupation (P106)->nursing (Q121176) with occupation (P106)->nurse (Q186360), nursing (Q121176) is field of work not occupation --Rippitippi (talk) 05:12, 9 February 2014 (UTC)

@Rippitippi: ✓ Done 755 edits. --Ricordisamoa 18:39, 13 March 2014 (UTC)

Replace P168 with P31

This section was archived on a request by: Rippitippi (⧼Talkpagelinktext</small>) 21:56, 14 March 2014 (UTC)

@Ladsgroup, Izno: P168 is used 34844 times.--GZWDer (talk) 10:04, 11 February 2014 (UTC)

I'm gonna start my bot Amir (talk) 10:32, 11 February 2014 (UTC)
It's working a sample Amir (talk) 10:41, 11 February 2014 (UTC)
@ladsgroup: Hold up a sec on this. I want to check some things. --Izno (talk) 12:41, 11 February 2014 (UTC)
@Izno:stopped, I was removing the only statements that the item doesn't have any P31 (about 20K out of the 34K) or P31 equaled to P168Amir (talk) 13:07, 11 February 2014 (UTC)
@Ladsgroup: You mean, you were removing P168 claims where there was a) no P31 claim or b) where P31 matched P168? Okay, that sounds fine. Remove P107 while you're at it. Ping me when you're done. --Izno (talk) 14:29, 11 February 2014 (UTC)
@Ladsgroup: Any update? 29521 left.--GZWDer (talk) 10:36, 13 February 2014 (UTC)
@Izno: and GZWDER, it's finished seven hours ago but you have to wait for three days (at least) until the database got updated Amir (talk) 10:42, 13 February 2014 (UTC)
@Ladsgroup: A lot of other items are still using P168: Special:WhatLinksHere/Property:P168. If possible, replace all P31=Q811979 to P168 value and then remove P168.--GZWDer (talk) 10:47, 13 February 2014 (UTC)
I estimated there will be 14K items left and needs to be handled manually or semi-manually, let's see what Izno says Amir (talk) 11:30, 13 February 2014 (UTC)
Undent: @Ladsgroup: Scheemda railway station (Q47288) still has a claim of P31 that matches P168. Is your bot not handling items where there is more than one P31 claim gracefully (ee also the video game item from the other day)? --Izno (talk) 13:31, 13 February 2014 (UTC)
yes, It worked that way, let me re-run it with new settings Amir (talk) 14:52, 13 February 2014 (UTC)
@Ladsgroup:Probably can remove:
  1. P168 when P168=Q55488 and P31=Q928830 (310 items)
  2. P31 when P131=Q55488 and P31=Q928830 (131 items)
  3. P31=Q811979 and port P168 data to it (258 items)
  4. port P168 data to P31 if P31 is a subclass of Q210272 (4605 items)--GZWDer (talk) 16:08, 13 February 2014 (UTC)

@ladsgroup: Is your bot smart enough to know about classes and subclasses? I think that we could move further easily if it did, but I don't know how much effort on your part that would take. (That might also help with P107 removals.) --Izno (talk) 17:38, 16 February 2014 (UTC)

@GZWDer: I worked on the forth one, there is a critical condition: P31 has to be just one value, see this is an example of wrong result: Abbey of Saint Gall (Q155699)
@Izno: I've recently written a code to analyze parent taxon property and create articles in Persian Wikipedia based on hierarchy of taxons. I can do it for subclasses, it'll take a little more coding but It's possible. give me instruction (and a little time) and I'll do it Amir (talk) 09:35, 17 February 2014 (UTC)

The generator isn't working properly so I can't fix 1-3 issues right now, but I'll do it as soon as this thing got fixed Amir (talk) 10:52, 17 February 2014 (UTC)

the second issue was solved Amir (talk) 12:17, 17 February 2014 (UTC)

@Izno: @GZWDer: things that could be handled automatically are finished now Amir (talk) 00:45, 19 February 2014 (UTC)

This section was archived on a request by: Rippitippi (⧼Talkpagelinktext</small>) 21:57, 14 March 2014 (UTC)

All the items which are concerned already have one of the subclasses of Historical Monument (Q916475) (monument historique inscrit (Q10387575) or classified historical monument (Q10387684)). Thanks. — Ayack (talk) 10:04, 12 March 2014 (UTC)

I'll do it. Detail: if esxist Historical Monument (Q916475) AND exist (monument historique inscrit (Q10387575) OR classified historical monument (Q10387684)) I'll delete Historical Monument (Q916475) --ValterVB (talk) 19:11, 13 March 2014 (UTC)
✓ Done There are 278 item with only Historical Monument (Q916475), If you need the list I can post it. --ValterVB (talk) 09:11, 14 March 2014 (UTC)
Thanks a lot! — Ayack (talk) 09:37, 14 March 2014 (UTC)
This section was archived on a request by:  Hazard SJ  20:52, 16 March 2014 (UTC)

Can you please make a harvest for the properties Classified properties and protected areas of Wallonia ID (P1133). The ID is available on fr:Modèle:Classé Wallonie at the “4=”. It sould give the form “52011-CLT-0080-01”. Some monument don't have a page on wikidata. --Fralambert (talk) 14:26, 9 February 2014 (UTC)

@Fralambert: Wikidata:Requests for permissions/Bot/Hazard-Bot 10.  Hazard SJ  22:27, 1 March 2014 (UTC)
@Hazard-SJ: Tanks. --Fralambert (talk) 18:49, 2 March 2014 (UTC)
@Fralambert: ✓ Done  Hazard SJ  20:52, 16 March 2014 (UTC)
@Hazard-SJ: Thanks! --Fralambert (talk) 21:10, 16 March 2014 (UTC)
This section was archived on a request by: — Ayack (talk) 10:35, 17 March 2014 (UTC)

... if the value is not already there. Thanks. — Ayack (talk) 13:03, 15 March 2014 (UTC)

I'll fix them (there are ~500 of them) Amir (talk) 01:43, 16 March 2014 (UTC)
✓ Done Amir (talk) 02:23, 16 March 2014 (UTC)
Thanks! — Ayack (talk) 17:36, 16 March 2014 (UTC)

Cleaning aliases

In some pages, there are Polish-language aliases starting with "[xx]wiki:". It is not necessary to know now why they are there. I just want a bot to delete such strings or delete the aliases which include ending brackets (another link). Matěj Suchánek (talk) 17:39, 31 March 2014 (UTC)

removed a total of 192 aliases with "[xx]wiki:" --Pasleim (talk) 18:24, 7 April 2014 (UTC)
Thank you! Matěj Suchánek (talk) 07:17, 13 April 2014 (UTC)
This section was archived on a request by: Matěj Suchánek (⧼Talkpagelinktext</small>) 07:17, 13 April 2014 (UTC)

WD items for categories on rowiki

Hi,
It's necesary to change items for categories of stadiums for rowiki, like i've done here:

  • Categorie:Stadioane în *country* → Categorie:Stadioane din *country*
  • Categorie:Stadioane de fotbal în *country* → Categorie:Stadioane de fotbal din *country*

We have an consensus somewhere on local village pump. I already recategorised all pages to correct categories. Its necessary only WD items to adjust here. Thanks you. XXN (talk) 19:46, 7 March 2014 (UTC)

@XXN: done also some unconnected ones in [1]. Not sure if it's enough. --Ricordisamoa 17:28, 8 April 2014 (UTC)
Nice job! Thank you! --XXN (talk) 21:25, 10 April 2014 (UTC)
This section was archived on a request by: XXN (⧼Talkpagelinktext</small>) 21:25, 10 April 2014 (UTC)

Add source to the statement instance of (P31) in items of constellations

Hi, I'd like to add a source to the statement instance of (P31) in items of constellation. All these items should have already instance of (P31) -> constellation (Q8928). The source I need is:

P854 -> http://www.iau.org/public/themes/constellations/
P364 -> Q1860
P357 -> The Constellations
P813 -> today
P123 -> Q6867

You can see the result in the item Boötes (Q8667).

The items involved are 88: Q9256, Q10481, Q10506, Q10576, Q10586, Q9253, Q10584, Q10476, Q10488, Q8832, Q8849, Q10452, Q10538, Q9305, Q10535, Q10470, Q10464, Q8844, Q10468, Q8839, Q10457, Q10508, Q10425, Q9285, Q10413, Q10406, Q10517, Q9282, Q10542, Q8921, Q9302, Q8837, Q8675, Q10438, Q10433, Q8913, Q8923, Q10563, Q10448, Q10574, Q10578, Q10416, Q10450, Q10430, Q8853, Q10403, Q10446, Q10580, Q10571, Q10443, Q10484, Q9289, Q10492, Q10428, Q10435, Q10582, Q10503, Q8906, Q8860, Q10515, Q8864, Q10511, Q10441, Q10486, Q8679, Q10409, Q9251, Q10473, Q10498, Q10513, Q8866, Q8865, Q9286, Q10529, Q8910, Q10525, Q10570, Q10546, Q10565, Q10422, Q10567, Q8918, Q10478, Q10521, Q8842, Q10437, Q10519.

I excluded from this list Q8667, already done. Thank you very much. --Paperoastro (talk) 11:36, 27 March 2014 (UTC)

@Paperoastro: ✓ Done 87 edits. --Ricordisamoa 18:10, 28 March 2014 (UTC)
Thanks! :-) --Paperoastro (talk) 21:29, 29 March 2014 (UTC)
This section was archived on a request by: --Paperoastro (⧼Talkpagelinktext</small>) 21:29, 29 March 2014 (UTC)

Bot request of create items and add claims of an item

I want to create some items and add claims of the item exiting in wikidata from the artcles and infobox of wikipedia  – The preceding unsigned comment was added by Qianwei0823 (talk • contribs).

@Qianwei0823: please clarify from what articles the bot should import claims. --Ricordisamoa 18:06, 13 March 2014 (UTC)

Add some information of Jiangsu Province in China  – The preceding unsigned comment was added by Qianwei0823 (talk • contribs).

This section was archived on a request by:
too unspecific request --Pasleim (talk) 21:41, 17 May 2014 (UTC)

Regrettably, the ill-conceived and incomplete solution of the relation between Wikidata and Commons caused doubleness of the links to Commons. Wikidata have properties Commons category (P373) and Commons gallery (P935) as well as "Wikimedia Commons page linked to this item" section in interwiki links but none of the possibilities is fully-fledged and fully functional yet. Until any definitive arrangement is applied, we need to keep consistency between both types of links.

The interwiki link in the section "Wikimedia Commons page linked to this item" should be imported, exported or compared in relation to properties linking to Commons.

  • If the iw link contains a category page of Commons, the link should be automatically rendered (copied) to P373 property (Commons category). Possible collision should be reported as possible error.
  • If the iw link contains a gallery page of Commons, the link should be automatically rendered (copied) to P935 property (Commons gallery). Possible collision should be reported as possible error.
  • P373 and P935 properties should be rendered (exported) as interwiki links linking from the Wikidata item to Commons - however, the priority must be specified for the cases that both these properties are filled and for such cases that more Wikidata items link (through these properties) to identic Commons page. --ŠJů (talk) 22:38, 22 December 2013 (UTC)
report for first item - sourcecode. --Steenth (talk) 15:52, 5 March 2014 (UTC)

Redirects for alternate page titles of translatable project pages

It would be helpful if there was a bot that went through pages translatable through Translate that have localized titles and made redirects out of those titles where possible. For example, Wikidata:Indsatsgrupper could be created to redirect to Wikidata:Task forces/da. --Yair rand (talk) 07:29, 25 February 2014 (UTC)

 Oppose – the search function should be smart enough to show the translated page first. If that doesn't happen, then there is a problem with Search. --Ricordisamoa 17:24, 13 March 2014 (UTC)

Fix coordinates

I think this request has already be made, but it appears that many invalid items remain. There were apparently errors in the handling of the globe parameter of the geocoordinate type and many items miss it. It can be mostly fixed by assuming that no globe = earth, but that is not really good (actually they show as errors in edit summaries like here). The problem can be quickly fixed by hand through doing a dummy edit like adding a white space at the end, but there are really many items, so we would need a bot to fix it. --Zolo (talk) 08:10, 28 February 2014 (UTC)

PS: a new version of module:Coordinates with a smarter use of Wikidata is ready to be deployed in fr.wikipedia but it shows a n error message when Wikidata data are invalid (I think it is a good thing, but only once this bug is fixed). --Zolo (talk) 16:30, 28 February 2014 (UTC)
@Zolo: So to fix this could simple be to null edit all items with coordinate location (P625)?  Hazard SJ  19:10, 1 March 2014 (UTC)
@Hazard-SJ:. Not really. Apparently, the missing "globe = Earth" gets automatically added whenever you edit coordinates through the UI but you have to edit the p625, it doesn't work if you edit something else in the item. And I doubt it works the same way when editing through the API. --Zolo (talk) 20:25, 1 March 2014 (UTC)
addendum: it's not just the globe. Precision is also nil on some items. Unless I am mistaken, this is also a bug. --Zolo (talk) 22:32, 4 March 2014 (UTC)
addendum2: Also, it seems that the precision parameter wzs set to the highest possible level in many items where it should not have been. For instance coordinates of the form latitude = Z.66666666667, longitude = Z.66666667 (sort of like here) should almost certainly have a precision to an arcminute. That should be fixed, otherwise, some Wikipedia display weird things like 45° 00' 00.0" while it should only be "45°". --Zolo (talk) 19:48, 6 March 2014 (UTC)
See Wikidata talk:Coordinates tracking#Comparing coordinates and Bugzilla62105. Multichill (talk) 11:32, 8 March 2014 (UTC)

Tennis-statistics

Last year someone ran a bot to keep the statistics of tennis players up to date. At the moment, this is primarily the win/loose stats for both single and double tournaments. This data can be derived from either the WTA/ATP/ITF websites, where this is kept up to date. The data is live used on some languages (dk/es/ru, from the top of my head). Once we can use numbers on WikiData, I think there will be more properties connected with this (making auto-update even more interesting). Edoderoo (talk) 10:22, 17 January 2014 (UTC)

I would like to add that the German Wikipedia Portal:Tennis is right now also looking into possibilities of using Wikidata in infoboxes and that this is the main issue to solve before we can proceed. I think that this is true for all languages. As far as we see, the update has to be run once a week (Monday) when the new world rankings are published.

In addition, there are sometimes differences between ITF on one side and WTA/ATP on the other side and it is our understanding that ATP/WTA data should be used. It would be great if someone could set up a bot or even rerun the once existing bot.

Please ping me on German Wikipedia if there are any updates as I am not a regular visitor on Wikidata. --Mad melone (talk) 13:09, 18 March 2014 (UTC)

The main problem will be this: Terms of Use Agreement. According to this it is not allowed to copy data from the ATP website and put them in our database. --Pasleim (talk) 18:37, 18 March 2014 (UTC)
@Pasleim: Thanks a lot for your input. Not surpisingly, the WTA has a similar segment in their TUA Section 5, however the wording is different.
However, isn't this basically what we do today in the local wikipedias already? As far as i see it, we go to the two websites every monday and insert the data into the local infobox templates, thereby "storing" them as well. My understanding is that we can do that due to the fact that we cite the respective source, even though the content is copyrighted (on a side note: a huge portion of what we cite as sources is copyright protected, e.g. newspaper articles, books, etc, so that shouldn't be the issue at hand.). Only difference is that we would use a crawler bot.
That being said, I am definitely not an expert on the question of what we can do and what we can't do within the legal framework that the Foundation has set up for Wikimedia projects. In my personal opinion, we should be able to do so, but it surely isn't a bad idea to involve people more knowledgeable in this area. Is there a special place on Wikidata for that? --Mad melone (talk) 07:19, 19 March 2014 (UTC)
The key difference is that Wikipedia includes prose that should discuss the statistics, which means fair-use is a defense. However infoboxes (on English Wikipedia and others, but maybe not all Wikipedias) often contain data which isnt critically discussed in the prose, which means it isnt immune from a copyright battle, but the 'owners' of this data probably dont want to sue Wikipedia. However if Wikidata offered a high quality replica of their data, able to be easily extracted via our APIs, we need to be extremely careful about how we obtained that data to avoid violating w:database rights. John Vandenberg (talk) 08:32, 19 March 2014 (UTC)
Thanks for your input as well. Even though this isn't in our favor, after doing some reading I agree with you. Wikimedia has always been very tight on copyright issues - and rightfully so, as we have to protect our users that rely on the free use of our output. This is true even though most of the media or other people using copyrighted data use it on a "they won't sue me" basis, which we can't afford to use. I thought about contacting WTA/ATP in this regard, but I want to let sleeping dogs lie.
Nonetheless, this is an unfourtunate situation, as it dooes not only affect tennis, but more or less all infoboxes with regularly changing data. Probably it's best to get a broad concensus on this one, but I am no expert on WIkidata and would rely on someone else to initiate such discussion.--Mad melone (talk) 10:28, 19 March 2014 (UTC)
As iknow there is a big problem to crawl data automaticaly if there is a data copyright on the crawled websites. In the business there was always a problem to get data auto via an automatized process. It is no problem to take a secretary to type thousands of data published in publicy. But it is a big problem to crawl them. Imho we should use iuristical help in this case because lawyers have in most cases the sight of both parties, the right owners and the users. So maybe there is a lawyer in the WP or WM to look on this case? --DonPedro71 (talk) 11:53, 19 March 2014 (UTC)

Lydia has provided me with a link to the Foundation's legal team analysis of the situation: https://meta.wikimedia.org/wiki/Wikilegal/Database_Rights It basically backs up what was mentioned earlier, so at this time being I see no chance for crawling websites :( --Mad melone (talk) 16:38, 21 March 2014 (UTC)

Huge work: from P60 (P60) to instance of (P31)

Hi, while the decision concerning the deletion of P60 (P60) is pending (see this discussion), I open a request for a bot that copy P60 statements to P31.

More precisely, for every item with P60 property, the bot should copy the value in an instance of P31, with also the source. In some cases the statements was already copied, but not the source, that should be copied. Probably exist items with both properties but with different values! In this case I hope it is possible make a list to check manually (!!) the items. Note that the bot will check nearly 70000 items (see Database_reports/Popular_properties). Thank you very much! --Paperoastro (talk) 10:17, 17 March 2014 (UTC)

On hold per PFD. --Ricordisamoa 00:10, 20 March 2014 (UTC)
@Paperoastro: a test edit. But... how long is the PFD going to last? --Ricordisamoa 22:34, 25 May 2014 (UTC)
It is ok, thanks Ricordisamoa! No one seems to want to close it, but, even if I'm strictly involved, in few days I will close it (I need to read once the discussion). --Paperoastro (talk) 10:08, 26 May 2014 (UTC)
@Ricordisamoa: I have just created the item unknown astronomical object (Q16945799). You can use it for some few cases when P60 is "unknown" or "no value". Thanks for your work! --Paperoastro (talk) 10:33, 26 May 2014 (UTC)
Why not to use "unknown" or "no value" directly? --Ricordisamoa 06:49, 28 May 2014 (UTC)
Imho, because using directly P31 we lose the information that the item "is" (or should is) an astronomical object. --Paperoastro (talk) 08:07, 28 May 2014 (UTC)
Why not use simply instance of (P31) astronomical object (Q6999)? --Infovarius (talk) 10:33, 15 August 2014 (UTC)
@Paperoastro: Wikidata:Requests for permissions/Bot/SamoaBot 45 --Ricordisamoa 06:49, 28 May 2014 (UTC)
This section was archived on a request by: --Pasleim (talk) 09:37, 11 September 2014 (UTC)