[02:20:03] (PS1) Mwjames: Simplify subobject access + add some tests [extensions/SemanticMediaWiki] - https://gerrit.wikimedia.org/r/91816 [02:24:17] (PS2) Mwjames: Simplify subobject access + add some tests [extensions/SemanticMediaWiki] - https://gerrit.wikimedia.org/r/91816 [17:43:13] (PS1) Yaron Koren: Template generated by Special:CreateClass can now use #set_internal [extensions/SemanticForms] - https://gerrit.wikimedia.org/r/91895 [17:46:25] how do i get a single value of a property that has multiple values on a single page? [17:49:27] kermit: in theory, adding "|+limit=1" after the "?property" part of the query will do it, but I'm told that it doesn't work. [17:49:43] It might work in SMW versions or something, though. [17:50:25] i meant, a specific value, not just one at random, sorry [17:50:32] (certain SMW versions) [17:50:40] What do you mean by that? [17:51:27] i want the value of field 2 of a record type property where field 1 equals x [17:51:40] i think i can do it with a chain of template output formats.. [17:51:56] Oh, man, a Record type property? [17:52:09] I wasn't even sure that that was still supported. [17:52:16] yeah, maybe i shouldnt be using those.. [17:52:24] idk how else to do tuples [17:52:43] Use #subobject, or #set_internal from the Semantic Internal Objects extension. [17:53:21] ok, i'll play with those for a while, thanks [17:55:34] (CR) Yaron Koren: [C: 2 V: 1] Template generated by Special:CreateClass can now use #set_internal [extensions/SemanticForms] - https://gerrit.wikimedia.org/r/91895 (owner: Yaron Koren) [17:55:37] (Merged) jenkins-bot: Template generated by Special:CreateClass can now use #set_internal [extensions/SemanticForms] - https://gerrit.wikimedia.org/r/91895 (owner: Yaron Koren) [19:05:30] is there already a duration quantity type? mine's half made, but idk how to make it say weeks/days/hours/minutes depend on the range [19:08:27] Yaron: yeah internal objects is MUCH easier, thanks [19:09:14] kermit: Cool, good to hear! [21:10:41] do inverse queries work on inline objects? [21:10:54] er, internal objects [21:12:16] if so, im missing somethnig [21:17:14] kermit: are you still there? [21:17:24] Oh, it's only been 5 minutes. [21:17:45] Inverse queries should work fine, although you might just be calling the query wrong... [21:18:35] Please note that, with #set_internal, the first property points *from* the object *to* the wiki page it's on. [21:37:32] (CR) Jeroen De Dauw: [C: 2] Simplify subobject access + add some tests [extensions/SemanticMediaWiki] - https://gerrit.wikimedia.org/r/91816 (owner: Mwjames) [21:39:26] (CR) Jeroen De Dauw: "> Replace array_key_exists with isset because of performance" [extensions/SemanticMediaWiki] - https://gerrit.wikimedia.org/r/91566 (owner: Mwjames) [21:44:41] oh i needed to match to ~page#* [22:08:46] (CR) Jeroen De Dauw: "(2 comments)" [extensions/SemanticMediaWiki] - https://gerrit.wikimedia.org/r/91566 (owner: Mwjames) [22:17:48] (CR) Mwjames: "(1 comment)" [extensions/SemanticMediaWiki] - https://gerrit.wikimedia.org/r/91566 (owner: Mwjames) [22:34:26] (CR) Mwjames: "Unless we check against NULL, array_key_exists() would be more appropriate but it ins't the case. If you still think array_key_exists() sh" [extensions/SemanticMediaWiki] - https://gerrit.wikimedia.org/r/91566 (owner: Mwjames) [23:48:54] (PS4) Mwjames: \SMW\RefreshJob [extensions/SemanticMediaWiki] - https://gerrit.wikimedia.org/r/91566