[00:15:45] the constructor for class SMWSemanticData needs a subject, whereas before it did not. When I use SMWContainerSemanticData::makeAnonymousContainer() instead, I get an exception "Trying to get the subject of a container data item that has not been given any. This container can only be used as a search pattern." How do I indicate it is to be used as a search pattern, so that the exception goes away? [11:29:58] New patchset: Daniel Werner; "getType() to be static" [mediawiki/extensions/Validator] (master) - https://gerrit.wikimedia.org/r/67075 [11:31:53] Change merged: jenkins-bot; [mediawiki/extensions/Validator] (master) - https://gerrit.wikimedia.org/r/67075 [15:09:01] hypergrove: Still having problems with Store3? [17:50:38] Is anyone alive in the channel? I'm fairly sure the semantic api module is actively screwing with me [17:52:42] I'm using OR conditions in an API query that use properly escaped |s now, and it works excellently on a query that has about even numbers of properties in either category, but returns an empty set if I have more than one main category regardless of how many sub categories I pick [18:07:56] ah-ha! %5B%5BExamType%3A%3AUSMLE+Step+2+CK%5D%5D is wrong, while this: [[ExamType::USMLE Step 2 CK]] works. Anyone have any thoughts? [18:54:07] Alive in the channel, but blissfully ignorant about the api [18:54:32] Saruman: I envy you. [19:04:23] you can do it as well! [19:04:47] two or three cups of Ballantines and all API knowledge will have escaped you [19:05:03] Saruman: Give me two hours and I'll be there and then some. [19:05:32] hehehe [19:05:39] I'm one Irish Coffee ahead of you [19:09:00] ping yaron [19:09:18] Hello! [19:09:21] hey yaron [19:09:32] can you maybe help Ulfr_ out on some API troubles? [19:09:51] Ah... I don't know anything about the API. [19:09:52] darn [19:09:52] Whoa. You really are a wizard [19:10:06] * Saruman summons devs with a simple wand whizz [19:10:07] Maybe use Special:Ask instead, if the API isn't working? [19:11:10] yaron: That's what's maddening [19:11:25] when I copy paste the un-urlencoded queries into special ask or the browser bar [19:11:28] It works perfectly [19:11:35] when it gets encoded, it breaks [19:12:46] yaron: http://dpaste.com/1212446/ Examples of what happens are at the bottom. [19:13:18] I don't know, sorry. [19:13:26] yaron: Thanks anyways man :) [19:15:05] yaron: good afternoon! [19:15:26] Hello! [19:15:27] Saruman: I really wasn't trying to throw you under a bus in the proper MW channel, your advice is starting to sound pretty good honestly [19:15:28] :) [19:15:38] heheh [19:15:44] still one Irish coffee ahead of you [19:15:58] yaron: I'm working on some scripts to sync some wiki farms into WikiApiary. Finally got one done for Wikimedia itself. [19:16:01] Ulfr_ - may I remark something that's prolly stupid? [19:16:04] have this thread on some other host lists: http://wikiapiary.com/wiki/WikiApiary_talk:Operations/2013/June#Host_lists_for_other_farms.3F [19:16:10] Cool. [19:16:16] wondering if there is such a thing for Referata that is generally available? [19:16:27] (there is a referata reference in the last comment) [19:17:05] Ulfr_: in your dpaste at the bottom there's a call that's got encoded stuff; the last call directly below that is doubly encoded [19:17:12] surely that can't be right? [19:18:14] thingles: you mean a list of all Referata sites? I purposely haven't provided that. [19:18:26] Security through obscurity, and all that. [19:18:26] yaron: yeah... I thought that might be the case [19:18:29] Are you sure the last call must have mojo like "...+Internal+medicine+%26%23124%3B%26%23124%3B+Surgery..." [19:19:58] because %26%23124%3B%26%23124%3B is an encoding for || which is || [19:20:27] if there is any list you would want me to auto-populate into WikiApiary I would happily do that... [19:20:41] Ulfr_: so shouldn't it be "...+Internal+medicine+||+Surgery..."? [19:22:31] * Saruman hops downstairs for 2nd Irish Coffee [19:34:14] Saruman: If I don't encode the | it breaks the whole kit and kaboodle [19:34:33] ok, but I'd think it shouldn't be encoded twice? [19:35:09] that said, I don't even know how to spell "HTML Character Entity Encoding" [19:36:08] Ulfr_: test the call with no || in it, and if that works, then the API is doing what you want it to do, minus the || [19:36:29] then the question becomes "how to feed || to the API" [19:36:51] Saruman: Yeah. Apparently I can't just flag the call as not-to-be encoded [19:37:04] * Saruman can't spell "flag" either [19:38:04] Ulfr_: but tell me if "[[ ExamType :: USMLE Step 2 CK ]] [[ MainCategory :: Internal medicine]]" works [19:39:13] if it does, I think I can solve the next part of the problem [19:39:47] Saruman: That does work, but it makes for a monstrous sized query. What's maddening is if I only select one main category, it all works [19:39:55] even though Subcategory is using the bogus encoding [19:40:39] OK not a solution, but a strong clue [19:40:52] the api call is using a different encoding than HTML encoding [19:41:29] in your api call, you use | as an encodig for | [19:41:55] but the browser sends some other form of encoidng, where [ becomes %5B [19:42:34] I don't know what encoding that is [19:42:49] Saruman: It's encoding the % or the & [19:42:55] Saruman: What's REALLY throwing me for a loop is that a different exam type works perfectly [19:43:49] well, sniff in your browser how the call looks that does work & has || in it [19:44:40] without any escape or substitution it returns an empty set :( [19:46:20] ah, it's "percent encoding" [19:46:24] so the pipes should be %7C [19:47:04] Ulfr_: can you make it something like "...+Internal+medicine+%7C%7C+Surgery..."? [19:47:18] Saruman: Yup. One sec [19:50:21] Saruman: http://pastebin.com/UAGAXQbd [19:50:35] Main has %7C, Sub has | [19:51:04] that was not exactly as I intended it [19:51:32] you are using %7C in Broken Query Unparsed, I'd expect to (still) see | in there [19:52:00] I would like to see %7C in place of the | in the second part, broken query parsed [19:52:30] Saruman: I can't do that, it's a special character used for breaking up parts of a call [19:52:34] |? etc. etc. [19:52:37] yah [19:52:57] there's an extension taht lets you edit parser calls before they leave your browser [19:53:06] TamperData or something [19:53:49] to me it just looks like what's sent is not properly encoded at the place where | sits [19:54:08] in your current attempt it's still not properly encoded [19:54:23] Saruman: Yup. I can get it working if I fiddle with the values in Tamper, but that helps me not [19:54:33] * Ulfr_ shudders to think of doctors using tamperdata near his program [19:54:34] it gives you the root cause [19:54:49] once your diagnosis is in, you can start thinking about a cure [19:55:06] "Internal+medicine+%257C%257C+Surgery" should be "Internal+medicine+%7C%7C+Surgery" [19:55:45] * Saruman would like to point out at this point that he has NO CLUE what he's talking about [19:56:47] * Ulfr_ hasn't had a clue in the slightest since he realized he had to learn jQuery [19:57:21] hmmm another word I can't spell [19:58:57] Yeah, at this point the doctors just send me links and I copy and paste [19:59:00] err words [22:14:21] hi [22:15:10] I have a page that contains an ask statement resulting in a table. However, when values of the semantic attributes in that table change, the content of that page doesn't immediately update the fields [22:15:26] I have to save the page containing the table in order for it to refresh [22:15:32] is it possible to let it auto refresh every time? [22:34:50] disabling caching server-wide solves the problem [22:35:00] another question: Is it possible to prevent ask querie columns to be links? [22:35:30] New patchset: Mwjames; "Fix offset display in Special:Ask" [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/67170 [22:39:11] Change merged: jenkins-bot; [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/67170 [22:42:39] New patchset: Mwjames; "Fix fatal when predefined properties are no longer exists" [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/64938 [22:46:24] New patchset: Mwjames; "Fix fatal when predefined properties are no longer exists" [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/64938 [22:52:31] New review: Mwjames; "Sorry but I have to merge this now since it constantly squeezes may patience to work around this bug." [mediawiki/extensions/SemanticMediaWiki] (master) C: 2; - https://gerrit.wikimedia.org/r/64938 [22:53:50] Change merged: jenkins-bot; [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/64938