[05:38:43] New patchset: Mwjames; "(bug 38229) for cases with an empty result set a possible default message is printed" [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/14606 [05:42:18] New review: Mwjames; "## Description " [mediawiki/extensions/SemanticMediaWiki] (master) C: 0; - https://gerrit.wikimedia.org/r/14606 [06:36:24] New patchset: Mwjames; "Add getOffset() method in order to avoid second guessing via [params]" [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/14609 [07:26:31] normally i define properties on a page unsing [[property::value]] or {{#set: ... I have to change a very long list of articles on my private wiki is there a way to update the pages more quickly using php code or directly adding that to the mysql database [07:28:41] editing all pages via the api is not possibe it simply takes to long about 10 sec per page. If I use the mediawiki function quickedit it just takes less than .1 sec [08:34:00] random data point - extracting some data with a script, 10k items in 16h [08:34:21] I think I will demand more efficient code now :) [08:34:59] physikerwelt: I'm doing a scripted update like that, it's not making me happy [08:35:18] physikerwelt: but in my case the bottleneck seems to be the lack of sane DB usage [08:36:12] I tried to use the SMWWriter plugin... but that did not work at all [08:36:37] I've resigned to abusing wget and liberal pattern matching to extract data [08:37:05] it's a glorious hack that is neither reliable nor portable, but it's a lot faster than any php method I've tried [08:38:09] I think I'll just add a new table with page, name, value that's sufficient for me for the moment [08:38:38] eew ;) [08:38:49] physikerwelt: how many pages are you mangling? [08:41:33] 10k [08:42:01] that's not to much I think [08:48:56] about as much as I do [08:49:12] going to take about 24h for a script run *sigh* [08:49:56] for me the problem is everything has to be finished by tonight [08:50:19] parallelize it [08:50:50] I use a simple mysql database;-) [08:51:06] me too [08:51:16] it's topping out at ~900qps per connection [08:51:29] so if I want to max it out I'd have to run ~6-8 threads in parallel [08:51:45] but thanks to the insane lack of sanity that is guaranteed to cause DB deadlocks [08:52:14] I had the same problem [08:52:31] (I am still refusing to check why it is doing more than, say, 50 queries per page view ... the implications scare me too much) [08:52:43] I can even self-deadlock with one thread :D [08:56:44] I think I'll continue with my $article->QuickEdit solution. That's really fast dump the most important things to a special table and use the full text extraction for all other things... to get the full text of an article and the extraction of the semantic properties takes less than 10ms if I do it manually with a preg_match_all call [08:57:02] horribly amusing, amusingly horrible [12:54:02] New patchset: Nischayn22; "Removing length for Strings" [mediawiki/extensions/SemanticMediaWiki] (storerewrite) - https://gerrit.wikimedia.org/r/14612 [12:59:33] New patchset: Nischayn22; "Removing length restriction for Strings" [mediawiki/extensions/SemanticMediaWiki] (storerewrite) - https://gerrit.wikimedia.org/r/14612 [13:30:30] New patchset: Mwjames; "(bug 38094) implement several changes - Load ecanvas dynamically using Krinkle's jquery.profile example - Move canvas element into JS" [mediawiki/extensions/SemanticResultFormats] (master) - https://gerrit.wikimedia.org/r/14614 [14:27:14] New patchset: Mwjames; "(bug 36989) Add two hooks to SF_UploadWindow.php" [mediawiki/extensions/SemanticForms] (master) - https://gerrit.wikimedia.org/r/14617 [15:25:32] New patchset: Reedy; "Remove BOM" [mediawiki/extensions/SemanticResultFormats] (master) - https://gerrit.wikimedia.org/r/14623 [15:26:03] Change merged: Reedy; [mediawiki/extensions/SemanticResultFormats] (master) - https://gerrit.wikimedia.org/r/14623 [15:27:27] New patchset: Reedy; "Remove 2 more BOM" [mediawiki/extensions/SemanticResultFormats] (master) - https://gerrit.wikimedia.org/r/14624 [15:27:46] Change merged: Reedy; [mediawiki/extensions/SemanticResultFormats] (master) - https://gerrit.wikimedia.org/r/14624 [15:32:27] New patchset: Reedy; "Remove BOM" [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/14629 [15:33:05] Change merged: Reedy; [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/14629 [16:23:56] Yaron: Hey, I want to experiment with SRF, which is the most easiest one to start with? [16:24:58] damn [16:25:05] JeroenDeDauw: ^ [17:24:41] nischayn22: the easiest what to start with? [17:48:07] New review: Jeroen De Dauw; "Great! Minor tweak needed though" [mediawiki/extensions/SemanticMediaWiki] (master); V: 0 C: -1; - https://gerrit.wikimedia.org/r/14606 [17:53:39] New review: Jeroen De Dauw; "What is this needed for exactly? And why not just make the query object itself available (if it is n..." [mediawiki/extensions/SemanticMediaWiki] (master); V: 0 C: 0; - https://gerrit.wikimedia.org/r/14609 [18:11:24] JeroenDeDauw: nvm that, I got how to do it [18:12:30] JeroenDeDauw: Is there a way to display data from https://github.com/nischayn22/AllTimeZones/raw/master/timezone.png on Maps ? [18:14:01] nischayn22: Maps does not have support for timezones if that's what you're asking.. [18:14:46] JeroenDeDauw: No, I have a list of places, is there a way to display these on a map? [18:15:02] I want to create an extension that, when invoked within a page, keeps the rest of the page from being rendered and sent to the user. I'm not sure what hook to start with, any suggestions? [18:15:03] with annotations for times [18:20:12] using templates or something like that, there could be a way [18:22:36] With respect to parsing, I'd want to insert something like {{#drop}}, and everything after that is dropped. It'll be a little more work than that, what I really want to do is keep the free text from being rendered, but I'm starting with the simple questions. [18:43:59] nischayn22|Afk: sure [18:44:27] nischayn22|Afk: if you have the data in SMW, you can display it with Semantic Maps [18:44:39] You can also just specify the stuff in #display_map ofc [19:14:59] New patchset: Mwjames; "(bug 38094) implement several changes - Load ecanvas dynamically using Krinkle's jquery.profile example - Move canvas element into JS" [mediawiki/extensions/SemanticResultFormats] (master) - https://gerrit.wikimedia.org/r/14614 [19:16:37] Change merged: Jeroen De Dauw; [mediawiki/extensions/SemanticResultFormats] (master) - https://gerrit.wikimedia.org/r/14614 [19:17:14] Change abandoned: Jeroen De Dauw; "(no reason)" [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/14282 [19:29:27] New patchset: Mwjames; "(bug 38229) for cases with an empty result set a possible default message is printed - changed to ( === false ) but did not work so changed to ( == '' ) instead" [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/14606 [19:34:31] raymond * r115596 /trunk/extensions/ (6 files in 6 dirs): Localisation updates from http://translatewiki.net. [19:36:13] New patchset: Jeroen De Dauw; "use self:: to ref static stuffs" [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/14660 [19:40:02] New review: Jeroen De Dauw; "Looks like the default is already used on line 231." [mediawiki/extensions/SemanticMediaWiki] (master); V: 0 C: -1; - https://gerrit.wikimedia.org/r/14606 [19:44:07] New patchset: Mwjames; "Add getQuery()" [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/14609 [19:47:45] hello again [19:48:04] had to quit real quick [19:48:08] (last night) [19:50:17] I'm sure this is really dumb, but I've totally forgotten how to query properties from within an SIO [19:50:54] I'm populating the SIO here: http://seqanswers.com/wiki/Ontology:EDAM using this template: http://seqanswers.com/wiki/Template:Ontology_term [19:51:34] New patchset: Jeroen De Dauw; "Add getQuery()" [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/14609 [19:52:22] faceface - what's the query you're trying to run? [19:53:11] hi Yaron, I just want to query all the values of all the properties of the SIO [19:53:18] http://seqanswers.com/w/index.php?title=Ontology:EDAM&action=edit [19:53:26] New review: Mwjames; "The implementation in line 230/231 runs before the actual result printer is executed. " [mediawiki/extensions/SemanticMediaWiki] (master) C: 0; - https://gerrit.wikimedia.org/r/14606 [19:53:39] New review: Jeroen De Dauw; "Still not entirely sure why you need this (building tables via ajax should be done using the ask API..." [mediawiki/extensions/SemanticMediaWiki] (master); V: 1 C: 2; - https://gerrit.wikimedia.org/r/14609 [19:53:41] Change merged: Jeroen De Dauw; [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/14609 [19:53:55] {{#ask:[[Ontology term::+]]|?Ontology term|?Ontology|... }} [19:54:34] Change merged: Jeroen De Dauw; [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/14660 [19:54:54] Yaron: that doesn't work for some reason [19:55:06] http://seqanswers.com/wiki/Ontology:EDAM [19:56:23] the Ontology column is blank, but I'm sure I'm setting it correctly in the template [19:56:29] It may possibly help to create all of the properties that you're using. [19:56:36] Yaron: will do [19:56:45] New review: Jeroen De Dauw; "I see. This might be the desired behaviour though, which would be made impossible by this change." [mediawiki/extensions/SemanticMediaWiki] (master); V: 0 C: -1; - https://gerrit.wikimedia.org/r/14606 [19:57:19] these things seem to always trip me up [20:00:28] no change... made them all strings [20:01:55] the template looks OK, but obviously somehting is wrong: [20:01:58] http://seqanswers.com/w/index.php?title=Template:Ontology_term&action=edit [20:02:29] I figure I'll update semantic bundle, if there is no MW dependency beyond 1.16? [20:03:17] can't update beyond 1.16 because we have a 'cross site' login on this site that doesn't work with new versions [20:03:28] You shouldn't update SB, then. [20:03:33] Try resaving the page, though. [20:07:58] New review: Mwjames; "OK, in this case I abandon this change and apply a fix for LinePrinter because I need this to be fix..." [mediawiki/extensions/SemanticMediaWiki] (master) C: 0; - https://gerrit.wikimedia.org/r/14606 [20:12:12] Change abandoned: Jeroen De Dauw; "(no reason)" [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/14606 [20:28:39] New patchset: Mwjames; "(bug 38229) Display default in list printer in case result set is empty" [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/14661 [20:32:40] New patchset: Mwjames; "(bug 38229) Display default in list printer in case result set is empty" [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/14661 [21:34:54] sorry, hard for me to get any time these days.. [21:35:09] Yaron: new SB is incompatible with mw <=1.16? [21:35:34] I'm... not sure. It miht be. [21:35:36] might. [21:35:44] The next version of SB definitely will be. [21:36:14] I see... not sure how to get past this dep issue with our login [21:36:30] I'm re-saving the template and now the page... [21:39:05] hmm... same problem [21:39:31] http://seqanswers.com/wiki/Ontology:EDAM [21:39:40] I'm sure it's probably something trivial [21:39:41] New patchset: Jeroen De Dauw; "Nicified param defs in queryprocessor" [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/14663 [21:40:06] I may try current SB then... if I get an hour ;-) [21:41:34] faceface - you need to actually change the page, in order to re-save it; otherwise the save doesn't go through. [21:41:46] Just some minor change is enough, like adding a space or newline. [21:42:02] OK, did that for template, but not main page... [21:43:38] still fails, and properties don't list any values, e.g. http://seqanswers.com/wiki/Property:Term_ID [21:44:26] I'll try with the sio in the page instead of in the template, although it shouldn't make a diff.. [21:45:13] That's weird, that it doesn't work... [21:45:19] yeah [21:45:29] By the way, why is it "{{{1|1}}}" in the template, and not just "{{{1}}}"? [21:45:52] Yaron: just for testing that the template call was correct [21:46:08] i.e. something should get set even if params are passed incorrectly [21:46:14] Well, it's not displaying anything, which is weird too. [21:46:22] Actually, that part is even weirder. [21:47:06] Yaron: I just edited the template to remove the display part [21:47:14] perhaps that is what's confusing you? [21:47:39] * faceface saves the page with one SIO embedded direcly [21:47:46] Oh, okay - I didn't see the change. [21:48:46] as expected, the SIO fails to set property values, i.e. it's not the template call causing problems... I think [21:50:01] bah :-) [21:50:15] got it... 'x = y' != 'x=y' ... I think... [21:50:22] Oh... [21:50:27] why do I always do this ? ;-) [21:50:38] Someone may have complained about that before.... I should have fixed it. [21:50:47] Yaron: it may be fixed in latest [21:50:54] Maybe I did fix it, actually, in a more recent version... right. [21:51:13] this is my update blocker: http://www.mediawiki.org/wiki/Extension:VBulletin/Users_Integration [21:51:18] (or similar) [21:51:27] Working on: vBulletin 3.5.4 and MediaWiki 1.6.3 [21:53:06] OK, working great now [21:55:11] Cool. [21:55:23] Well, that's going to a problem, in the long term... [21:55:43] yeah... I'll have to work out what's failing at some point [21:56:19] Yaron: have you had 'hierarchical properties' as a feature request for drill down? [21:56:35] Possibly - it depends what you mean. [21:56:58] on this site, I have a field called 'software licence', and some terms are very general, like GPL, and some specific, like GPLv3 etc. [21:57:44] 'somehow' it would be great if SD could take such hierarchies into account: http://seqanswers.com/wiki/Special:BrowseData [21:58:02] Oh - you can already have a filter B that only shows up once a value for filter A is selected. [21:58:36] Yaron: but currently it's just one field, not an explicit, but a 'growing' hierarchy of licence terms [21:59:07] Oh, I see - it's all in one field. [21:59:19] so I'd like to be able to go in, and say somewhere, 'GPLv3' is 'a type of' 'GPL', and 'somehow' SD would handle that... [21:59:37] Well, it seems like the first part of that is the challenging part. :) [21:59:38] yeah, each field has some hierarchical quality to it on this site [22:00:00] like 'Mac OS' and 'Mac OS X' etc [22:00:15] Right - I mean, SMW itself can't really do that. [22:00:51] so the natural way to do hierarchies is categories, but SD only understands one level... [22:01:25] Well, it can do categories as well... [22:01:32] so perhaps 'choose a catgegory' could be replaced by a category tree? [22:01:48] Yaron: can you explain? [22:02:15] SD shows subcategories for the given category - it appears as another filter. [22:03:08] oh, I didn't know that. so in this case, I'd make 'Licence' a sub category of 'bifx application', and have the hierarchy there? [22:03:28] is there an example of this working somewhere? [22:04:54] I guess 'drilling down' into multi-faceted hierarchial data is always going to be tricky [22:05:19] http://discoursedb.org/wiki/Special:BrowseData/Sources [22:05:42] ty [22:07:17] Yaron: awesome! [22:07:49] looks like exactly what I need... except I need to re-do all (most of) my properties as categories [22:08:33] Yaron: btw, do you see Sources listed in the category box twice here: http://discoursedb.org/wiki/Special:BrowseData/Sources?_subcat=Magazines&_subcat=British_magazines [22:08:57] Oh, weird. [22:09:06] sorry, it's always listed twice [22:09:07] brb [22:27:29] Yaron: also getting an error when trying to preview this page: http://discoursedb.org/w/index.php?title=The_Daily_Mirror&action=formedit [22:27:54] (I wanted to put some sources with country UK into the UK magazines category) [22:28:15] Oh... thanks for letting me know. [22:28:19] np [22:32:02] Hmm.. I'm not sure this will work perfectly though... I still want each different sub-category listed on a separate line, like I have currently for Licence, OS, etc [22:32:14] Ah - you can't do that. [22:33:08] The ideal would be support for hierarchical properties, defined by some 'child of' property on the properties [22:33:24] Right - well, hierarchical property values. [22:33:37] oh, right [22:34:15] anyway, just thought I'd ask you're opinion since you're here, and I've been thinking about how to 'solve' this for seqwiki [22:34:20] The best approach (actually, the only approach at this point, I think) is to split it up into more than one field. [22:34:26] right [22:34:54] that's certainly possible, I'm just exploring what has been done by users... [22:35:11] i.e. it turns out that this is the way they use the wiki... [22:35:29] many thanks for time and help [22:37:25] btw, random feature request... ther isn't much point linking a filter value when their is only 1 tool that matches another filter, e.g. http://seqanswers.com/wiki/Special:BrowseData/Bioinformatics%20application?Bioinformatics_method=regulatory_element_annotation [22:38:05] i.e. "Language: Perl (1)", clicking that isn't usefull [22:38:35] but this is a huge edge case, please ignore me [22:57:13] if I associate a property with a default form, can I set things like 'popup' on the resulting formlink? [22:58:40] currently it just generates links like this: http://seqanswers.com/wiki/Special:FormEdit/Biological%20domain/Sequencing (for the value 'Sequencing' of the 'Biological domain' property with the default form 'biological domain' [22:59:06] I guess I don't really need it, but I've always wanted to create a popup form ;-) [22:59:53] I guess I should turn off the 'default form' auto link, and 'manualy' link it in the template where the property is displayed