[00:10:37] is it possible to get the name of a property via the api? [00:12:33] I have a lot of "script error" on https://www.wikidata.org/wiki/Wikidata:List_of_properties/all [00:19:35] lbenedix: yes, one sec [00:19:44] https://www.wikidata.org/w/api.php?action=wbgetentities&ids=P31&format=jsonfm [09:28:32] hello. [09:30:02] if I search for a Wikipedia article in Y: language corresponding to an article in X: language, then I can first query for wikidata.org/wiki/Q… and then parse it. [09:31:12] is there some more direct way? or maybe some JavaScript code exists that can help with mass translation of titles in X: to Y:? [09:34:08] qq[IrcCity]: what is it that you are trying to achieve ? [09:34:16] more labels in a language ? [09:34:39] or do you want to connect more articles to wikidata items ? [09:35:01] no. I want to translate English Wikipedia watchlist to Russian. [09:35:15] AH [09:35:46] so you want to have the ENGLISH articles shown in Russian on a watchlist [09:36:12] most of those articles will not have a label in Wikidata [09:36:30] http://ultimategerardm.blogspot.nl/2013/10/wikdata-needs-3780000000-labels.html [09:36:39] I blogged about that yesterday [09:40:09] do most of articles in my watchlist have a label in Wikidata? certainly, most articles in English Wikipedia do not. [09:40:52] but there are developed articles and obscure articles. my watchlist certainly contains a lot of dabs and redirects, [09:40:55] check out the statistics MOST Wikidata items have only one label ... [09:41:09] but of its aricles, most are developed ones. [09:42:28] qq[IrcCity] I love your use case and it makes absolute sense to have it [09:42:59] it is one way to improve a neutral point of view ... it is also a way to get into more fights [09:47:08] ah, yet another question. does anybody know whether Wikidata databases are present at Toolserver? [09:52:55] I think there are... am almost certain [10:02:20] what is its name? [10:02:53] GerardM> http://ultimategerardm.blogspot.nl/2013/10/wikdata-needs-3780000000-labels.html // what is «#Wikdata»? a misspell or? [10:03:11] yes [10:04:37] can someone explain the reference P580 of https://www.wikidata.org/w/api.php?action=wbgetentities&ids=Q51861&format=json to me? [10:04:41] I fixed it in the article [10:05:54] snaktype: "somevalue",property: "P580" [10:13:36] wikidatawiki_p — a silly name, isn’t it? [10:17:52] where the structure (list of tables at least) is documented? [10:21:22] qq[IrcCity]: https://www.mediawiki.org/wiki/Manual:Database_layout [10:22:35] do you mean it is the same as in a vanilla MediaWiki? [10:23:39] what exactly are you lookin for? [10:24:21] in wikidata the items, properties, ... are saved as json in the text table of mediawiki [10:24:23] https://www.wikidata.org/wiki/Special:Export/Q42 [10:24:30] look at the node [10:25:08] so there are no special queries for extracting data (such as Wikipedia links) from Qs? [10:25:41] you can get the whole item via https://www.wikidata.org/w/api.php?action=wbgetentities&ids=Q42&format=json [10:26:30] there is one datastructure called sitelinks [10:27:13] yeah, but I mean Toolserver is useless for it. [10:27:40] are the texts accessible from toolserver? [10:30:01] yes, they are. but I have to parse it myself, or query the API (remotely). [10:30:10] exactly [10:30:24] OMG there is «\u» crap — why they do not speak UTF? [10:30:37] its htmlencoded json [10:33:28] is UTF (or anything 8-bit) discouraged there? [10:34:13] https://www.wikidata.org/w/api.php?action=wbgetentities&ids=Q42&format=json [10:34:18] site: "tawiki",title: "டக்ளஸ் ஆடம்ஸ்", [10:34:25] looks okay to me [10:36:20] in which browser? or with which extension? [10:36:31] chrome without extensions [10:37:21] what is the problem with \u1234? [10:37:26] just decode [10:39:29] here you can find some docs about the data model: https://meta.wikimedia.org/wiki/Wikidata/Notes/Data_model [10:42:12] the problem is I have, generally, to use some library, if I do not want to bother with UTF-16 to UTF-8 conversion myself. note that UTF-16 is not trivial. [10:43:58] a conversion from one to abother is tricky. [10:44:07] another [10:47:27] Firefox shows the «\u» crap undecoded, not characters. [10:50:35] GerardM: Online? [11:04:10] hi [11:04:22] hi [11:04:30] i often observe anonymous users doing bullshit changes [11:04:45] changing labels and describtions that make no sense [12:44:44] Reedy: please to reopen https://bugzilla.wikimedia.org/show_bug.cgi?id=30112 :D [16:23:30] lncabh: <3 [17:39:46] Lydia_WMDE: uhm, badges high & major? [17:40:17] lazowik: yes i want to get this done to not have your work rot [17:40:50] Lydia_WMDE: ok, but let me finish api editing [17:40:55] I got some local changes [17:41:00] and unwritten thoughts [17:41:02] lazowik: sure :) [17:41:26] lazowik: it's not something we get done this sprint and probably also not in the next [17:42:18] Lydia_WMDE: speaking of sprints, I saw badges UI mockup listed in the last one [17:42:26] do you know enything? [17:42:34] *anything [17:42:35] lazowik: that was for the design [17:42:37] no code [17:42:43] I'm aware ;) [17:42:46] ah ok [17:42:53] henning didn't share this with you? [17:42:56] " I saw badges UI mockup listed" [17:42:57] nope [17:43:04] bad henning ;-) [17:43:07] :D [17:43:28] you can poke him when he is on again on monday [17:43:35] or i can poke him when i am back in the office [17:43:49] currently sitting in the sun in brazil [17:43:51] :P [17:44:05] hehe [17:44:37] speaking of which [17:44:40] -> pool [17:45:03] Lydia_WMDE: you have probably more chances, I am usually quite late on IRC [17:45:05] :D [18:04:57] Lydia_WMDE: Get off IRC, you silly woman. [18:05:20] Sky2042 :P [18:06:08] I think she forgot it's a weekend [18:14:26] you forget it is a passion :) [18:50:33] Sky2042: <3 [18:52:11] http://ultimategerardm.blogspot.nl/2013/10/do-not-use-wikipedia-as-your-source.html I blogged about another really nice statistic ... [18:52:38] I think we need to consider what information we need for Wikidata and bring it all together in one place [18:52:52] what do you think ? [18:53:40] Hallo. [18:53:49] I haven't translated messages in a while because of some technical issues. [18:53:51] And I haven't seen Wikidata in a while, too, and I'm really glad to see how it grew. [18:53:53] Hoi aharoni [18:53:57] hoi [18:54:07] Question: There's a message that has poor Hebrew translation, but I'm having hard time understanding how to fix it. [18:54:16] If you go to https://www.wikidata.org/wiki/Q8877?uselang=en [18:54:24] (or probably any other item) [18:54:25] GerardM: I think VIAF appears in that list for the same reason musicbrainz does - there's just thousands of people with a viaf identifier and it's easy to add those with VIAF as the source [18:54:54] there are the Statements. for every statements there are 0 or more sources. What is the message that shows the number of sources? [18:55:09] the one that says "0 sources", "1 source", "2 sources" in English? [18:55:43] uselang=qqx gives me Wikibase-ui-pendingquantitycounter-nonpending, but I don't think that that's what I really need. [18:56:01] Mineo a source is different from having the statement "VIAF identifier" [18:56:37] I'm aware of that, but I suspect the statement "VIAF identifier" really goes hand in hand with the source "VIAF" [18:57:03] aharoni ask aude of DanielK_WMDE_ or Lydia_WMDE [18:57:33] they would be the same ... but a source is only a source when it is used as a source on a statement [18:58:00] aharoni does it need plural ? [18:58:09] yes, basically [18:58:27] I just don't understand which message it is... something is odd-ish. [19:01:02] aharoni: wikibase-statementview-referencesheading-pendingcountersubject [19:01:28] (in wikibase repo) [19:02:07] GerardM: sure and probably most of them were imported by VIAFbot [19:02:42] possibly ... [19:02:47] even probably [19:03:10] lazowik: thanks [19:03:16] i've got a couple of questions about that. [19:03:21] 1: how did you find it? [19:03:41] the usual qqx trick doesn't seem to help here. [19:03:43] aharoni: I searched for polish translation in https://raw.github.com/wikimedia/mediawiki-extensions-Wikibase/master/repo/Wikibase.i18n.php [19:03:47] "źródła" [19:04:04] lazowik: i suspected that... nothing better? [19:04:14] better? [19:04:50] something quicker and not involving existing translations probably? [19:05:03] yes, and also [19:05:16] what if I find many translations with that string? [19:05:42] then look at message code :) [19:06:04] [19:07:42] aharoni: you can also do a search on whole github repo for some html that's around that [19:07:52] ui-toggler-label gets you also there [19:08:02] https://github.com/wikimedia/mediawiki-extensions-Wikibase/search?q=ui-toggler-label&ref=cmdform [19:08:45] sometimes you'd probably need to take some substrings of for example css clasess [19:08:50] as they can be appended [19:09:09] I'm not aware of any non-hackish way to do that [19:13:37] lazowik, GerardM, lbenedix - can you give me an example of an item where there are statements with many sources each? [19:13:48] (say, 3, 4, 5, 6 sources.) [19:14:30] there is some i18n stuff that I want to test. [19:16:36] https://www.wikidata.org/wiki/Q3587835 [19:18:01] those all have multiple statemenst with one source [19:18:19] aharoni needs one statement with multiple sources [19:18:42] pyb - thanks, though the top there is 4 sources... do you know one with at least 5? [19:19:40] hi SPQRobin. haven't talked to you in a long while. [19:20:38] aharoni i added four sources on one statement for you [19:20:57] now it has five [19:21:30] aharoni: hmm no [19:21:41] GerardM: thanks, this works. [19:22:45] GerardM, you'll probably want to know why did I want it. What I wanted to test is whether this message uses the correct forms for different numbers in Russian. It is correct. [19:22:48] That's good. [19:22:59] Cool [19:23:02] But there's another problem that I suspect there. [19:23:07] I will remove the four extras now [19:23:13] ... I wait [19:23:30] Well, you can remove that, I don't need this particular thing any more. [19:23:37] hey aharoni, yeah, indeed :) [19:23:53] hey GerardM :) [19:24:07] So, I suspect that this messages uses *only* the plural word, and sticks the number before it. [19:24:15] If that's true, then it's lego. [19:24:23] And that's bad. [19:42:48] ouch, ouch, I haven't tested RTL in Wikidata's new features for a long while :( [19:46:28] Sky2042: that's what i did :D [19:46:31] pool ftw [19:46:50] Lydia_WMDE: Yeah well, actually get off IRC :P [19:47:14] Sky2042: noway!!!111eleven [19:47:20] :P [19:47:23] ZOMG VACATION? WUT?! [19:47:27] exactly [19:48:29] Lydia_WMDE: We could ask Barras to +b til you come off vacation :p [19:48:35] FYI: PHP Notice: Key 8:datatypes-type-quantity already belongs to ext-datatypes, conflict with ext-wikibase-lib [19:48:44] JohnLewis: but but but! [19:49:06] Nikerabbit: something for JeroenDeDauw [19:49:11] Lydia_WMDE: We'll even block your staff and personal account too as part of the service :p [19:49:19] boah! :P [19:49:50] alright - i got it - i will take a shower and go out again ;-) [19:49:53] laters guys [19:49:57] :p [21:07:34] rschen7754|away: Why? :D [21:07:40] lol [22:04:48] * aharoni can go to sleep quietly: It's around midnight in Central Europe and Lydia_WMDE just triaged my RTL bug. [22:10:00] :) [22:39:25] Hi all. Anybody knows, what happened with pywikibot and API, it can't add refs? [22:39:44] API query error: {u'servedby': u'mw1208', u'error': {u'info': u"Exception Caught: Element with id 'P143' found in list with id 'p143'", u'*': u'', u'code': u'internal_api_error_MWException'}}