[01:55:46] howdy [03:04:40] howdy [05:00:08] Anyone up for a question about a Semantic Internal Objects query? [05:02:22] I want to query for a property for all parent objects that have an internal object that has a property of a particular value [05:05:03] Person is the parent. Role is the child [05:05:15] so if I want to query for all Persons who have a role of developer. [05:05:51] I can do that. Then I need a property from the Person back, not properties from the role. [05:15:13] I think I need to learn about inverse properties [07:40:01] New review: Markus Kroetzsch; "Ah, now I understand what the problem was! Good catch. Nischay, could you amend the patch to do this..." [mediawiki/extensions/SemanticMediaWiki] (master); V: 0 C: -1; - https://gerrit.wikimedia.org/r/32403 [07:45:02] New review: Markus Kroetzsch; "Forget my last comment: my fixes for UnusedProperties are not merged yet, so this will not work well..." [mediawiki/extensions/SemanticMediaWiki] (master); V: 0 C: 2; - https://gerrit.wikimedia.org/r/32403 [07:49:22] New review: Markus Kroetzsch; "Sorry, I changed my mind again. You found the cause of the problem, but I now think it needs to be f..." [mediawiki/extensions/SemanticMediaWiki] (master); V: 0 C: -2; - https://gerrit.wikimedia.org/r/32403 [07:56:51] New patchset: Markus Kroetzsch; "Fix Bug 38811" [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/32206 [08:00:03] New review: Markus Kroetzsch; "Ok, I fixed the problem now in https://gerrit.wikimedia.org/r/#/c/32206/2 Please review. The key for..." [mediawiki/extensions/SemanticMediaWiki] (master); V: 0 C: -2; - https://gerrit.wikimedia.org/r/32403 [08:07:13] New review: Nischayn22; "Its good that this patch was helpful, but is this feature of including the resources using one call ..." [mediawiki/extensions/SemanticMediaWiki] (master); V: 0 C: 0; - https://gerrit.wikimedia.org/r/32403 [08:07:55] Change abandoned: Nischayn22; "https://gerrit.wikimedia.org/r/#/c/32206/2 is an alternate for this" [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/32403 [08:18:15] New review: Nischayn22; "UnusedProperties still doesn't highlight special properties for me" [mediawiki/extensions/SemanticMediaWiki] (master); V: 0 C: -1; - https://gerrit.wikimedia.org/r/32206 [09:39:38] New review: Markus Kroetzsch; "Nischay, Special:UnusedProperties highlights special properties for me and shows a tooltip. Please s..." [mediawiki/extensions/SemanticMediaWiki] (master); V: 0 C: 0; - https://gerrit.wikimedia.org/r/32206 [09:52:16] New review: Markus Kroetzsch; "Nischay, the mechanism for requiring output resources in SMW is only documented in source code. This..." [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/32403 [10:24:46] New review: Nischayn22; "Markus, you are right. I have two properties with names similar to special properties." [mediawiki/extensions/SemanticMediaWiki] (master); V: 0 C: 0; - https://gerrit.wikimedia.org/r/32206 [10:29:11] New patchset: Nischayn22; "Making saving message Strong" [mediawiki/extensions/SemanticWatchlist] (master) - https://gerrit.wikimedia.org/r/32512 [10:30:10] Change merged: Nischayn22; [mediawiki/extensions/SemanticWatchlist] (master) - https://gerrit.wikimedia.org/r/32512 [11:21:05] Change merged: Markus Kroetzsch; [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/32201 [11:24:27] Change merged: Jeroen De Dauw; [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/32464 [11:26:19] Change merged: Jeroen De Dauw; [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/32389 [11:33:22] New review: Jeroen De Dauw; "Seems like "delimiter" or "separator" would be a better name then "list"" [mediawiki/extensions/SemanticMediaWiki] (1.9.x); V: 0 C: 0; - https://gerrit.wikimedia.org/r/32347 [11:50:18] New patchset: Markus Kroetzsch; "Better fix for Bug 39392" [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/32555 [14:29:02] New patchset: Markus Kroetzsch; "Rewritten SQLStore3 writing methods" [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/32397 [15:42:05] New review: Henning Snater; "Saves some bytes without any visible difference." [mediawiki/extensions/SemanticMediaWiki] (master) C: 1; - https://gerrit.wikimedia.org/r/31636 [16:09:21] New patchset: Mwjames; "Merge branch 'master' into 1.9.x" [mediawiki/extensions/SemanticMediaWiki] (1.9.x) - https://gerrit.wikimedia.org/r/32570 [16:09:47] Change merged: Mwjames; [mediawiki/extensions/SemanticMediaWiki] (1.9.x) - https://gerrit.wikimedia.org/r/32570 [16:11:50] New patchset: Mwjames; "SMW 1.9: Create SMW\Highlighter class" [mediawiki/extensions/SemanticMediaWiki] (1.9.x) - https://gerrit.wikimedia.org/r/32012 [16:29:27] New review: Mwjames; "Works as before this time just with a cleaner interface." [mediawiki/extensions/SemanticMediaWiki] (1.9.x); V: 1 C: 0; - https://gerrit.wikimedia.org/r/32012 [16:37:07] New review: Jeroen De Dauw; "Seems like "delimiter" or "separator" would be a better name then "list"" [mediawiki/extensions/SemanticMediaWiki] (1.9.x); V: 0 C: 0; - https://gerrit.wikimedia.org/r/32347 [16:40:52] New review: Mwjames; "Well, I really don't mind the name, so whatever works is fine with me since the code is flexible eno..." [mediawiki/extensions/SemanticMediaWiki] (1.9.x); V: 1 C: 0; - https://gerrit.wikimedia.org/r/32347 [17:14:31] New patchset: Mwjames; "SMW 1.9/(Bug 34782) Add note to #info parser function" [mediawiki/extensions/SemanticMediaWiki] (1.9.x) - https://gerrit.wikimedia.org/r/32578 [17:29:04] Yaron: in the house? [17:29:15] Hi, yes. [17:29:27] I should pull out the !ask... [17:29:29] !ask [17:29:54] Oh well - the robot's not working today, I guess. [17:29:58] !hello [17:41:45] Yaron: hiya, sorry, got distracted. [17:42:00] Yaron: I have found several bugs in Data Transfer that I can demo for you [17:42:09] Alright. [17:42:21] Yaron: also found a bug in semantic forms [17:42:28] getting links [17:42:54] Yaron: http://wiki.zenoss.org/Special:ViewXML?title=Special%3AViewXML&namespaces%5B500%5D=on&simplified_format=on [17:43:06] first bug is that simplified format XML can output invalid XML [17:43:37] Alright. [17:44:24] let me get another link [17:44:37] Yeah, there's definitely something strange going on with the parsing there. [17:44:57] also, regular format can also output invalid XML: http://wiki.zenoss.org/Special:ViewXML?title=Special%3AViewXML&namespaces%5B500%5D=on [17:46:33] That actually seems like the same bug. [17:47:39] ok [17:48:02] It looks like stuff like this is messing up the Data Transfer parser: "{{ZenPackDevelopmentInstallationCli|github_url={{#show: {{FULLPAGENAME}} | ?Source URI}}|...". [17:48:27] yep [17:48:30] DT isn't expecting that kind of complex stuff. [17:49:13] yep, someone added that and that's when it seemed to die. [17:49:14] Why are you calling stuff like that, anyway? Why not have the template take care of all the complex syntax? [17:49:26] Oh, I see - a user added that. [17:49:26] someone added it. [17:49:28] yep [17:49:48] the XML feeds our build system so I need it to work reliably. [17:50:06] I am wondering if I can write an #ask that will provide the data I need in an XML or similar format. [17:50:11] as a workaround. [17:50:26] can #ask output as XML? [17:50:42] Sure - there are the "csv" and "json" formats. Not XML, though. [17:50:49] ok [17:51:06] next bug I found was with datepicker in semantic forms [17:51:15] but I think that may not be yours? But another extension? [17:51:40] the second datepicker field in a multi-field entry does not render via jquery. Little date icon missing and no dropdown. [17:51:51] Yeah, it's part of SFI, written by Ftrott. [17:52:14] urg, now it's magically working. [17:52:23] it doesn't work under certain circumstances [17:52:28] let me see if I can get it to reproduce [17:52:44] let me just show it to you so you are aware: [17:52:48] http://www.funtoo.org/index.php?title=User:Drobbins&action=formedit [17:53:13] if you add a new role to this page, you'll see "End date" is missing jquery datepicker goodness [17:53:19] but it works for existing entries [17:53:31] just not newly-created ones via "add role" [17:53:38] (I am using Chrome over here) [17:54:00] Hopefully Ftroot is reading this, or will read it at some point. [17:54:07] Ftrott: pingzor [17:54:18] Ftrott, that is. Otherwise, I'd send him an email. [17:54:32] ok, will do [17:54:34] For the DT issue - for now, I'd say the easiest solution is to tell the user to cut it out. :) [17:54:45] will do that as well. [17:54:52] and I have a query question. [17:54:58] and then I should be good for today [17:55:11] on funtoo.org I have a Person template that gets expanded on User pages. [17:55:26] as you saw, I have Roles for each person. Roles are using semantic internal objects. [17:55:34] I want to create a map of all people who are in a particular role. [17:55:51] without the semantic internal objects (multi-role support), I would be able to do this easily [17:56:09] can't figure out how to do it with semantic internal objects, googled for SIO example queries, couldn't find anything useful. [17:56:29] don't know if I can exploit inverse properties or property chains to do this. [17:56:50] the Geographic location semantic data is stored on the user page, which is what I want to pass to semantic maps [17:57:01] but I want to select based on criteria in the role SIO [17:57:49] #ask [[-Role of::+]] returns all users with roles [17:58:24] #ask [[Role type::Developer]] |?Role of }} returns all users in a Developer role [17:58:42] but I also want Geoloc from the User page returned, so I can map it [18:00:50] Yaron: really want to figure this one out. Seems fairly basic. [18:02:20] but it looks like I can't use prop chains in output fields [18:02:23] Ah - that's kind of a tricky one. This is an issue caused by the lack of support for "?property A.property B" in queries, right? [18:02:25] New patchset: Markus Kroetzsch; "Store3: tablenames, usage count init, style" [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/32583 [18:02:29] Right. [18:02:53] Yep. otherwise |?Role of.Geoloc would give it to me [18:02:57] I think [18:03:05] which would be AWESOME [18:03:57] don't know if there is a workaround or if I am going beyond the limits of SMW. Doesn't seem overly complex, just not aware of a good way to get it done. [18:04:53] There's a hack that can be done, of having that multiple-instance template store that same data, using something like "[[Geoloc of person::{{#show:{{PAGENAME}}|?Geoloc}}]]". [18:05:33] The problem is, a new person page needs to be saved twice, for it to work. [18:05:42] Yaron: any future possibility of supporting prop chains on property output? [18:06:00] Not my decision. [18:06:04] yeah, that's not going to be too wonderful. [18:06:12] figured you may have some insights there [18:06:19] (on feature support) [18:06:34] Feel free to write the semediawiki-devel mailing list about it. [18:06:43] OK [18:06:44] I too think it would be a great addition. [18:07:18] Actually, semediawiki-user is probably the right choice for that one. [18:07:25] for now, is there a cleaner way to do this? [18:07:33] maybe with subobjects? [18:07:41] seems like such a common use case. [18:07:47] I will subscribe and post [18:13:09] Yaron: drobbins: I think I fixed the datepicker bug yesterday. Although, I have to say if it is the bug fixed yesterday, then it is an SF bug. :P [18:13:30] Oh! [18:13:34] https://gerrit.wikimedia.org/r/#/c/32409/ [18:13:40] Ftrott: what's an SF bug? [18:13:56] drobbins: the datepicker thing [18:14:49] SF = ? [18:15:00] Ftrott: I didn't see this before; I'm looking at it now. [18:15:08] Cool [18:15:51] Basically the whole registration mechanism for validation and initialization of inputs was borked [18:16:34] Which probably makes it 'my' bug again ;-) [18:17:52] Ftrott: well, it was always kind of in a state of flux... [18:18:03] Is it now fully working, as far as you know? [18:18:11] drobbins: SF = Semantic Forms. [18:18:16] Sure. until the next bug is found :) [18:18:30] No really, I think it should work much better now [18:18:56] Change merged: Yaron Koren; [mediawiki/extensions/SemanticForms] (master) - https://gerrit.wikimedia.org/r/32409 [18:19:21] Great. [18:22:06] so is this fixed in Git now, I can pull in my SF repo and grab the fix? [18:22:11] (the datepicker thing) [18:23:07] drobbins: Yaron just merged it, so you can just do a git pull on SF [18:23:15] excellent, thanks [18:23:23] let's see if it works, I can test it now [18:25:12] Ftrott: updated git, tried in a Chrome incognito window (to ensure I had fresh stuff), and I am still seeing the problem here. [18:25:57] drobbins: I'll have a look. [18:26:28] Yaron: posted to the -user list [18:26:45] Nice. [18:28:16] looks like the list is moderated? Or just takes a bit to update [18:28:26] I'm subscribed [18:45:39] so .. I'm wondering if/how it's possible to have a semantic form that prepares a basic 'template' for the page created (headers/sections and such) [18:45:53] basic text on the page basically (instead of an empty field like usual) [18:46:11] New patchset: Foxtrott; "bugfix: JS crash when initializing muliple template input" [mediawiki/extensions/SemanticForms] (master) - https://gerrit.wikimedia.org/r/32587 [18:47:44] drobbins: Could you try https://gerrit.wikimedia.org/r/#/c/32587/ ? [18:48:52] dreamer: SF will only create a list of template calls, possibly followed by some free text. [18:49:57] well, I'd like to have the free text field filled in with some basic stuff already [18:53:29] It should be possible to give it some default text. See http://www.mediawiki.org/wiki/Extension:Semantic_Forms/Defining_forms#The_free_text_input [18:58:08] hmmm, lets see [18:58:21] preload=page title << nice [18:58:28] we already have a template-page, could start with that [19:03:01] * dreamer play around a bit [19:11:10] Ftrott: back [19:11:35] trying new patch [19:12:38] Ftrott: that doesn't seem to be in master where I'm pulling from [19:13:02] drobbins: no, you'll have to pull the patch [19:13:23] is it in a separate branch? [19:13:31] or different repo? [19:13:59] try this command: git pull https://gerrit.wikimedia.org/r/mediawiki/extensions/SemanticForms refs/changes/87/32587/1 [19:15:07] worked [19:15:32] but explain to me, was it not merged into master? or is /r/ different from /r/p/ ? [19:15:35] testing now [19:15:52] Ftrott: that fixed it [19:16:18] cool. the workflow is, that first a patch is submitted,which is then reviewed and only then merged [19:17:29] ok, haven't done that before. [19:24:14] New review: Foxtrott; "Confirmed to be working by bug reporter." [mediawiki/extensions/SemanticForms] (master); V: 1 C: 2; - https://gerrit.wikimedia.org/r/32587 [19:24:14] Change merged: Foxtrott; [mediawiki/extensions/SemanticForms] (master) - https://gerrit.wikimedia.org/r/32587 [20:47:34] hmm, on a semantic query, I want to strip a prefix I have for the pages in this category [20:47:49] so the page-names are Prefix/Pagename and I want the result to just say Pagename [20:48:16] can/how I do this? [20:57:57] dreamer: You could store the Pagename in a property. Or you could use http://www.mediawiki.org/wiki/Help:Extension:ParserFunctions#.23titleparts [21:15:07] Ftrott: nice [21:15:31] can that be used in a template? [21:15:40] for a result-table [21:20:08] dreamer: Yes. You will have to use format=template [21:21:09] yeah, ok. I'm going to tweak it [21:23:45] New patchset: Rotsee; "Added message documentation" [mediawiki/extensions/SemanticExtraSpecialProperties] (master) - https://gerrit.wikimedia.org/r/32602 [21:31:21] wondering why \n is not recognized in #arraymap on the following page: http://wiki.zenoss.org/index.php?title=Template:ZenPackEggInstallationCli&action=edit [21:33:11] Yaron: any ideas on this one? [21:34:02] drobbins - you probably need \n\n . [21:34:11] A single newline gets ignored by the wikitext parser. [21:34:19] tried it. It renders inside the
 as "\n" or "\n\n"
