[07:30:02] Hey, want to use OSM Relation as a link in Wikipedia Article, how to do that? [07:30:57] https://www.wikidata.org/wiki/Q160949 [10:00:21] (03PS1) 10WikidataBuilder: New Wikidata Build - 06/04/2014 10:00 [extensions/Wikidata] - 10https://gerrit.wikimedia.org/r/124145 [10:08:59] (03CR) 10WikidataJenkins: [V: 032] "Build Successful" [extensions/Wikidata] - 10https://gerrit.wikimedia.org/r/124145 (owner: 10WikidataBuilder) [10:23:21] (03PS2) 10Bene: Support getting single sitelinks with ClientSiteLinkLookup [extensions/Wikibase] - 10https://gerrit.wikimedia.org/r/123449 [10:26:28] (03CR) 10Bene: "Ok, so finally the discussion seems to concerning client only. As this is a repo setting, we need no values but only the ids to set and th" [extensions/Wikibase] - 10https://gerrit.wikimedia.org/r/123441 (owner: 10Bene) [10:28:07] (03CR) 10WikidataJenkins: [V: 04-1] "Build Failed" [extensions/Wikibase] - 10https://gerrit.wikimedia.org/r/123449 (owner: 10Bene) [10:46:45] I will use the value of Property in a Wikipedia article - where can I get newest details of that? [10:59:49] (03PS3) 10Tobias Gritschacher: Support getting single sitelinks with ClientSiteLinkLookup [extensions/Wikibase] - 10https://gerrit.wikimedia.org/r/123449 (owner: 10Bene) [11:02:25] (03CR) 10Tobias Gritschacher: [C: 032] New Wikidata Build - 06/04/2014 10:00 [extensions/Wikidata] - 10https://gerrit.wikimedia.org/r/124145 (owner: 10WikidataBuilder) [11:04:50] (03PS2) 10Tobias Gritschacher: Fix codestyle in ChangeOpsMerge [extensions/Wikibase] - 10https://gerrit.wikimedia.org/r/123862 (owner: 10Addshore) [11:05:01] (03CR) 10WikidataJenkins: [V: 032] "Build Successful" [extensions/Wikibase] - 10https://gerrit.wikimedia.org/r/123449 (owner: 10Bene) [11:05:24] (03PS9) 10Tobias Gritschacher: Cucumber tests for Special:SetSiteLink [extensions/Wikibase] - 10https://gerrit.wikimedia.org/r/121393 (owner: 10Aude) [11:05:35] (03Merged) 10jenkins-bot: New Wikidata Build - 06/04/2014 10:00 [extensions/Wikidata] - 10https://gerrit.wikimedia.org/r/124145 (owner: 10WikidataBuilder) [11:12:10] (03CR) 10WikidataJenkins: [V: 032] "Build Successful" [extensions/Wikibase] - 10https://gerrit.wikimedia.org/r/123862 (owner: 10Addshore) [11:14:45] (03CR) 10Aude: [C: 04-1] "we are still using numeric ids in wb_property_info and wb_items_per_site." [extensions/Wikibase] - 10https://gerrit.wikimedia.org/r/101197 (owner: 10Daniel Kinzler) [11:15:29] (03CR) 10WikidataJenkins: [V: 032] "Build Successful" [extensions/Wikibase] - 10https://gerrit.wikimedia.org/r/121393 (owner: 10Aude) [12:18:38] (03PS2) 10Bene: Insert css styles for badges on client [extensions/Wikibase] - 10https://gerrit.wikimedia.org/r/123447 [12:21:49] (03CR) 10Bene: [C: 04-1] "This patch, if ever, needs to wait until the ones mentioned above are ready and merged." [extensions/Wikibase] - 10https://gerrit.wikimedia.org/r/111609 (owner: 10Bene) [12:22:11] (03CR) 10WikidataJenkins: "Build Successful" [extensions/Wikidata] - 10https://gerrit.wikimedia.org/r/124145 (owner: 10WikidataBuilder) [12:23:43] (03CR) 10WikidataJenkins: [V: 04-1] "Build Failed" [extensions/Wikibase] - 10https://gerrit.wikimedia.org/r/123447 (owner: 10Bene) [13:21:19] (03PS3) 10Aude: Add option in travis setup to run client or repo tests only, or both [extensions/Wikibase] - 10https://gerrit.wikimedia.org/r/123863 [13:26:20] (03CR) 10WikidataJenkins: [V: 032] "Build Successful" [extensions/Wikibase] - 10https://gerrit.wikimedia.org/r/123863 (owner: 10Aude) [17:23:03] (03CR) 10Thiemo Mättig (WMDE): "I still think that repo and client configurations should be the same to allow (for example) to use the same styles." [extensions/Wikibase] - 10https://gerrit.wikimedia.org/r/123441 (owner: 10Bene) [17:37:35] (03CR) 10Thiemo Mättig (WMDE): [C: 04-1] "I'm very sorry. The change itself totally makes sense and should be merged. But I still think the documentation is not how it should be." (031 comment) [extensions/Wikibase] - 10https://gerrit.wikimedia.org/r/123449 (owner: 10Bene) [17:46:10] aude: Are you around? [17:49:50] (03CR) 10Thiemo Mättig (WMDE): [C: 04-1] "Thanks for the new patch set! :-) I wonder what's wrong with the test. Looks like Jenkins is broken again. Just two details: Now this look" [extensions/Wikibase] - 10https://gerrit.wikimedia.org/r/123447 (owner: 10Bene) [17:49:52] Does anyone know if there is a way to require a property to be constrained to a single value? [17:50:32] <__ns__> o7 [17:52:23] hello ns! [17:52:44] <__ns__> Sup [17:52:44] Hi harej and __ns__! [17:52:53] <__ns__> Yo man [18:25:13] <__ns__> Does anybody know how to generate an entity id for a claim client-side. I am in need of some help [18:25:52] <__ns__> wikimediadc is working on a wikidata bot [18:26:30] (03CR) 10Bene: "Hmm,the FA badge does not match MediaWiki's coding conventions [1]. What about .wb-badge-goodarticle?" [extensions/Wikibase] - 10https://gerrit.wikimedia.org/r/123447 (owner: 10Bene) [18:27:19] JohnLewis: Are you around? [18:27:31] Dmcdevit: Yeah [18:28:10] __ns__ and I are working together, but we are Wikidata noobs. Just looking for anyone who could possibly help. See above. :-) [18:28:45] I don't know myself - Never looked into that stuff really. [18:30:35] (03CR) 10Bene: "Hmmm? It's not possible to use repo settings on client. Furthermore this would enforce standards which we should avoid. The client's setti" [extensions/Wikibase] - 10https://gerrit.wikimedia.org/r/123441 (owner: 10Bene) [19:08:33] https://www.wikidata.org/w/index.php?title=Special:Contributions&offset=20150101000000&limit=500&tagfilter=&contribs=user&target=Dcirovicbot&namespace= How Dcirovicbot mass adding interwiki from sh wikipedia to Wikidata? [19:10:29] What is a "snak" [19:10:29] (03CR) 10Jeroen De Dauw: [C: 04-1] Support getting single sitelinks with ClientSiteLinkLookup (032 comments) [extensions/Wikibase] - 10https://gerrit.wikimedia.org/r/123449 (owner: 10Bene) [19:10:32] Someone please answer this question [19:11:37] "Snak is a single, basic assertion in Wikidata, including property-value assertions, "no value" assertions, and others. Statements are composed of one-to-many snaks. Snaks are an integral part of the data model, but, normally, this term will not be exposed to editors and users of Wikidata. For more information, see meta:Wikidata/Data_model#Snaks." from https://www.wikidata.org/wiki/Wikidata:Glossary [19:12:20] anyone got time to fix up https://www.wikidata.org/wiki/Q261564 ? [19:12:48] JohnLewis: got time to send the weekly summary email? :) (sorry - just got back from travel) [19:13:14] Lydia_WMDE: I keep forgetting that >.> [19:13:16] ohai Lydia_WMDE :) [19:13:17] Will do [19:13:22] <3 [19:13:25] hoo: hi! [19:18:42] Done (hopefully as you usually do it :p) [19:19:09] hey Lydia_WMDE [19:19:23] wazzup? [19:19:38] JohnLewis: \o/ [19:19:40] lazowik: hey [19:19:47] trying to catch up with stuff [19:20:06] jhttps://www.wikidata.org/wiki/Q261564ust got back from a weekend in scotland [19:20:12] ehhh [19:20:23] "just got back" [19:20:59] :) [19:23:45] how about you? [19:27:43] soon exams [19:27:48] and loooong vacations [19:27:58] 4 months :O [19:29:21] nice! [19:32:38] hi Dmcdevit [19:32:45] how's the hacking? [19:33:03] Hey aude. :-) [19:33:05] Anyways, I created this data item because it's needed for a project (see US legislation task force): https://www.wikidata.org/wiki/Q16089635 [19:33:10] I'm wondering what else I should add to that. [19:33:17] (There is no article on the passage of bills on Wikipedia) [19:33:25] Making progress, but we have a few things we haven’t figured out. [19:34:25] aude: I think one of our problems is getting the entity ID for a claim, so we can update an existing one. [19:34:28] (03CR) 10Bene: Support getting single sitelinks with ClientSiteLinkLookup (031 comment) [extensions/Wikibase] - 10https://gerrit.wikimedia.org/r/123449 (owner: 10Bene) [19:35:17] harej: instance of? [19:35:47] https://www.wikidata.org/w/index.php?title=Q16089635&diff=119269328&oldid=119265769 [19:35:48] Dmcdevit: where do you get a claim from? [19:35:48] ? :) [19:36:17] harej: looks good [19:36:21] =] [19:36:39] and make sure it gets linked from somewhere [19:36:52] aude: The National Archives ID in https://www.wikidata.org/wiki/Q1518467, for example. How do we get its ID so we can specify that claim and update the value? [19:36:56] What does that entail, aude? [19:37:39] harej: use it in another item, perhaps [19:39:25] Dmcdevit: if you have the claim json by itself, then you knwo the claim id [19:39:26] id: "Q1518467$DF5C5D13-F12D-4003-BB87-666B61323A46" [19:39:35] How else would an item be linked? [19:39:44] https://www.wikidata.org/w/api.php?action=wbgetentities&ids=Q1518467&format=json [19:41:01] <__ns__> So aude, if we wanted to use wbsetclaim with an id, we have to query for the claim id before set the value [19:41:59] harej: there might be a property for "significant event" or such [19:42:19] then for item for some legislation, you can note the date of passage with that [19:42:23] somethign lik ethat [19:43:31] __ns__: i think so [19:43:42] So, aude, that would be a link. In which case, I expect many links. :) [19:45:26] https://www.wikidata.org/wiki/Property:P793 [19:45:40] i'm sure there are other ways to do this than that, but [19:45:55] i might use that and then "passage" is the value [19:45:58] date is a qualifier [19:48:33] [travis-ci] wikimedia/mediawiki-extensions-WikibaseQuery#114 (master - 83eecf8 : Translation updater bot): The build has errored. [19:48:33] [travis-ci] Change view : https://github.com/wikimedia/mediawiki-extensions-WikibaseQuery/compare/9774a19a50ee...83eecf8e3938 [19:48:33] [travis-ci] Build details : http://travis-ci.org/wikimedia/mediawiki-extensions-WikibaseQuery/builds/22398930 [19:48:47] __ns__ is what aude saying complying with your plan for a schema? [19:51:12] (03CR) 10WikidataJenkins: "Build Successful" [extensions/Wikibase] - 10https://gerrit.wikimedia.org/r/124262 (owner: 10L10n-bot) [19:51:28] <__ns__> aude: I am struggling to create a reference using the api. I am going to put the code up on github, it would be great if you could take a look at it [19:51:43] (03CR) 10Thiemo Mättig (WMDE): Support getting single sitelinks with ClientSiteLinkLookup (031 comment) [extensions/Wikibase] - 10https://gerrit.wikimedia.org/r/123449 (owner: 10Bene) [19:52:47] __ns__: ok [19:53:04] are you usng python or what? [19:54:40] (03CR) 10Thiemo Mättig (WMDE): "No "same" as in "identical" but "same" as in "same format", e.g. array( itemId => cssClassName )." [extensions/Wikibase] - 10https://gerrit.wikimedia.org/r/123441 (owner: 10Bene) [19:58:44] aude: Yeah [19:58:52] pywikibot? [19:59:43] I think wikitools. __ns__? [20:01:42] link? [20:02:12] <__ns__> Hey sorry, heres the link https://github.com/wikimediadc/nara-auth/blob/master/wd_interact.py [20:02:19] <__ns__> the project requires wikitools [20:02:35] ok [20:03:08] you might have easier time with pywikibot (although I've not used it for wikidata), and i am not familiar with wikitools [20:03:27] anyway, all we need to do is put together some json [20:04:32] Reference stuff starts at https://github.com/wikimediadc/nara-auth/blob/master/wd_interact.py#L100 [20:04:35] (03CR) 10Thiemo Mättig (WMDE): "Yes, .wb-badge-goodarticle is very good. :-) Originally I wanted to be closer to the original .FA and .GA but there is no point in that if" [extensions/Wikibase] - 10https://gerrit.wikimedia.org/r/123447 (owner: 10Bene) [20:04:38] __ns__: Dmcdevit can i assume almost all (or all) are new claims? [20:05:13] aude: They will be added with new claims, yes. Though we we also planning to account for duplicates if they are encountered. [20:06:11] <__ns__> aude: Yes the problem with that function is that the json formatting for snaks key is not correct [20:06:23] wbsetclaim might work to add the claim + references in one edit [20:07:07] anyway, you have ""statement": entity_id," in set_refernece [20:07:10] <__ns__> aude: we looked up wbsetclaim and you need an entity id to create that claim [20:07:20] instead of entity_id, put the claim id [20:07:53] <__ns__> How do we get an entity id [20:07:58] <__ns__> err [20:08:00] <__ns__> claim id [20:08:02] when you do create claim, you should get back some json [20:08:11] that should have claim id, i think [20:09:14] <__ns__> Yeah that is what we are using [20:09:22] <__ns__> is you look at set_reference [20:09:39] i don't think entity id is needed for set reference... just claim id [20:10:01] <__ns__> A claim is an entity right? [20:10:04] (which contains entity id, before th '$' but not important) [20:10:06] no [20:10:29] item is (subclass of) an entity [20:10:47] claim = statement (generally) [20:11:17] Q61 = entity id, for example [20:11:37] <__ns__> So, Q1518467$DF5C5D13-F12D-4003-BB87-666B61323A46 is an claim id [20:11:49] yes [20:12:07] Q1518467 is the entity id but not important in this case since we have claim id [20:14:20] <__ns__> ok, so when we run set_reference we run into a json error with the snaks key [20:14:38] <__ns__> Do you see anything wrong with those objects [20:15:16] looking [20:23:31] __ns__: do you get a specific error message? [20:24:09] aude: I think the error is about badly formed JSON. [20:24:55] ok [20:25:12] maybe i'll try the code to add a reference [20:25:52] https://gist.github.com/filbertkm/d59ca7ed44d5660b11e0 is generally what is needed, although i don't think "index" and "baserevid" are needed [20:31:00] "wikitools.api.APIError: (u'invalid-json', u'No array or invalid JSON given')" [20:31:10] Yeah, same issue. [20:40:35] <__ns__> hey aude we are taking off [20:40:59] <__ns__> if you find the issue submit it as an issue on github, but if you don't no worries [20:42:39] he was online from a plane? :D [20:43:02] I usually only do that after landing... [20:43:30] heh :) [20:46:22] * hoo sighs out very loud [21:04:36] (03PS1) 10Aude: Fix $propertyLabels in SnakHtmlGenerator [extensions/Wikibase] - 10https://gerrit.wikimedia.org/r/124274 [21:06:49] hi [21:08:25] hi Schisma______ [21:09:30] (03CR) 10WikidataJenkins: [V: 032] "Build Successful" [extensions/Wikibase] - 10https://gerrit.wikimedia.org/r/124274 (owner: 10Aude) [21:09:57] (03CR) 10Hoo man: [C: 032] "Doesn't look like we have code coverage for this :/" [extensions/Wikibase] - 10https://gerrit.wikimedia.org/r/124274 (owner: 10Aude) [21:10:24] (03Merged) 10jenkins-bot: Fix $propertyLabels in SnakHtmlGenerator [extensions/Wikibase] - 10https://gerrit.wikimedia.org/r/124274 (owner: 10Aude) [21:23:01] DanielK_WMDE: Around maybe? [21:33:03] Dmcdevit: https://github.com/wikimediadc/nara-auth/pull/1 [21:33:35] aude: hey... got a second? [21:33:44] hoo: perhaps [21:34:03] aude: How should a maint. script best report faulty items? [21:34:20] Just dump them to stdout seems :/ [21:34:23] Also stderror [21:34:42] as we probably want to make a list of them so that the community can sort/ delete them [21:34:54] (https://bugzilla.wikimedia.org/show_bug.cgi?id=59870) [21:35:04] take a look at the dumpjson script [21:35:27] we had some feedback from ariel, so the way that works might be the right way [21:35:38] we could make a log, also [21:36:07] I guess there are around 30k items and we want to make a list of them for the WD community then [21:36:10] --logerrors 'blah.log' [21:36:25] agree [21:36:58] Ok... so you would use a plain text log and later on make a list out of that using sed or so?! [21:37:13] $msg = '[' . $errorCode . ']: ' . $explanation . ' (' . $msg . ')'; [21:37:26] that's what the dumpJson script logs AFAIS [21:37:41] i don't know a better way, but sure there could be something better [21:38:43] oh, yay wikimediadc github has a logo now ;) [21:42:40] guess I'm going to freeze that change for today and ask Daniel tomorrow, maybe he has a better idea :) [21:43:09] probably [21:43:59] they could be dumped in json format or something useful maybe or just a csv [21:44:20] what would be useful for the community? [21:44:25] well, it's probably just a list of ids [21:44:45] well someone needs to sort these (most can probably be deleted / merged) [21:44:59] csv and then we need to put the log somewhere [21:45:03] but I don't think we want to have these unfixable corrupt items around forever and ever [21:45:38] agree [21:45:45] we could make it log on terbium or so and then I can per post that on Wikidata or so (which is probably best for them to handle) [21:45:52] - per [21:45:58] sure [21:46:12] aude: " [21:46:12] Bug 53851 - Enhanced Recent Changes needs hook(s) for customised formatting, similar to OldChangesListRecentChangesLine hook (edit) " did you yet work on that? [21:46:36] a long time ago [21:46:36] I can remember having started that ages ago, but I then gave up because that thing was pretty wtf... :P [21:47:03] ok, will probably do that tomorrow until my head explodes :P [21:47:03] we need to see waht the flow devs have done (probably doesn't meet our needs) [21:47:19] then add what we need [21:47:59] Yep... that's probably going to be a though thing... even through we did slight refactoring the whole code is still pretty much hard to understand [21:50:06] it's at the group level that we'll want to add wikibase changes [21:50:21] then we need appropriate formatting [21:51:19] we also need help with https://bugzilla.wikimedia.org/show_bug.cgi?id=62779 [21:52:26] why do we need help with that one? I can't think of a reason off hand, but I also didn't yet had a deeper look etc. [21:52:42] Ehm, I still have this bug: https://bugzilla.wikimedia.org/show_bug.cgi?id=62868 [21:52:45] i didn't find a solution [21:52:58] aude: ^ [21:53:12] i only found it happens with pages in the namespace and not with main namespace wikisource pages [21:53:22] in author namespace [21:53:35] aude: ^ did we deploy the patch for the think sjoerddebruin mentioned? Don't think it's live yet [21:53:53] It was mentioned in the update of last week… :/ [21:53:54] sjoerddebruin: not deployed yet [21:53:56] That's weird... will also look at this this week [21:54:01] Hm, annoying. [21:54:16] should be on tuesday, assuming everything goes as planned [21:54:30] sjoerddebruin: Tuesday's the day ;) [21:54:41] meh, aude was faster... but didn't rime :D [21:54:42] Tuesday, patchday. [21:54:55] Also the death of XP on that day. :O [21:55:19] although test.wikidata etc. had to be reverted on thurday and friday because of unrelated reasons (localiation update) [21:55:27] Ah. [21:55:35] i assume wmf folks will figure that out and tuesday will be as planned [21:55:37] I thought it was weird hence the importance of the bug. [21:55:58] sjoerddebruin: it is weird bug [21:56:07] Well, I think we had the original patch deployed, that broke, we reverted the patch and deployed, then I patched it and we didn't deploy that [21:56:16] very weird thing indeed [21:58:41] Well, hoping for tuesday then. [22:19:50] (03PS2) 10Hoo man: Fix edit restriction handling [extensions/Wikibase] - 10https://gerrit.wikimedia.org/r/122124 [22:22:11] (03CR) 10Hoo man: "After some further digging around in core (and looking at the origins of the wbUserCanEdit global), I'm pretty sure that the whole code bl" [extensions/Wikibase] - 10https://gerrit.wikimedia.org/r/122124 (owner: 10Hoo man) [22:22:27] that makes the patch so much easier and nicer and what not [22:22:38] and I was already about to rebuild half of the Title class in there :D [22:24:20] looks much better but shall review / approve when more awake [22:24:27] heh, yes :) [22:24:39] maybe we can backport [22:24:45] (03CR) 10WikidataJenkins: [V: 04-1] "Build Failed" [extensions/Wikibase] - 10https://gerrit.wikimedia.org/r/122124 (owner: 10Hoo man) [22:24:46] So nice to just remove bloat... I like deleting unneeded cruft [22:24:58] yes! :) [22:25:27] what ... jenkins?! [22:26:03] (03PS3) 10Hoo man: Fix edit restriction handling [extensions/Wikibase] - 10https://gerrit.wikimedia.org/r/122124 [22:26:13] just rebased... let's hope it goes through this time [22:30:45] (03CR) 10WikidataJenkins: [V: 032] "Build Successful" [extensions/Wikibase] - 10https://gerrit.wikimedia.org/r/122124 (owner: 10Hoo man) [22:45:23] (03CR) 10Hoo man: [C: 032] Fix codestyle in ChangeOpsMerge [extensions/Wikibase] - 10https://gerrit.wikimedia.org/r/123862 (owner: 10Addshore) [22:45:41] (03Merged) 10jenkins-bot: Fix codestyle in ChangeOpsMerge [extensions/Wikibase] - 10https://gerrit.wikimedia.org/r/123862 (owner: 10Addshore) [22:52:47] (03CR) 10Hoo man: [C: 031] "Looks good, untested (also we should make use of the new stuff)" (032 comments) [extensions/Wikibase] - 10https://gerrit.wikimedia.org/r/123863 (owner: 10Aude)