Wikidata:Contact the development team/Archive/2016/09

This page is an archive. Please do not modify it. Use the current page, even to continue an old discussion.

Wikidata API sees 'retrieved' data and 'Reference URL' content as SPAM

I am working on my first bot, User:UreomiczBot, but run into a problem which commentors on my task proposal also comment (User:UreomiczBot/Human_metabolites; also other channels): please add 'retrieved' data and 'Reference URL' as provenance when adding new items. However, when I currently try to create new items, I cannot add these two bits of information, because I get this error message: {u'servedby': u'mw1233', u'error': {u'info': u'\u29fcabusefilter-warning-URL\u29fd', u'*': u'See https://www.wikidata.org/w/api.php for API usage', u'code': u'failed-save', u'messages': [{u'html': {u'*': u'Warning: Please don\'t insert URL into the label, description or alias field. If you are trying to spam, you may get blocked. For adding sitelinks scroll <a href="#sitelinks-wikipedia">down</a>.'}, u'name': u'abusefilter-warning-URL', u'parameters': [u'URLs within label/description/alias', 34]}]}} I double checked, it's really the aforementioned two properties that cause the trouble, and removing them allows the bot to create an item, like sn-glycerol 3-phosphate(2-) (Q26711901). My suggestion would be to allow bots to use these two field as part of a reference linked to added statements. --Egon Willighagen (talk) 05:07, 1 September 2016 (UTC)

Thanks for the report, there was an error in an abuse filter which I have just fixed, so this should no longer be problem. Matěj Suchánek (talk) 08:06, 1 September 2016 (UTC)

Grafana error

@Addshore: In https://grafana.wikimedia.org/dashboard/db/wikidata-datamodel-statements?panelId=13&fullscreen the value for >10 is wrong. Todays value should be 2.23 Mil. --Pasleim (talk) 16:38, 5 September 2016 (UTC)

Thanks for noticing @Pasleim:! I have just fixed it. ·addshore· talk to me! 07:04, 6 September 2016 (UTC)

Grafana stuck?

It seems that stats from yesterday (24) are identical with todays (25).
--- Jura 05:06, 25 August 2016 (UTC)

@addshore: Can you have a look please? --Lydia Pintscher (WMDE) (talk) 05:57, 26 August 2016 (UTC)
Checking the detailed numbers, it seems that they are not identical. Still, looking e.g. at Q5 on [1]:
2016-08-22T00:00:00.000Z	3239161
2016-08-23T00:00:00.000Z	3239773	+612
2016-08-24T00:00:00.000Z	3240567	+794
2016-08-25T00:00:00.000Z	3240739	+172
2016-08-26T00:00:00.000Z	3240728	-11
2016-08-27T00:00:00.000Z	3243398	+2670  [added on 27 August 2016]
These seems quite close for recent days. Maybe activity on Sunday was just low.
Comparable numbers from Wikidata:Database reports/Popular items
3387022	
3387813	+791
3389514	+1701
3389686	+172
3389913	+227
3391733	+1820  [added on 27 August 2016]
These are calculated differently a few hours before the Garafana ones. Still the changes are bigger.
--- Jura 07:23, 26 August 2016 (UTC)
I'm trying to add 1000+ items with Q5. We can check if it's visible tomorrow.
--- Jura 09:31, 26 August 2016 (UTC)
I spike is now visible. I updated the numbers above. I wonder if it's catching up from previous days. @addshore: Did you change anything?
--- Jura 13:07, 27 August 2016 (UTC)
I haven't changed anything (and sorry for the slow reply, I have been on vacation). The code that generates this data can be found at https://github.com/wikimedia/analytics-wmde-scripts/blob/master/src/wikidata/datamodel/statements_per_entity.php ,the data comes from a db replica using the page_props table https://github.com/wikimedia/analytics-wmde-scripts/blob/master/src/wikidata/datamodel/sql/select_statements_per_entity.sql and the script runs at 0300 UTC https://github.com/wikimedia/analytics-wmde-scripts/blob/master/cron/daily.03.sh#L18 ·addshore· talk to me! 17:11, 1 September 2016 (UTC)
@Addshore: is there way to see the replication lag? Maybe 2016-08-26 shows an increase.
--- Jura 21:28, 7 September 2016 (UTC)
Replication lag of the db servers should always be near 0 (it is a production slave essentially). Would you be able to pop on IRC and ping me and we can take a look at this in realtime? :) ·addshore· talk to me! 08:29, 8 September 2016 (UTC)

Watch list problem

It's only a my problem or Watchlist show only ns0? --ValterVB (talk) 19:29, 7 September 2016 (UTC)

