[13:09:15] Hello. :) I'm having a little problem with Semantic Forms. After adding SMW attributes for all fields in my form, the text inputs suddenly have mutliple rows and allow linebreaks. [13:10:43] Does anybody know how to force the form input to allow only one line? I'm not even using textarea as type.. Currently it looks like this: {{{field|Dokumentenname|type=text}}} [13:24:17] Is anybody here? [13:35:22] yes [15:33:31] (Abandoned) Mwjames: \SMW\Maintenance\RebuildConceptCache (rebuildConceptCache.php to replace SMW_conceptCache.php) [extensions/SemanticMediaWiki] - https://gerrit.wikimedia.org/r/77493 (owner: Mwjames) [15:40:40] [travis-ci] SemanticMediaWiki/SemanticMediaWiki#945 (maintenance-concept - 96c8671 : mwjames): The build has errored. [15:40:40] [travis-ci] Change view : https://github.com/SemanticMediaWiki/SemanticMediaWiki/compare/63b80c83ceac...96c8671920c8 [15:40:40] [travis-ci] Build details : http://travis-ci.org/SemanticMediaWiki/SemanticMediaWiki/builds/18585657 [16:23:09] (PS1) Yaron Koren: Restructured (and somewhat improved) template creation [extensions/SemanticForms] - https://gerrit.wikimedia.org/r/112472 [16:29:01] (CR) Yaron Koren: [C: 2 V: 1] Restructured (and somewhat improved) template creation [extensions/SemanticForms] - https://gerrit.wikimedia.org/r/112472 (owner: Yaron Koren) [16:29:03] (Merged) jenkins-bot: Restructured (and somewhat improved) template creation [extensions/SemanticForms] - https://gerrit.wikimedia.org/r/112472 (owner: Yaron Koren) [19:44:06] I have a Page property, and I'd like to produce a tree/graph of pages with that property that link to each other. Is there a way to do that? [20:00:49] sparr, hmmmm [20:01:11] sparr: I am guessing not by default. [20:01:31] I'm thinking of a recursive query template [20:01:37] but I recall MW not liking template recursion [20:02:42] sparr: well first I would think of a way to query that in a regular table [20:03:11] sparr: then, you could work on a result format to display it in a more funky way [20:03:18] d3.js is good for trees and graphs [20:03:43] pretty easy to get a regular table [20:03:43] page | parent page [20:04:01] or page | child page [20:05:33] do you have a working query? i'd start there. [20:19:45] (PS1) Yaron Koren: Restored accidentally-reverted earlier change [extensions/SemanticForms] - https://gerrit.wikimedia.org/r/112505 [20:20:06] sparr: you can do that with the "outline" format in Semantic Result Formats. [20:20:32] (CR) Yaron Koren: [C: 2 V: 1] Restored accidentally-reverted earlier change [extensions/SemanticForms] - https://gerrit.wikimedia.org/r/112505 (owner: Yaron Koren) [20:20:34] (Merged) jenkins-bot: Restored accidentally-reverted earlier change [extensions/SemanticForms] - https://gerrit.wikimedia.org/r/112505 (owner: Yaron Koren) [20:20:52] Yaron: I don't think that's quite what I want [20:21:35] Maybe the "oltree" format, then? [20:22:14] oh [20:22:15] that looks good [20:22:26] just "tree", actually [20:22:41] guess I need to install Semantic Result Formats [20:26:08] Oh yeah... "oltree" is like "tree", but with numbered lists. [20:26:29] I guess tree/ultree usually is preferable. [20:41:26] once again running into a problem where I need to specify quantities [20:41:53] if I put the tree-defining property in a subobject, so that it can have a quantity, then that query gets much more complex, maybe impossible [20:59:29] It shouldn't... [20:59:43] Well, maybe there's something I'm missing. [21:00:14] ok, so, back to the recipe analogy [21:01:21] I have a page for each ingredient/dish, and a property "used to make" that links to another ingredient/dish [21:01:27] water and rice makes cooked rice [21:01:32] cooked rice and fish make sushi [21:02:34] straightforward so far, I can use a tree format with "parent=used to make" [21:03:26] and if one ingredient is used to make two different dishes, that works fine, I can just assign that property twice. there will be duplication of sub-trees in my tree output, but that's fine with me for now [21:04:13] but, and this is where I get stuck every time I try to do something complex, if I want to specify how many/much of each ingredient is used in each recipe, then I'm looking down a deep rabit hole :( [21:05:41] on the Fish page I have [[used to make::sushi]] [[used to make::fish soup]], but how can I indicate that it takes one fish to make sushi and two fish to make fish soup? [21:07:25] my only idea so far has been to put two subobjects on the fish page, each with a quantity and dish property [21:07:43] sparr: well, it's not that hard to encode, but you couldn't use "tree" to display additional info like quantity. [21:08:11] I'm ok with the quantity not being on the tree (for now) [21:08:20] but I can't think of a way to encode the quantity and have the tree still work at all [21:09:55] You just need "used to make=sushi" in the #subobject call. [21:23:38] then the subobject would show up in my tree [21:23:47] not its parent object (Fish) [21:28:17] sparr: that's fine, though; it'll look the same. [21:40:23] oh [21:40:24] hmm [21:40:35] I shall investigate. Thank you. [21:41:20] http://olywiki.asciiking.com/wiki/index.php/Sandbox [21:41:30] top table is some experiments with template formats and nested queries [21:41:43] bottom part will be a tree query once I get semantic result formats installed [21:41:46] hopefully [22:42:58] ok, I've got SRF enabled [22:43:05] and now that bottom query produces no output :( [22:46:48] added a test query below it with a table output [22:46:52] I think the problem is the subobjects [22:49:03] or maybe I'm just using the tree format wrong :( [22:49:13] I tried adding "used to make" as a property of the fish page directly [22:49:17] and it still won't appear in the tree