[07:53:30] New patchset: Markus Kroetzsch; "Improved Time handling" [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/28666 [07:54:09] Change merged: Markus Kroetzsch; [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/28666 [08:07:14] New review: Markus Kroetzsch; "What is the status of this?" [mediawiki/extensions/SemanticMediaWiki] (master); V: 0 C: 0; - https://gerrit.wikimedia.org/r/23991 [08:42:03] Hey Guys, someone knows whether there is any way to use nested ask Queries? Means sth like {{#ask: {{#ask: [[SomePage]] | ?SomeThings }} | ?SomeOtherThings }} [08:42:29] I tried with an implementation as shown above but it seems like, the ask query is not able to query it's own results once more [08:43:13] * rohr slaps rohr around a bit with a large trout [08:46:57] rohr: yes there is [08:47:07] use extension Variables [08:47:36] {{#vardefine:subquery|{{#ask: [[SomePage]] | ?SomeThings }}}} [08:47:51] {{#ask: {{#var:subquery}} | ?SomeOtherThings }} [08:48:34] Thank you very much Saruman :) [09:03:04] rohr: you're welcome [09:10:51] New patchset: Markus Kroetzsch; "Implement consequences of new Container handling" [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/28671 [09:11:37] Change merged: Markus Kroetzsch; [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/28671 [11:32:44] New patchset: Markus Kroetzsch; "Check validity before accessing member object" [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/28675 [11:34:10] Change merged: Markus Kroetzsch; [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/28675 [16:25:34] New patchset: Jeroen De Dauw; "Fix tests: apparently a PHPUNit Exception is thrown under certain configs" [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/28684 [16:25:49] Change merged: Jeroen De Dauw; [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/28684 [16:31:43] New patchset: Jeroen De Dauw; "Update params of calender format" [mediawiki/extensions/SemanticResultFormats] (master) - https://gerrit.wikimedia.org/r/28685 [17:01:13] Howdy folks. [17:02:21] howdy [17:03:29] Any chance someone wouldn't mind helping me with an issue in selecting pages? I've been scratching my head about this one for a couple hours now. [17:03:46] sure, shoot [17:10:47] Sorry - got pulled away for a moment. [17:11:16] Okay - so essentially, I've got an #ask: where I'm trying to select by both a category and a property, but it appears that it's (mostly) ignoring my category and selecting any page by that property, regardless of category. [17:11:45] in this case: #ask: [[Author::Richard_Tamalavitch]] [[Category:Code_Library_CS_NPR]] [17:12:21] I have authors tagged in Category:Code_Library_CS_NPR and Category:Code_Library_M-AT pages [17:12:23] hmm it shouldn't ignore the category [17:12:30] Yeah, that's my thinking. [17:12:38] which version of SMW are you running [17:13:19] and is your wiki publicly accessible [17:13:40] Where can I find which version? And I'm afraid not - it's on a company intranet. [17:14:08] (I had to have the admins install the extension, so I'm not sure where to look for version info) [17:14:31] go to Special:Version [17:15:15] Version 1.7.1 [17:15:44] well you can't get more recent than that, stable-wise [17:15:50] Yeah. Hrm [17:15:56] So in this case: [17:15:59] one other explanation [17:16:25] mebby if you've changed the category assignment of the pages recently, then the results aren't properly cached yet [17:16:29] New patchset: Markus Kroetzsch; "Update Store3 layout for geo coordinates" [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/28688 [17:16:56] you could press refresh tab on the page containing the erraneous query [17:17:00] Change merged: Markus Kroetzsch; [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/28688 [17:17:02] that updates the results [17:17:14] I have the following in there as a quick test: {{#ask: [[Author::Richard_Tamalavitch]] [[Category:Code_Library_CS_NPR]]}} - this is displaying a comma delimited list of everything Richard is the author of, which are pages ONLY in the Category:Code_Library_M-AT [17:17:37] Yeah, I've refereshed everything, and those categories have also not changed at all recently. [17:18:07] however, if I change the category in the selection to something else entirely, something nonexistant, it gives me nothing [17:18:19] strange [17:18:41] lemme look in the docs for a moment [17:20:35] well this should work as intended [17:20:59] stupid test: could you try swap the category and author selection around? [17:21:06] First thing I tried :) [17:21:08] same results [17:21:22] heh, i'd've been surprised if it'd made a difference [17:21:27] nevertheless [17:21:41] this seems like a bug to me [17:23:06] My best guess is that it has something to do with either category names being similar or category name hierarchy [17:23:14] and you're sure that there are resulting pages that actually lack the Category:Code_Library_CS_NPR in the categories listbox at the bottom [17:23:18] ah, wait [17:23:22] Absolutely certain [17:23:28] do you use subcategories [17:23:28] Yes [17:23:47] then you're probably inferencing without knowing it [17:24:15] There are four Code Library categories: Code Library M-AT, Code Library FS, Code Library CS NPR, Code Library MAGIC NPR [17:24:29] and they're all subs of Category:Code Libraries [17:24:31] if a page is in cat Code_Library_M-AT, which is a subcategory of cat:Code_Library_CS_NPR, then the page is actually in cat:Code_Library_CS_NPR by inheritance [17:25:01] Yeah, shouldn't be the case - they're all four subs of one category, not each other [17:25:01] ow that shouldn't make a difference [17:25:25] So my other guess is that somehow, because of the similar names or something they're ending up selecting eachother's stuff. It's weird. [17:25:26] so if you change the query to Code Library FS, does that make a differnece [17:25:33] yeah it is weird [17:25:40] Nope, I can change the query to any of those four categories [17:26:02] only the M-AT category is on pages where that guy is the author property [17:26:04] can you make a bug report then, please? [17:26:08] I can try! [17:26:10] haha [17:26:20] I wish it was a public wiki so I could just post it as an example. [17:26:25] https://bugzilla.wikimedia.org/ [17:27:01] For the moment I've got to try some stuff to work around it - going to try making a new category for those pages just to use for the select to see if that helps. [17:27:04] and will do. [17:27:15] ok tnx [17:27:15] I'm just glad I'm not an idiot/going crazy :) [17:27:30] Many thanks, Saruman. [17:27:30] well that hasn't been ruled out yet... :-O [17:27:36] WE'LL SEE! [17:27:44] but then again, it hasn't for me either :-) [17:27:47] haha, indeed [17:39:35] Hah, crazy [17:39:48] My new category, Code Library Test [17:39:52] works just fine [17:40:01] it is also a sub of Coding Libraries [17:40:37] How very odd! [17:55:10] indeed [17:55:22] on the other hand, maybe you're onto something here [17:55:38] maybe the selection indeed is only on the first 12-odd letters [17:56:09] well it [17:56:12] 's all very confusing [18:01:32] Yeah, hrm [18:01:41] I just discovered that even just the following: [18:02:25] {{#ask: [[Category:Code_Library_CS_NPR]]}} is giving me everything from all four categories for some reason [18:03:00] can you look at the category's page and see if you haven't perchance created Code CAtegories as a subcat fo this one? [18:03:10] So it has nothing to do with combining the category and property conditions, it's just that this category (or any of the four) are returning results from anything within Category:Code Libraries it seems [18:03:23] good diagnostic find [18:03:31] I've looked, but I haven't seen anything to that effect [18:03:58] hrm [18:04:03] hrm hrm [18:04:12] can't explain this [18:05:41] AH [18:05:43] think I found it [18:05:55] I think it was a category issue [18:07:07] It looks like all four of those Code Library categories effectively have sub categories that are shared. [18:09:52] Saruman: Is there a way to select only what's immediately within a category, and not in a sub? [18:16:51] don't think there is [18:16:58] and that's logical [18:17:11] cat:man is a subcat of cat:human [18:17:25] *nod* at least it makes sense now, and is not a bug. I just didn't dig deep enough in the subs to realize what was going on [18:17:27] doesn't make much sense to ask for cat:human without asking for cat:man [18:17:37] good to hear you've found it [18:17:41] Aye [18:17:50] SMW sadly lacks much negotion possibilities [18:17:51] It's still a big mess. [18:18:10] well you probably need to look at the information model you're currently using [18:20:04] Because if I select Category:Code Library CS NPR it includes Category:DateTime which includes articles related to DateTime from all four code categories (and as such, they've listed it as a sub of each, even though that's misleading, as the subcat includes articles not about CS NPR) [18:20:34] So really, I need to convince them to let me un-sub each of those, and just make them all subs of Category:Code Libraries [18:21:43] I can't follow your explanation exactly, it's pretty domain specific [18:21:56] just remember that categories are interpreted as classes [18:22:15] so a member of a subcategory is always a member of every parent category as well [18:22:44] you can build your category trees accordingly [18:24:06] Yeah [18:58:22] I've convinced them to restructure, because it's silly the way it is. Thanks for talking me through it, Saruman - was very helpful to have someone to bounce things off of. [19:44:32] ok you're welcome [22:40:41] New patchset: Jeroen De Dauw; "Make use of nicer interface when available and route all set and get requests to the same methods" [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/28773 [22:52:43] New patchset: Jeroen De Dauw; "Updated Google Charts param defs" [mediawiki/extensions/SemanticResultFormats] (master) - https://gerrit.wikimedia.org/r/28775 [22:59:14] New patchset: Jeroen De Dauw; "Updated chart format param defs" [mediawiki/extensions/SemanticResultFormats] (master) - https://gerrit.wikimedia.org/r/28776 [23:04:35] New patchset: Jeroen De Dauw; "Make use of nicer interface when available and route all set and get requests to the same methods" [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/28773 [23:07:08] New review: Markus Kroetzsch; "Can be submitted when MW change https://gerrit.wikimedia.org/r/#/c/28773/ is getting merged." [mediawiki/extensions/SemanticMediaWiki] (master); V: 1 C: 2; - https://gerrit.wikimedia.org/r/28773 [23:10:30] New patchset: Jeroen De Dauw; "Updated process format param defs" [mediawiki/extensions/SemanticResultFormats] (master) - https://gerrit.wikimedia.org/r/28778 [23:14:41] New patchset: Jeroen De Dauw; "Updated slideshow format param defs" [mediawiki/extensions/SemanticResultFormats] (master) - https://gerrit.wikimedia.org/r/28779 [23:16:21] New patchset: Jeroen De Dauw; "Minor cleanup" [mediawiki/extensions/SemanticResultFormats] (master) - https://gerrit.wikimedia.org/r/28780 [23:29:17] New patchset: Jeroen De Dauw; "Updated deprecated parameter definitions" [mediawiki/extensions/SemanticResultFormats] (master) - https://gerrit.wikimedia.org/r/28785