Hello @ValterVB: What do you mean by "ns0" ? If the problem still occurs, can you describe it? Thanks Lea Lacroix (WMDE) (talk) 09:18, 8 September 2016 (UTC)
Could be related to phab:T144999. Try to turn off ORES in case you have it enabled. --Pasleim (talk) 09:52, 8 September 2016 (UTC)
Yes, probably is this, the problem was on Watch list and on User contribs. Now work without that I have changed something. --ValterVB (talk) 11:22, 8 September 2016 (UTC)

Could Ukrainian logo also be added to common.css:

:lang(uk) #p-logo a {
        background-image: url(// upload.wikimedia.org/wikipedia/commons/thumb/a/ab/Wikidata-logo-uk.svg/156px-Wikidata-logo-uk.svg.png) !important;
}

Other than the eo logo recently added, this one is new and there was no time to discuss the new image anywhere. However, I don't expect any trouble with it, so I added it. If there are any problems with it, any admin is free to revert me. Otherwise, this is   Done --YMS (talk) 14:37, 8 September 2016 (UTC)

@YMS:: Sorry for the trouble, I accidentally left redundant space there, and it doesn't work with it, could you fix it in url: url(//upload.wikimedia.org Similartothissimilartothat (talk) 15:14, 8 September 2016 (UTC)
I am sorry for neither noticing nor checking this. Now it works. --YMS (talk) 15:16, 8 September 2016 (UTC)

Upload a new webpage

Can you be so kind as to advise me on how I can upload a document to be displayed in Wikipedia. This is a new area entitled Cultural Agency Theory. I am afraid I am a total novice in this area. Thanks, Molisi. – The preceding unsigned comment was added by 213.171.225.138 (talk • contribs).

It's not clear what you exactly want. Do you want to upload a document so the text becomes part of the article on Wikipedia, or do you want to upload it as a file and link to the file from Wikipedia? In both cases you are wrong here. This is for questions related to Wikidata only. Best is to ask the question on the project chat of the Wikipedia you want to upload the document too. In all cases if you want to add a document to Wikipedia you need to be the copyright holder. Mbch331 (talk) 12:20, 11 September 2016 (UTC)

precision null for geo coordinates

The coordinate location (P625) statements in Deutsche Bundesbank (Q162222) and Perkins Restaurant and Bakery (Q7169056) have according to the json file a precision null. In the RDF file the precision is 0.00027777777777778. I don't think this discrepancy is intended. --Pasleim (talk) 17:48, 11 September 2016 (UTC)

@Pasleim: The numerical precision you can see in the RDF is <http://www.wikidata.org/value/b34b5bace210ae4938b015b2089aab9e> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://wikiba.se/ontology-beta#GeoAutoPrecision> . (a wikibase:GeoAutoPrecision) (taken from Q7169056's nt and ttl representations). That is an automatic precision of 1/3600 assigned to all coordinates that don't have a user given precision. See ontology.owl. Cheers, Hoo man (talk) 21:35, 11 September 2016 (UTC)

Change datatype to number

Can somebody change datatype to number for draft pick number (P1836). There is some consensus here (at least, no real opposition). If you want more !votes, then you can count also me. I can't think of any case, when string datatype would be needed for this property. For undrafted players we can use novalue. Do we need to include draft pick number (P1836) for undrafted players is another disscusion, out of scope of this thread. --Edgars2007 (talk) 11:10, 12 September 2016 (UTC)

@Edgars2007:   Not done We're not going to perform property data type changes, except for changing old string properties to identifier (which has been widely discussed and is a low impact change). Changing this from string to number would be non-trivial and might have negative side effects. Please request a new property. Cheers, Hoo man (talk) 11:24, 12 September 2016 (UTC)
OK, thanks for explanation. --Edgars2007 (talk) 11:30, 12 September 2016 (UTC)

How do I add the "Google Knowledge Graph" identifier?

Looking to add this identifier to a wikidata entry--info about the subject does appear in a knowledge graph, just wondering if I add this in with the link I get from clicking "share", or is there a different way? Thank you - Melodyschamble (talk) 14:55, 16 September 2016 (UTC)

@Melodyschamble: I think you can extract the id from that. Please have a look at Google Knowledge Graph ID (P2671) for how to add that to items. Cheers, Hoo man (talk) 17:01, 16 September 2016 (UTC)

Dates

Devs, what I have to do (except writing a gadget :D ) to be able to put dates in statements, that "are in soime language". To put it simple, in Latvian usually we write dates "X. year Y. Z" (2016. gada 9. septembris/2016. gada 9. septembrī), where Z is month name. Not very important, but it's a little bit annoying to cut down ". gada" from copy-pasted date from lvwiki and if it's easy fixable/doable... I think other languages would also be interested. --Edgars2007 (talk) 20:36, 9 September 2016 (UTC)

