[05:58:04] New review: Mwjames; "See my comments" [mediawiki/extensions/SemanticMediaWiki] (master); V: 0 C: -1; - https://gerrit.wikimedia.org/r/29882 [06:32:47] New review: Mwjames; "Well update.php did failed this time during the update process, just brought some weird being an "il..." [mediawiki/extensions/SemanticMediaWiki] (master); V: -1 C: 0; - https://gerrit.wikimedia.org/r/29753 [07:31:39] New review: Nischayn22; "Didn't you get a "computed statistics for x properties" message after the illegal messages?" [mediawiki/extensions/SemanticMediaWiki] (master); V: 0 C: 0; - https://gerrit.wikimedia.org/r/29753 [07:56:47] New review: Markus Kroetzsch; "MWJames: The bug you found is unrelated to this change. I will fix it soon." [mediawiki/extensions/SemanticMediaWiki] (master); V: 0 C: 0; - https://gerrit.wikimedia.org/r/29753 [08:02:27] New patchset: Nischayn22; "Fix to bug 41269" [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/29753 [08:03:54] New patchset: Markus Kroetzsch; "Corrected table name after name change" [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/29932 [08:04:34] New review: Markus Kroetzsch; "Mwjames: https://gerrit.wikimedia.org/r/29932 should fix your problem." [mediawiki/extensions/SemanticMediaWiki] (master); V: 0 C: 0; - https://gerrit.wikimedia.org/r/29753 [08:16:53] Change merged: Markus Kroetzsch; [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/29932 [10:48:11] hello [10:48:18] hows the conf? [10:53:30] can anyone explain why this ED query don't work: [10:53:32] http://seqanswers.com/w/index.php?title=Template_talk:Add_page_metadata&action=edit [10:57:38] seems to not work on http://www.discoursedb.org too [11:00:24] Warning: SimpleXMLElement::xpath() [simplexmlelement.xpath]: Invalid expression in /home/ngrandy/public_html/w/extensions/ExternalData/ED_Utils.php on line 355
[11:16:18] Fatal error: Cannot call method self::isNodeNotEmpty() or method does not exist in /home/seqadmin/seqanswers.com/w/extensions/ExternalData/ED_Utils.php on line 335 [12:24:08] New patchset: Nischayn22; "Fix to bug 41269" [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/29753 [13:11:49] Yaron: I found a weird bug in ED on the demo site [13:12:15] What is it? [13:12:39] sorry, just looking ... [13:12:59] xpath related ... one moment [13:13:42] Yaron: http://www.discoursedb.org/wiki/External_Data_XPath_demo you need to add another item to the 'data=' vector for the last item to work properly [13:14:24] Oh, okay - I'll check that out. Thanks. [13:14:28] In this case, I added a dummy 'x=y', and that way the 'logoalt' item worked [13:14:38] many thanks [13:14:58] Yaron: I'm also seeing fatals on my wiki using certain values in the data vector (with use xpath) [13:15:40] Yaron: on this page: http://seqanswers.com/w/index.php?title=Template_talk:Add_page_metadata&action=edit [13:16:12] If I set "data=counter=/api//page[@counter],x=y" I get the following fatal: "Fatal error: Cannot call method self::isNodeNotEmpty() or method does not exist in /home/seqadmin/seqanswers.com/w/extensions/ExternalData/ED_Utils.php on line 335" [13:17:16] this is 1.4.1 [13:18:27] dbolser - could it be that the entire structure needs to be in there, i.e. you need to add "/query/pages"? [13:18:36] I don't know much about how Xpath works. [13:19:32] Yaron: I have a vague understanding, basically any time I get a construct that I think should work, I get the fatal [13:19:45] i.e. when I try the full path as you suggest, I get a fatal [13:20:06] I wanted to check if what's there should work, and indeed it does on DiscourseDB [13:20:12] (with the above caveat) [13:20:23] Oh, weird. [13:20:33] I should try a similar api lookup on discourse db [13:20:51] Yeah, that would be an obvious test. [13:20:55] sorry, buy "what's there" I mean that xpath pattern [13:21:24] forgot how cool api + ed is ;-) [13:22:03] didn't think site a could query site b's api :D [13:22:26] Once this works it will be a really nice way to access site info in SMW [13:23:13] can you see http://seqanswers.com/w/api.php?action=query&titles=Template:Add%20page%20metadata&prop=info&format=xml ? I wonder if one needs to be logged in [13:23:50] New review: Jeroen De Dauw; "This is awesome - did you get the idea from my presentation? To bad I did not have it then :)" [mediawiki/extensions/SemanticResultFormats] (master); V: 1 C: 2; - https://gerrit.wikimedia.org/r/29740 [13:23:50] Change merged: Jeroen De Dauw; [mediawiki/extensions/SemanticResultFormats] (master) - https://gerrit.wikimedia.org/r/29740 [13:24:46] Yeah, I can see it. [13:25:31] works here (finally): http://www.discoursedb.org/wiki/Talk:External_Data_XPath_demo [13:25:42] using that same xpath construct on my wiki = fatal [13:26:26] Yaron: this is tag 1.4.1. from git ... I really should have that method in ED_Utils right? [13:26:40] I don't know - I'll look into it. [13:28:42] Definitely the error handling could be a lot better, even in the very latest version. [13:28:53] Many thanks again. Note the latter works without the dummy x=y ... but I don't see the same warning as on this page: http://www.discoursedb.org/wiki/External_Data_XPath_demo [13:29:46] Yaron: a debug mode would be awesome... I spent ages trying to get xpath to match against a url that wasn't returning xml... ahh.. [13:29:59] Warning: SimpleXMLElement::xpath() [simplexmlelement.xpath]: Invalid expression in /home/ngrandy/public_html/w/extensions/ExternalData/ED_Utils.php on line 355
[15:21:08] New patchset: Jeroen De Dauw; "refactor store dependent stuff to be in the relevant store class" [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/29971 [16:15:17] Yaron: will you be around later today to possibly help debug these ED problems? [16:15:44] If not, I'll roll back to 1.3.x and give up on xpath for the time being ;-) [16:16:15] (I'm trying to integrate my wiki with BioPortal via their REST API, which requires xpathy stuff) [16:16:26] dbolser - I can't guarantee I can work on it today. [16:16:42] Yaron: no probs [16:17:42] I'm just keen to play with it :-) [16:18:08] BTW, the docs don't mention it, but is 'use xpath' restricted to format=XML? [16:18:36] I havent tried, but just wondering if there is XPath support for JSON [16:21:25] dbolser - yeah, it's xml only; there's something called JSONpath, but it's not supported - I don't know what PHP's own support for it is. [16:36:05] New patchset: Daniel Werner; "Fixed even more namespace problems." [mediawiki/extensions/SemanticExpressiveness] (master) - https://gerrit.wikimedia.org/r/29976 [16:36:05] New patchset: Daniel Werner; "?to?! parser function will now use format 'raw' as default" [mediawiki/extensions/SemanticExpressiveness] (master) - https://gerrit.wikimedia.org/r/29977 [16:36:26] New patchset: Mwjames; "SRF Pagewidget, hotfix doing a event collusion detection" [mediawiki/extensions/SemanticResultFormats] (master) - https://gerrit.wikimedia.org/r/29978 [16:37:11] Change merged: Daniel Werner; [mediawiki/extensions/SemanticExpressiveness] (master) - https://gerrit.wikimedia.org/r/29976 [16:38:17] New patchset: Nischayn22; "Fix the delete which is not working." [mediawiki/extensions/SemanticWatchlist] (master) - https://gerrit.wikimedia.org/r/29980 [16:38:23] Change merged: Daniel Werner; [mediawiki/extensions/SemanticExpressiveness] (master) - https://gerrit.wikimedia.org/r/29977 [16:45:20] Yaron: right, JSONpath sounds too funky to worry about :-) [16:45:23] l8r [16:47:10] New patchset: Mwjames; "SRF Pagewidget, hotfix doing an event collusion detection" [mediawiki/extensions/SemanticResultFormats] (master) - https://gerrit.wikimedia.org/r/29978 [17:34:14] Change merged: Mwjames; [mediawiki/extensions/SemanticResultFormats] (master) - https://gerrit.wikimedia.org/r/29978 [19:21:57] Yaron: about ED failures on my wiki, does it require any PHP XML parsing libs that I may be missing? [19:22:25] I don't know - is it definitely working differently on our two wikis? [19:23:00] Yaron: yes, the query returns a result on Discourse DB, and returns a fatal on SEQwiki [19:23:13] same external URL [19:23:24] Oh - yeah, it could be. [19:23:31] Is there a difference in the PHP versions? [19:23:41] I'll check logs.. and PHP versions :-) [19:26:13] Oh, btw, I notice the warning has dissapeared from here: [19:26:14] http://www.discoursedb.org/wiki/External_Data_XPath_demo [19:26:28] did you do some debugging? [19:26:35] No - I didn't touch the code. [19:26:43] confusing [19:27:13] Weird! [19:27:35] never mind, I thought the warning may be related to the issue with the need to add a trailing x=y in the data vector, but that issue is still in effect [19:28:15] For some reason this page is blanking; [19:28:15] http://www.discoursedb.org/wiki/Special:SpecialPages [19:28:35] * faceface goes direct to special version [19:29:06] Yikes. [19:32:48] hello. http://wiki.thewarz.de/wiki/B92 I use {{#set to set some values for the table right. and I show them with {{#show, but the the values are linked. how to remove the links by default (so without link=none or #-)? [19:33:41] DiscourseDB vs. SEQwiki: MW = 1.20alpha vs. 1.19.2, PHP = 5.3.10 vs. 5.2.17, MySQL = 5.5.22 vs. 5.1.56, ED = 1.4.1 (bef5423) vs. 1.4.1 (01030dcfb5728960a40188d33f465390d916b89b) [19:34:11] Tobias_: you mean the shown value is a link? [19:34:26] yes [19:34:36] like '13' [19:34:42] This is a little complex but it makes sense once you understand [19:34:42] yup [19:34:52] when you set a value, you assign the value to a property right? [19:35:13] like Magazingröße = 13 for the page B92 [19:35:29] I think so [19:35:32] the trick is, the property 'Magazingröße' is typed [19:35:45] it can have type string, number, url, etc [19:35:54] the default type is the most complex, type = Page [19:36:15] The displayed value of any Page type property is a link [19:36:16] okay [19:36:30] so you just need to go to the page for the property and configure the type [19:36:53] i.e. http://site/wiki/Property:Magazingröße [19:37:00] or whatever [19:37:05] prolly linked from the fact box [19:38:33] one moment, I try it [19:40:41] Tobias_: page Attribut:Mag größe you'll need to add [[has type::number]] (or at least the German text for it) [19:42:47] thanks, I worked [19:42:54] it* [19:43:24] In German prolly something like [[hat type::zahl]] [19:44:42] In German it is [[Datentyp::Zahl]] [19:45:16] Can you speak German? [19:45:30] a bit [19:45:33] <-- Dutch [19:45:44] writing is a different matter though [19:46:15] Okay, yes the languages are smiliar [19:46:45] unless they're not (Meer/See is Zee/Meer in Dutch :-O) [19:47:40] Tobias_: it's good practice to document your semantic properties [19:48:24] Well, I could understand a Dutch text. [19:48:41] you could write something like "this property of type [[Datentyp::Zahl]] is used to indicate the maximum number of rounds that the weapon can hold" [19:48:42] Where do I document them? [19:48:50] on the page that defines them [19:49:04] so Attribut:Mag größe [19:49:05] Good idea [19:49:36] may prevent "semantic creep" where some other user starts to use your Attribut in a different way [19:49:42] I will change the properties tomorrow. I have to go offline. Thanks for your help. [19:49:54] all the more problematic if he uses it only in a *slightly* different way [19:50:05] no prob [19:50:10] see you, bye [19:50:12] \o [19:50:13] hi Saruman [19:51:07] Yaron: I get a weird error in the log... for a test, at one point I changed the URL to .../api.phpsdf?=... [19:51:13] but then changed it back [19:51:37] the log it still talking about phpsff, apparently returning the 'page missing' html to ED [19:51:46] Saruman: at the conference? :-) [19:52:14] <-- at home :'-( [19:52:32] changed job, busybusy ever since [19:52:42] busy in a good way though! \o/ [19:52:46] * faceface makes something other than a null edit [19:52:55] Saruman: cool [19:53:00] * Saruman expects a "one edit" [19:53:02] me too :''( [19:53:10] heh [19:53:26] lets have our own conference right here ! [19:53:26] :-P [19:53:32] Internet Relay Conference [19:53:41] let's abbreviate that [19:54:22] Fatal error: Cannot call method self::isNodeNotEmpty() or method does not exist in /home/seqadmin/seqanswers.com/w/extensions/ExternalData/ED_Utils.php on line 335 [19:54:28] cool [19:54:43] seqadmin@ds1715:~/seqanswers.com/w/extensions/ExternalData$ grep -n isNodeNotEmpty ./* [19:54:43] ./ED_Utils.php:329: static function isNodeNotEmpty( $node ) { [19:54:45] call method self - that's kinda egotistic [19:54:46] ./ED_Utils.php:335: return array_filter( $nodes, "self::isNodeNotEmpty" ); [19:55:05] $self->ego++ [19:55:28] hehe [19:55:32] scary, I almost understand stuff like that [19:55:48] even though I still can't spell "PHP" [19:56:14] [Thu Oct 25 03:52:37 2012] [error] [client 64.90.57.246] File does not exist: /home/seqadmin/seqanswers.com/w/api.phpsdf, referer: http://seqanswers.com/wiki/Template_talk:Add_page_metadata [19:56:29] Saruman: just keep expanding the TLa [19:56:50] Yaron: seems to be an SD cashing issue? [19:57:02] * faceface blanks the page... [19:57:06] ED, you mean? [19:57:48] faceface - are you using ED's caching mechanism? [19:57:49] It's a setting in LocalSettings.php. [19:58:36] ye [19:58:51] yeah, I set it up at one point [19:59:30] Aha! Maybe that's it... I haven't thought about the ED caching thing in a long time. [20:00:00] Maybe it needs to be fixed for Xpath handling. [20:00:26] hmm... lemmy turn it off [20:02:44] Hmm... cant find config now ;-) [20:03:30] That's a problem. :) [20:04:04] faceface: have you remembered to set $wgConfigFindable = "true"; [20:04:18] hehe, I'm sure I configured it because I was hitting google scholar unoffical api [20:05:03] http://lmgtfy.com/?q=where+is+my+configuration [20:06:53] heeh [20:06:56] found the DB table [20:07:56] last row, req_time=1348966774 [20:07:57] looks old [20:08:11] no sign of current api uses [20:08:16] no wonder google banned me ;-) [20:09:43] ohwell, that isn't it ... /me turns on hard core debugging options [20:19:46] The right api page is now being requested, but the fatal persists, can't get any more info than that [20:20:00] nothing is coming out on error log [20:20:22] also it's a pain that git doesn't have ED pre 1.4.1 [20:42:38] Yaron: help from #PHP, self:: is 5.3 specific notation [20:42:56] I'm on 5.2, so have to use: [20:42:57] return array_filter( $nodes, array(__CLASS__, 'isNodeNotEmpty')); [20:42:58] return array_filter( $nodes, array(__CLASS__, 'isNodeNotEmpty')); [20:42:59] Can I have a form-like page that takes some input and dynamically generates output without saving that output to a page? In this case, I have part numbers, and prices, and I want a page where I can enter a quantity and in real time (after hitting a submit button) get a answer on the cost. But there is no reason to save the answer on it's on page. [20:43:14] faceface - did you turn off caching in LocalSettings.php? [20:43:43] Yaron: yes, investigating the cash table showed it hadn't been on for a while [20:43:47] the latter now works :-) [20:44:11] voldial: sounds like you could adapt query forms [20:45:45] faceface - sorry, I don't understand; is it off in LS.php? (I don't understand what you mean by "investigating".) [20:47:33] Yaron: sorry, I said 'cashing is on', but couldn't find the place where it was turned on in the config [20:47:37] faceface, perfect. thanks!! [20:47:38] (I really thought it was on) [20:47:53] so I checked the ed_cash_url table in the database [20:47:55] It's the setting that starts "$edgCacheTable = ...", I think. [20:48:05] in fact cashing hasn't been on for months [20:48:13] Yaron: in any case, see: http://php.net/manual/en/language.types.callable.php [20:48:20] "Static class methods can also be passed without instantiating an object of that class by passing the class name instead of an object at index 0. As of PHP 5.2.3, it is also possible to pass 'ClassName::methodName'. [20:48:27] hold on... [20:48:36] 5.2.3 < 5.2.17 :( [20:49:45] Yaron: in any case, using return array_filter( $nodes, array(__CLASS__, 'isNodeNotEmpty')); instead of self::isNodeNotEmpty works [20:49:52] I wasn't really looking at your PHP code snippets before, but yes, that array_filter() thing should be changed - I've seen stuff like that cause problems before, in other extensions. [20:49:52] Okay, cool. [20:49:59] awesome [20:50:23] * faceface greps the codebase ;-) [20:51:44] well, this is great :-) Now I get to play with ED :D [20:57:43] Woot woot! [21:00:54] New patchset: Mwjames; "SRF Boilerplate, add class registration and test file" [mediawiki/extensions/SemanticResultFormats] (master) - https://gerrit.wikimedia.org/r/30071 [21:18:31] New review: Mwjames; "I'll merge this later but I just want to make a quick integration test." [mediawiki/extensions/SemanticResultFormats] (master); V: 0 C: 0; - https://gerrit.wikimedia.org/r/30071 [21:32:49] Can I use comparitors in a page name query? I want to #ask for [[*somepage*]] [21:33:28] really I want to #ask for all the subpages for a page... I am hoping this will get me there [21:33:42] [[somepage/*]] [21:33:47] but that no workey [21:38:00] {{Special:PrefixIndex/Index 1000008/}} almost gets me there... but the output is difficult to deal with... it's links and I just want text so I can feed a template with it. [21:41:24] [[FULLPAGENAME::~Everest/*]] would be nice... [21:41:35] I guess I can add the property myself... [22:21:18] voldial: it's queryable IIRC... [22:21:31] common request... [22:21:36] did you search mailing list? [22:21:47] It's pretty awesome... but crappy search interface [22:22:20] voldial: if you work it out, seems worth adding a tip [22:22:54] http://smw.referata.com/wiki/Tips [22:24:37] would you look at that! [22:24:39] http://www.semantic-mediawiki.org/wiki/Semantic_Extra_Special_Properties [22:24:55] I've just been re-implementing some of that using ED ;-) [22:25:14] Now if it would only add property values as properties of the property... [22:25:25] hmm... sounds weird when I say it like that [22:25:41] voldial: that extension lets you query sub-pages I gues [22:48:34] Yaron: before trying ;-) shold XPath work with #for_external_table ? [22:49:01] I think so, yeah. [22:49:39] * faceface tries [22:51:22] :D [22:52:48] This could be re* {{#external_value:ontologyVersionId}} [22:52:48] doh [22:53:03] this could be really cool for ontology integration from BioPortal [22:53:19] we just pull in all the properties / relations [22:53:38] Yaron: any plans to implement hierarchical facets in drill down ;-) [22:53:53] What are those? [22:54:13] actually, I've never seen a hierarchical facet anywhere... but the idea is faceted seacrch but with a 'tree of terms' [22:55:08] aparently it's supported in Solr... so some implementations should come through [22:55:23] I still don't know what that means. [22:55:35] http://www.webdesignpractices.com/navigation/facets.html [22:56:05] so, SD would have high and low terms ... somehow [22:56:21] hierarchical properties isn't well defined in general [22:57:06] Sorry, still not following. [22:57:11] Single-Level vs. Multi-Level Facets [22:57:45] using that example, imagine values of material not only included gold, but also 22ct gold, 14ct gold, etc [22:58:22] you could just have a big list (like SD does currently) or use the hierarchical relationship between gold and 14ct gold to do somethign smarter [22:58:22] Ah - okay. [22:58:53] SD already supports that to some extent, using "Requires filter". [22:59:09] Ideally, there would also be "Requires value for filter". [22:59:15] right, except isn't that between properties? [22:59:38] property a requires b [22:59:45] that works if your hierarchy is static [23:00:08] property = material, property = material calibre (or however gold is classified) [23:00:42] but in SEQwiki we have all kinds of crazy property values with different levels between them [23:31:12] faceface - yeah, I mean something like "Requires specific value for filter". [23:39:12] I getcha [23:39:12] I getcha' [23:39:13] XPath is hard [23:39:16] http://www.w3schools.com/xpath/xpath_axes.asp