[03:37:01] hiya [03:37:29] I am doing a viewxml dump, and I am having a very strange issue with a Unicode BOM showing up at the end of the XML file and breaking it [03:37:34] very last character. [04:05:58] New review: Daniel Friesen; "This introduced a BOM into the code." [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/14609 [04:18:06] New patchset: Daniel Friesen; "Kill BOMbs hidden in PHP files." [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/27973 [08:07:17] drobbins: I think.... [08:07:28] drobbins: https://gerrit.wikimedia.org/r/#/c/27973/ [08:31:32] Change merged: Nikerabbit; [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/27973 [10:30:43] Change merged: Jeroen De Dauw; [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/27885 [14:23:19] :D [14:23:20] [[SMW::on]] [14:23:42] I give up :D Thats in the output :D [14:40:06] New patchset: Mwjames; "Introduce smwfContextHighlighter as global function" [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/28026 [14:42:11] Rinkel: what's your question [14:43:14] The question is easy. In the #ask output is [[SMW::ON]] I have no clue how it gets there. [14:44:28] publicly visible? [14:45:21] if you mean if the wiki is open? No, its closed till the release :D [14:46:08] But i can make a account [14:46:26] If you wish I could take a stab at ti [14:46:27] it [14:48:24] stab ? [14:49:05] have a go [14:49:13] nose around [14:49:19] make an attempt [14:51:36] New review: Mwjames; "Front-end func. have not been altered but the code is cleaner and easier to understand. Tested with ..." [mediawiki/extensions/SemanticMediaWiki] (master); V: 1 C: 1; - https://gerrit.wikimedia.org/r/28026 [15:10:48] New patchset: Mwjames; "SRF Eventcalendar, enable latest start date" [mediawiki/extensions/SemanticResultFormats] (master) - https://gerrit.wikimedia.org/r/28031 [15:20:43] Change merged: Jeroen De Dauw; [mediawiki/extensions/SemanticResultFormats] (master) - https://gerrit.wikimedia.org/r/28031 [15:25:42] New review: Jeroen De Dauw; "Please have a look at inline suggestion" [mediawiki/extensions/SemanticMediaWiki] (master); V: 0 C: 2; - https://gerrit.wikimedia.org/r/28026 [15:25:42] Change merged: Jeroen De Dauw; [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/28026 [17:04:58] New review: Mwjames; "Wow ... I would do -2 here but it is already merged ... something is causing a major issue here." [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/27940 [17:08:31] New patchset: Jeroen De Dauw; "Revert "Improve subobject handling in SMWSemanticData"" [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/28048 [17:08:41] Change merged: Jeroen De Dauw; [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/28048 [17:11:03] New patchset: Jeroen De Dauw; "Temporary revert as apparently this is causing store2 to break, needs some investigating" [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/28049 [17:11:08] Change merged: Jeroen De Dauw; [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/28049 [17:11:35] New patchset: Jeroen De Dauw; "Re-apply "Fix handling of Container objects."" [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/28051 [17:12:10] New patchset: Jeroen De Dauw; "Re-apply "Improve subobject handling in SMWSemanticData"" [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/28052 [17:17:05] New patchset: Markus Kroetzsch; "Limit support for outdated Type: namespace prefix" [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/28054 [17:17:05] New patchset: Markus Kroetzsch; "Fixed handling for errors in property types" [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/28055 [17:17:05] New patchset: Markus Kroetzsch; "Corrected handling of error DIs and DVs" [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/28056 [17:17:06] New patchset: Markus Kroetzsch; "Rewritten access/caching layer for smw_ids" [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/28057 [17:17:38] Change merged: Markus Kroetzsch; [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/28054 [17:17:39] New review: Mwjames; "Looks good now, so some of the three commits related to subobject handling caused the problem." [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/28048 [17:18:35] Change merged: Markus Kroetzsch; [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/28056 [17:18:35] Change merged: Markus Kroetzsch; [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/28055 [17:20:29] Change merged: Markus Kroetzsch; [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/28057 [19:11:36] New patchset: Tpt; "Fix an i18n error." [mediawiki/extensions/SemanticGenealogy] (master) - https://gerrit.wikimedia.org/r/28077 [19:16:19] Change merged: Tpt; [mediawiki/extensions/SemanticGenealogy] (master) - https://gerrit.wikimedia.org/r/28077 [19:20:42] Hello all, I was wondering what I needed to do to enable semantic queries through the API? [19:31:18] Nvm. Used my brain for once :D [19:31:42] ah, brainuse. Can be quite useful (sometimes) [19:39:41] Quite often it hurts. [19:42:03] New review: Jeroen De Dauw; "Depends on https://gerrit.wikimedia.org/r/#/c/28051/" [mediawiki/extensions/SemanticMediaWiki] (master); V: 0 C: 0; - https://gerrit.wikimedia.org/r/28052 [19:50:03] ! help [19:50:13] mm, how does that work again [19:50:20] .help [19:50:34] ! info [19:51:40] !help [19:51:44] !info [19:52:15] @info [19:52:15] http://bots.wmflabs.org/~wm-bot/dump/%23semantic-mediawiki.htm [19:52:43] !e Maps [19:52:43] https://www.mediawiki.org/wiki/Extension:Maps [19:53:33] !help is semantic-mediawiki.org/wiki/Help:$1 [19:53:33] Key was added [19:53:38] !help foo [19:53:39] semantic-mediawiki.org/wiki/Help:foo [19:53:45] daah [19:53:51] !rm help [19:53:57] !del help [19:54:28] !help del [19:54:28] Successfully removed help [19:54:47] !help is http://semantic-mediawiki.org/wiki/Help:$1 [19:54:47] Key was added [19:55:03] !p is http://semantic-mediawiki.org/wiki/$1 [19:55:04] Key was added [19:55:23] Hum. I seem to have hit a wall. What must I do to get past the list-item object? http://www.wikidoc.org/api.php?action=ask&q=[[SubCategory::Pharmacology]]&po=Answer|Right%20Answer|Prompt|Explanation&format=xml [19:55:55] Ulfr: get past? [19:56:05] Ulfr: do you mean "get more results"? [19:56:10] Apparently there only is one [19:56:13] No, go deeper into the result [19:56:23] Like, I can get here: data.ask.results.items [19:56:28] but I can't figure out what the key is to sneak past [19:56:31] is it .0? [19:57:02] ahh, evil xml hurts my brain [19:57:02] http://www.wikidoc.org/api.php?action=ask&q=[[SubCategory::Pharmacology]]&po=Answer|Right%20Answer|Prompt|Explanation&format=jsonfm [19:57:10] New review: Mwjames; "What ever is introduced in this commit makes subobjects disappear for SQLStore2, I have not tested S..." [mediawiki/extensions/SemanticMediaWiki] (master); V: -1 C: -2; - https://gerrit.wikimedia.org/r/28051 [19:58:17] Thank you so much [19:58:22] I had no idea how to do that [19:58:33] was working off of that xml and non friendly json [19:58:56] heh :) [20:01:09] still struggling a bit, what would the object notation be to get at one of my answers? [20:01:50] !nyan is ~[,,_,,]:3 [20:01:50] Key was added [20:02:16] New review: Mwjames; "Shouldn't not be submitted until Change Ie7207e44 is fixed." [mediawiki/extensions/SemanticMediaWiki] (master); V: 0 C: -1; - https://gerrit.wikimedia.org/r/28052 [20:02:51] I have data.ask.results.items.properties.answer am I close? [20:03:04] Yeah [20:03:09] ask.results.items.properties.answer will give you an array [20:03:15] You can just loop over that [20:03:22] Or get the first element with ask.results.items.properties.answer[0] [20:03:39] [16:03:16.540] TypeError: data.ask.results.items.properties is undefined @ Web Console:10 [20:05:15] what format should I be getting results in? json? [20:08:39] Yeah [20:08:48] If you're getting it in JavaScript, definitly [20:09:13] But if you are writing a general handler for such queries [20:09:19] And the result can be empy [20:09:27] You will need to add checks to see if the elements exist [20:09:53] they're mandatory in forms, so I'm not overly concerned [20:10:12] just trying to figure out how to access my results at the moment. eventually it'll be a piece of software for taking exams [20:10:40] does the square bracket to the right of items change the syntax at all? [20:11:24] Oh, sure it does [20:11:38] ask.results.items[0].properties.answer [20:11:45] Since items is an array [20:11:51] You probably just want to loop over it [20:12:20] I owe you a beer sir. Or a soda if you don't drink :D [20:18:22] Oh wait what [20:18:31] That is the AskAPI extension [20:18:39] heh, I did not even notice that [20:18:49] Ulfr: you might want to upgrade your SMW [20:19:00] The last release has that API built-in [20:19:16] * Ulfr has a PTSD attack at the mention of the word upgrade [20:19:17] And the structure there is slightly different [20:19:38] It has continuation support and some other stuff the extension does not have [20:19:54] I probably will tonight [20:19:55] Not to mention, it uses SMWs own serialization, so is consistent with the current JSON format [20:20:12] Yeah, sounds like a good idea before I'm balls deep in query code [20:20:22] Yeah [20:20:26] but I just made the upgrade from 1.18 to 1.19.2 and I haven't stopped regretting it [20:20:41] Beware that you will need to remove this extension when upgrading though, else you'll get a name conflict [20:20:54] What, the api one? [20:21:00] Yeah [20:21:08] Really, brakage between MW 1.18 and 1.19??? [20:21:15] Oh my dear sweet jesus [20:21:24] CentOS decided PCRE just didn't need to work right [20:21:43] couldn't get it functional at all with a newer version of apache [20:21:59] wound up pulling a 25 hour workday migrating my frontends to ubuntu for better support [20:22:01] Ulfr: actually thinking about it, you probably really want a more recent SMW if you are using MW 1.19.x. Some of your problems might be caused by that [20:22:38] STILL debugging some stuff with my load balancers and proxies [20:24:39] JeroenDeDauw: I'll definitely upgrade it tonight when there are fewer users on [20:26:02] Ulfr: right [20:26:20] You ought to be able to get latest master, but can also just go for the latest rel (1.7.1) [20:26:30] Will need to also up Validator in case of the former [20:36:52] Can do. You wouldn't happen to know of any limitations on how hard I can hammer on the API, would you? [20:46:40] New patchset: Mwjames; "Reassign context for add method and deleted outdated methods" [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/28138 [20:47:25] New patchset: Mwjames; "Consolidate outdated methods used in connection with smw.util.tooltip" [mediawiki/extensions/SemanticResultFormats] (master) - https://gerrit.wikimedia.org/r/28139 [20:48:24] New patchset: Mwjames; "Use embed image instead" [mediawiki/extensions/SemanticResultFormats] (master) - https://gerrit.wikimedia.org/r/28141 [20:51:25] JeroenDeDauw: ^ Promise it's my last question! tyvm again btw :P [21:00:10] Change merged: Mwjames; [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/28138 [21:00:56] Change merged: Mwjames; [mediawiki/extensions/SemanticResultFormats] (master) - https://gerrit.wikimedia.org/r/28139 [21:02:11] Change merged: Mwjames; [mediawiki/extensions/SemanticResultFormats] (master) - https://gerrit.wikimedia.org/r/28141 [21:48:28] New patchset: Mwjames; "Add user prefs intro for SRF" [mediawiki/extensions/SemanticResultFormats] (master) - https://gerrit.wikimedia.org/r/26929 [21:51:13] Change merged: Mwjames; [mediawiki/extensions/SemanticResultFormats] (master) - https://gerrit.wikimedia.org/r/26929 [22:13:16] New patchset: Mwjames; "Fix escaping issue for spinner div" [mediawiki/extensions/SemanticResultFormats] (master) - https://gerrit.wikimedia.org/r/28160 [22:16:59] Change merged: Mwjames; [mediawiki/extensions/SemanticResultFormats] (master) - https://gerrit.wikimedia.org/r/28160 [23:02:16] We have a form that produces a list of checkboxes next to categories (using the category tree extension), the form code looks like {{{field|Categories|input type=categories|top category=Top Category|hideroot=on|depth=1}}} Now I would like to do the same thing, but with a list of pages, so for example have a checkbox next to every page in a category and then feed that to #arraymap, but I dont see how to do this... I keep reading over http://ww [23:02:17] w.mediawiki.org/wiki/Extension:Semantic_Forms/Defining_forms#Allowed_input_types_for_data_types and trying stuff, but no luck so far. Is this possible? How do I specify the list of pages to enumerate on the form? [23:13:59] Is there any way to do this without "allows values"? I am almost thinking I need to create a category _per page_ that I want to be able to select on the form.... [23:18:20] voldial - you can use "values from category". [23:21:17] Yaron, hm. that's for autocomplete... and I just want to list them with checkboxes... but you know that... so maybe it will work anyway... I'll go try it. Thanks! [23:22:00] voldial - you can do it with checkboxes, too. [23:23:48] Awesome. working on it. I'll try to make that clear on the help page once I figure it out (I made a smw.com account ;-). [23:26:02] This software rocks. [23:26:03] * voldial happy