@Edgars2007: We are currently working on making it possible for us to parse dates which are in most formats that MediaWiki can output. That will presumably also cover your use case. See T63958 for that. Cheers, Hoo man (talk) 14:27, 18 September 2016 (UTC)

Misleading header generated by Template:Wikidata list

Please see in Wikipedia Talk:List of women linguists § Sorting, correcting, robot wars and the top of the article.

The link "Manually edit list" at the top of the article, and presumably any page generated by Template:Wikidata list, should be removed or reworded. It is misleading, since any manual edit is guaranteed to be reverted within 24 hours, as stated in the immediately adjacent paragraph. Magnus Manske (talkcontribslogs) considers the paragraph sufficient warning against confusion, but he has the (dis?)advantage of extreme familiarity with the system, being the author and maintainer of ListeriaBot (talkcontribslogs) (linked but not named there), which does the reversion. To a wiki editor with no experience in using bots, the button is useless or worse than useless, since though it says "manually update" -- which from all my wiki experience means "enter the editor and make your changes there in wikicode" -- Magnus says it would let a user [who knows how to do it] manually trigger an update. If that means "allow the user to edit Wikidata and then have the bot update the list with the corrected data", well and good, but I suspect that it would only trigger the bot to make its usual reversion earlier than normal.

To discuss, please ping me if that is possible here, and if possible preferably at Wikipedia, where I go daily.

--Thnidu (talk) 01:42, 18 September 2016 (UTC)

@Thnidu: If it isn't clear you can change it. Something like "Automatically updates the list now" --ValterVB (talk) 08:07, 18 September 2016 (UTC)

Redundant Summary

Hello.When merging, Why redirects are created on several changes?Why does redirectsing do not be in one edit With one summary?Thank you --ديفيد عادل وهبة خليل 2 (talk) 14:09, 19 September 2016 (UTC)

Wikidata available for search on the web

Hi! I just need assistance about a Wikidata of my article. I created a Wikidata last week, but to my surprise, I didn't expect it would be available for search on a particular website (Yahoo search), I tried a couple of articles to search by using the exact name as specified, but chances are, it didn't even show at least one result, but in my case, it shows up almost every time. I believe all items are indexed or sort out in the same manner as it should be, but I guess there's a software bug that needs to be fixed. All I wish is to hide the Wikidata of my article from being searched. By the way, here's the link of the Wikidata https://www.wikidata.org/wiki/Q26898092. Please do the necessary action to rectify my issue. Thanks! -Screamborn (talk) 14:09, 19 September 2016 (UTC)

This is already being discussed at Wikidata:Project chat#Hide wikidata and elsewhere. @Screamborn: Please do not start multiple discussions on the same topic. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 14:22, 19 September 2016 (UTC)

Dump 20160919