[21:34:35] 	 maybe an issue due to {{#tag}}
[21:34:36] 	 ?
[21:34:42] 	 Oh, I get it.
[21:35:20] 	 Try (an actual newline).
[21:35:25] 	 I don't know if that'll work.
[21:37:08] 	 the nowiki part appears to work
[21:37:22] 	 now I need to try to fix something else :)
[21:39:04] 	 somehow it's not getting rid of the comma delimiter when used in this way
[21:39:22] 	 looks like stuff is blowing up and conflicting with one another
[21:40:28] 	 strange, but on the first line, my  extension is working, but on the second line, it fails.
[21:42:09] 	 if you search this page for "zenhub", you'll see what it's doing: http://wiki.zenoss.org/ZenPack:F5_BIG-IP
[22:03:15] 	 Ftrott: what do you think, can I get the part after the prefix like this? -> {{#titleparts: {{{1}}} | |-1}} (instead of {{{1}}} )
[22:05:25] 	 dreamer: Depends on what you want,. If you have pages of the form A/B/C and want C, then the above should work
[22:06:09] 	 (works of course also for A/B, giving B)
[22:18:14] 	 I have the 2nd
[22:18:21] 	 but I'm not getting a result atm
[22:26:53] 	 hmm, not getting a result _at all_ atm .. hmm
[22:49:08] 	 New review: Jeroen De Dauw; "Awesome! :)" [mediawiki/extensions/SemanticMediaWiki] (1.9.x); V: 0 C: 2;  - https://gerrit.wikimedia.org/r/32012
[22:52:07] 	 dreamer: Have you installed the ParserFunctions extension?
[23:18:52] 	 Yaron: for the View XML stuff, any idea why I am not getting XML? I cleaned up the prior mess to avoid issues
[23:19:39] 	 Yaron: see http://wiki.zenoss.org/Special:ViewXML?title=Special%3AViewXML&namespaces%5B500%5D=on&simplified_format=on . As far as I can tell, I am only seeing HTML.
[23:20:37] 	 ah, when I wget the page, I get something different from when I view sources.
[23:26:14] 	 Yaron: do you prettify XML, because I think I found a bug in your parser
[23:26:35] 	 Yaron:  converts to <strong> (no semicolon <<<--) in the XML output.
[23:26:47] 	 Oh... oops.
[23:27:20] 	 Ah, you're right!
[23:27:26] 	 Thanks for the catch.
[23:28:02] 	 you're welcome
[23:29:12] 	 Unfortunately, I can't do any Git check-ins right now, because my server is giving me problems.
[23:29:48] 	 But the error is in line 316 of /specials/DT_ViewXML.php.
[23:30:06] 	 ok, will tweak locally, thanks
[23:33:58] 	 Yaron: found another bug for you.
[23:34:18] 	 Yaron: if you look here: http://wiki.zenoss.org/Special:ViewXML?title=Special%3AViewXML&namespaces%5B500%5D=on&simplified_format=on
[23:34:31] 	 Yaron: and search for "APC Automatic" and look at that entry (Page ID 140)
[23:34:51] 	 Yaron: you will see how embed in templates appear in the XML. They get mangled.
[23:35:47] 	 Yaron: this happens in simplified as well as "normal" XML mode