[05:49:50] Hi, can someone give me an example of how to do mathematical calculation in a semantic query? [06:37:56] (CR) Jatin: "Some inline replies for Foxtrott." (9 comments) [extensions/SemanticForms] - https://gerrit.wikimedia.org/r/136009 (owner: Jatin) [08:10:49] Hi, I wish to know how can I perform mathematical operation between two semantic properties which are numeric and write a query that returns this. [08:11:46] FoxT: Stephan, any suggestions? [08:17:31] apexkid1: Not sure I understand the question. Math ops can be done using #expr from the ParserFunctions extension [08:23:14] FoxT: Its like, I have two semantic queries #ask returning integer values, and the value which i want to display is the sum of the two (or any other mathematical operation) [08:23:20] I will look into #expr [10:05:42] FoxT: Your suggestion worked. I am using the parser function #expr with #ask. When i used something like this {{#expr: #ask + 1 }} it works, but when I use {{#expr: #ask + #ask}}, it gives error. Both #ask return number. Any suggestions? [10:38:54] #tcp [10:41:36] ? [10:41:55] apexkid1: nothing [10:42:23] apexkid1: you got your problem solved? [10:42:46] jmehta: not yet [10:49:09] jmehta: Solved. Its a bug in parser func + smw integration i suppose. Generates error on template page, works fine elsewhere [13:01:14] (Abandoned) Mwjames: SMWQuery toArray() add query sorting information [extensions/SemanticMediaWiki] - https://gerrit.wikimedia.org/r/52422 (owner: Mwjames) [13:01:31] (Abandoned) Mwjames: SMW\Serializer display appropriate output value for formatted printout [extensions/SemanticMediaWiki] - https://gerrit.wikimedia.org/r/62557 (owner: Mwjames) [13:02:14] (Abandoned) Mwjames: SMW\JsonParameterFormatter to be used in #set and #subobject [extensions/SemanticMediaWiki] - https://gerrit.wikimedia.org/r/68950 (owner: Mwjames) [13:02:25] (Abandoned) Mwjames: \SMW\PropertyPageIdMapper [extensions/SemanticMediaWiki] - https://gerrit.wikimedia.org/r/75825 (owner: Mwjames) [13:02:41] (Abandoned) Mwjames: [WIP] [DNM] SMW\MongoStore, using MongoDB as Sementic Mediawiki storage backend [extensions/SemanticMediaWiki] - https://gerrit.wikimedia.org/r/88534 (owner: Mwjames) [15:10:34] https://github.com/SemanticMediaWiki/SemanticMediaWiki/issues/212 [15:11:39] Is that the only quasi-breaking issue with 1.23 folks know about? [17:04:36] (PS7) Jatin: Switching combobox to using Select2 [extensions/SemanticForms] - https://gerrit.wikimedia.org/r/136009 [17:11:14] FoxT: ^^ [17:13:20] jmehta: Will look at it later. (Need to get home first.) [17:14:58] FoxT: Ok. No problem :) [19:26:06] (PS2) Nikerabbit: Fix overeager section eater [extensions/SemanticForms] - https://gerrit.wikimedia.org/r/136908 [19:26:08] (PS1) Nikerabbit: Optional coding style cleanups [extensions/SemanticForms] - https://gerrit.wikimedia.org/r/137092 [19:26:16] (CR) jenkins-bot: [V: -1] Fix overeager section eater [extensions/SemanticForms] - https://gerrit.wikimedia.org/r/136908 (owner: Nikerabbit) [19:26:18] (CR) jenkins-bot: [V: -1] Optional coding style cleanups [extensions/SemanticForms] - https://gerrit.wikimedia.org/r/137092 (owner: Nikerabbit) [19:30:48] (CR) Foxtrott: "One more bug, I think. Else I really like it." (1 comment) [extensions/SemanticForms] - https://gerrit.wikimedia.org/r/136009 (owner: Jatin) [19:43:47] (CR) Foxtrott: [C: -1] "There are functional changes in here, not just coding style." (3 comments) [extensions/SemanticForms] - https://gerrit.wikimedia.org/r/137092 (owner: Nikerabbit) [19:48:54] (CR) Nikerabbit: Optional coding style cleanups (3 comments) [extensions/SemanticForms] - https://gerrit.wikimedia.org/r/137092 (owner: Nikerabbit) [19:49:43] (PS2) Nikerabbit: Optional coding style cleanups [extensions/SemanticForms] - https://gerrit.wikimedia.org/r/137092 [19:49:47] (CR) jenkins-bot: [V: -1] Optional coding style cleanups [extensions/SemanticForms] - https://gerrit.wikimedia.org/r/137092 (owner: Nikerabbit) [19:57:06] (PS8) Jatin: Switching combobox to using Select2 [extensions/SemanticForms] - https://gerrit.wikimedia.org/r/136009 [19:57:39] (CR) Foxtrott: [C: 2] Optional coding style cleanups [extensions/SemanticForms] - https://gerrit.wikimedia.org/r/137092 (owner: Nikerabbit) [19:58:08] (CR) Foxtrott: [V: 2] Optional coding style cleanups [extensions/SemanticForms] - https://gerrit.wikimedia.org/r/137092 (owner: Nikerabbit) [19:59:37] FoxT: ty, but it wont merge before the dependency is merged unless I remove the dependecy [20:05:55] Nikerabbit: I'd rather leave Ib24f1f86c8 (the dependancy) to Yaron. [20:06:26] What's this? [20:06:46] Aren't these two patches basically independent of one another? [20:06:59] Yaron: In principle yes. [20:07:33] Oh, Nikerabbit marked one as dependent on the other. [20:07:50] That's fine, though... FoxT - do you think both can be merged? [20:08:24] Yaron: I don't know about Ib24f1f86c8. The other is fine. [20:08:58] Well, that's the one I don't know about either. :) [20:09:17] I can rebase the other one to not depend on the other one [20:10:02] (PS3) Nikerabbit: Coding style cleanups [extensions/SemanticForms] - https://gerrit.wikimedia.org/r/137092 [20:10:15] Nikerabbit: no need... unless that's what you just did. [20:10:30] yep, I did it [20:10:37] (CR) Foxtrott: [C: 2 V: 2] Coding style cleanups [extensions/SemanticForms] - https://gerrit.wikimedia.org/r/137092 (owner: Nikerabbit) [20:12:29] Nikerabbit: cool, thanks. And thanks for both of these patches - anything that can make SF_FormPrinter.php simpler is a big benefit. [20:13:28] Nikerabbit: I do have one question on the "coding style cleanups" patch - what's the benefit of "$x === 'abc'" vs. "$x == 'abc'"? [20:14:07] I know it matters for stuff like comparing to true, null, etc. - but for string comparisons, I don't see the difference. [20:14:59] Yaron: there is an example in second last bullet here https://www.mediawiki.org/wiki/Manual:Coding_conventions/PHP#Equality_operators [20:15:16] (That's all I know. :) ) [20:15:43] Yaron: no functional difference in this case, but leaves no room for guessing [20:15:52] Alright, fine. [20:16:39] If words like "restricted" and "mandatory" also represented some numeric value, there might be a stronger case there. :) [20:16:47] Yaron: if I see ===, I can skip thinking of http://us3.php.net/manual/en/types.comparisons.php [20:16:57] Yes, that's fair. [20:18:27] I still remember when someone (not any of you) went into the SF code and changed a bunch of "== '' " to "=== '' ", and a lot of functionality got messed up... [20:18:39] That was a whole other story, though. [20:19:20] Nemo_bis, Nikerabbit: thanks for the info. [20:20:16] Yaron: yeah one cannot just blindly replace them (another reason to avoid them in first place :) [20:20:31] I suppose that's fair. [20:33:57] (PS1) Yaron Koren: Version 0.8 [extensions/SemanticInternalObjects] - https://gerrit.wikimedia.org/r/137162 [20:38:47] (CR) Yaron Koren: [C: 2 V: 1] Version 0.8 [extensions/SemanticInternalObjects] - https://gerrit.wikimedia.org/r/137162 (owner: Yaron Koren) [20:39:14] (Merged) jenkins-bot: Version 0.8 [extensions/SemanticInternalObjects] - https://gerrit.wikimedia.org/r/137162 (owner: Yaron Koren)