Hi, the current dump (https://dumps.wikimedia.org/wikidatawiki/entities/20160919/) is corrupt. --Succu (talk) 20:16, 19 September 2016 (UTC)

User:Hoo man is investigating. Sjoerd de Bruin (talk) 20:34, 19 September 2016 (UTC)
@Succu: Removed the incomplete dump and am investigating why it failed. Cheers, Hoo man (talk) 20:41, 19 September 2016 (UTC)
I added some further error/ sanity checks to the dump script in gerrit:311551, once that has been merged, I'll start a new dump run (presumably tomorrow). Cheers, Hoo man (talk) 21:18, 19 September 2016 (UTC)

Wikidata usage instructions

Can we make the display of Wikidata usage instructions (P2559) values dependent on logged in users' {{Babel}} settings? Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 20:57, 19 September 2016 (UTC)

Can't we start with actually displaying the value of that property first when adding statements? Sjoerd de Bruin (talk) 20:59, 19 September 2016 (UTC)

Too long description

My bot choked when trying to update an item witch had a too long description (should have coded error handling better). Why can someone add a description that is to long and make it impossible to edit the item through the api? My bot wasn't even updating the description, it was only trying to change the P2397 value. The description was added at the first edit: https://www.wikidata.org/w/index.php?title=Q26935216&oldid=377486278. Mbch331 (talk) 07:53, 20 September 2016 (UTC)

I've noticed that Special:NewItem doesn't have any length limits, I could also make Wolfeschlegelsteinhausenbergerdorff (Q26903397) but I can't add the label in other languages. Sjoerd de Bruin (talk) 08:17, 20 September 2016 (UTC)

SPARQL: (wdt:P171)*

Hi! Looks likes something changed recently, because I'm no longer able to determine if a genus with certain taxon name (P225) belongs to the kingdom Plantae. I'm using ?item (wdt:P171)* wd:Q756 . in my query. This worked well and was very fast. Newly the query ends with a timeout. --Succu (talk) 15:47, 16 September 2016 (UTC)

@Succu: The most likely problem is that there is a cycle in the parent taxon (P171) graph: Dactylocotyle (Q18519780) - Dactylocotyle denticulata (Q5028938) - Dactylocotyle (Q18519780) (current cycles). Fixing that will hopefully make your query run again. Cheers, Hoo man (talk) 16:57, 16 September 2016 (UTC)
Thanks Hoo, the cycle (introduced about a month ago) is gone now, but the problem persists. My usual bot run last week encountered no difficulties. I tried another kingdom (Animalia) with the same result. :( --Succu (talk) 17:49, 16 September 2016 (UTC) PS: All was fine on 7th, trouble on 13th.
Can you give us the exact query? I'm out of ideas for now. @Smalyshev (WMF): Can you look into this? Cheers, Hoo man (talk) 18:01, 16 September 2016 (UTC)
SELECT ?item ?taxonName ?taxonRank ?parentName ?parentRank ?higherParent WHERE {
  BIND("Rivasmartinezia" AS ?taxonName) .
  BIND(wd:Q34740 AS ?taxonRank) . # Genus
  BIND(wd:Q756 AS ?higherParent) . # Plantae
  ?item wdt:P225 ?taxonName .
  ?item wdt:P105 ?taxonRank .
  ?item wdt:P171/wdt:P225 ?parentName .
  ?item wdt:P171/wdt:P105 ?parentRank .
  ?item (wdt:P171)* ?higherParent .
}
Try it!
This is an example of my parameterized query. --Succu (talk) 18:20, 16 September 2016 (UTC)
Looks like a bug :( I'll check with Blazagraph devs. If we don't have quick solution I'll roll it back to previous version until it's fixed. --Smalyshev (WMF) (talk) 19:43, 16 September 2016 (UTC)
Sounds like a plan, Stas. Thanks. ;) --Succu (talk) 19:57, 16 September 2016 (UTC)
I checked on the test server, and previous versions also seem to have the problem, so it may be depending on data, not Blazegraph version... Will investigate further. --Smalyshev (WMF) (talk) 21:05, 16 September 2016 (UTC)
Was there any update between the 9th and 13th of September? --Succu (talk) 21:19, 16 September 2016 (UTC)
SELECT ?item ?taxonName ?taxonRank ?parentName ?parentRank ?higherParent WHERE {
  BIND("Rivasmartinezia" AS ?taxonName) .
  BIND(wd:Q34740 AS ?taxonRank) . # Genus
  BIND(wd:Q756 AS ?higherParent) . # Plantae
  ?item wdt:P225 ?taxonName .
  ?item wdt:P105 ?taxonRank .
  ?item wdt:P171/wdt:P225 ?parentName .
  ?item wdt:P171/wdt:P105 ?parentRank .
  ?item wdt:P171|
  wdt:P171/wdt:P171|
  wdt:P171/wdt:P171/wdt:P171|
  wdt:P171/wdt:P171/wdt:P171/wdt:P171|
  wdt:P171/wdt:P171/wdt:P171/wdt:P171/wdt:P171|
  # …
  ?higherParent
}
Try it!
If you make the wdt:P171 path deep enough, it works while still not timing out. Usually that indicates a cycle in the graph that makes Blazegraph choke in case a property path with * is used, but I can't find any further cycles here. Cheers, Hoo man (talk) 07:36, 17 September 2016 (UTC)
If I use Streptophyta (Q133527) as ?higherParent my query works. Using the next higher taxon Viridiplantae (Q11973077) the timeout occurs. --Succu (talk) 08:30, 17 September 2016 (UTC)

Any news User:Smalyshev (WMF)? --Succu (talk) 16:03, 27 September 2016 (UTC)

SELECT ?item  WHERE {
  ?item wdt:P225 "Viridiplantae" .
  ?item wdt:P171 wd:Q756 . # Plantae
}
Try it!
Works.
SELECT ?item  WHERE {
  ?item wdt:P225 "Viridiplantae" .
  ?item (wdt:P171)* wd:Q756 . # Plantae
}
Try it!
Is timing out.
--Succu (talk) 16:22, 27 September 2016 (UTC)
Not yet, sorry. I've asked Blazegraph team for help, will update when we have news. --Smalyshev (WMF) (talk) 19:03, 28 September 2016 (UTC)

WQS turns blue

Frequently it seems to get stuck today (blue "Running query" message). What's happening?
--- Jura 17:42, 24 September 2016 (UTC)

Me too: "504 Gateway Time-out". --Succu (talk) 18:51, 24 September 2016 (UTC)
Many query and gateway timeout, example --Cyrille37 (talk) 08:56, 25 September 2016 (UTC)
Also for me, queries started timing out, see for example [2] 62.90.178.181 13:40, 25 September 2016 (UTC)