[00:00:06] Change merged: Yaron Koren; [mediawiki/extensions/SemanticDrilldown] (master) - https://gerrit.wikimedia.org/r/33152 [03:35:40] so ... asking again ... how the BLEEP does a property "Phone number" get transformed wrongly into a property "Telephone number" during an upgrade from SMW ~1.5 to 1.7 ? [03:47:55] bonsaikitten: bug? [03:48:31] Yaron: maybe. any idea how I could track it down? [03:49:12] I have no idea *how* that would happen, it doesn't really make sense that just this one property gets renamed [03:50:09] bonsaikitten: my guess is that the property type called "Phone number" was changed to "Telephone number", and the upgrade overzealously looked for every string in the wiki that matched that. [03:51:13] why ... how ... NO ;) that's really badly wrong [03:51:39] is there an easy way to revert such a change? [03:53:27] bonsaikitten: just move the page back (if I understand the issue correctly). [03:53:48] Yaron: the problem is that about 2k pages now look for the wrong property [03:54:05] and a dozen templates exploderate because of course the "old" property is now missing [03:54:17] You have 2000 pages where "Telephone number" is hardcoded? [03:54:45] I have about 2k pages that generate/have a phone numer property which is now broken [03:54:55] Via a template? [03:55:31] multiple templates [03:55:54] So - the SMW upgrade changed the string "Phone number" to "Telephone number" in several templates? [03:56:28] I'm not quite sure what it changed, the property name changed, and the templates are referencing the old one [03:57:04] So, as I said, find the page "Property:Telephone number" and move it "Property:Phone number". [03:57:25] (move it to) [03:58:17] that doesn't fix that now the pages generate a wrong property [03:59:23] What do you mean by that? [03:59:46] let me just try to move it [04:04:38] ok, that seems to be half a fix [04:05:23] Great. [04:05:24] now I just have to figure out why I get an error "has improper value" error [04:05:46] also, template parsing seems to be subtly different in 1.7 [04:08:39] [193e14f4] 2012-11-13 04:08:22: Fatal exception of type SMWDataItemException <-- ever seen a failure like that? :) [04:13:06] bonsaikitten: probably, at one point or another... where are you seeing that? [04:13:42] Yaron: upgrade to 1.7.1 broke a mildly complex query in that way [04:13:54] with MW 1.19 it gave a traceback, with 1.20 it only prints this error [04:14:07] Oh, okay - that I don't know. [04:14:55] traceback: http://bpaste.net/show/giRvYxHzbF2FKIhk73ND/ [04:17:46] Oh, that's in my code. [04:19:09] It's trying to set a property whose name is just "-", and failing - do you know why that's happening? [04:19:34] no idea, if you need more information just ask, I can also provide the query etc. [04:19:42] I mean, why there's a property called "-". [04:19:53] Yes, the query in the RunQuery template would be helpful. [04:21:13] http://bpaste.net/show/uZ8zePtztJcKWDzHRmBB/ [04:23:09] bonsaikitten: the notation like "?Total amount#-" might be incorrect. [04:23:23] ...and could be the source of the problem. [04:23:25] the - is needed for formatting afair [04:23:42] It might be that "?Total amount=-" is the correct version. [04:23:57] hmm, let me try. It did work as expected with older versions [04:25:16] nope. change to =- still causes the same failure [04:26:22] So when do you see the error? When you run Special:RunQuery? [04:27:20] yes, wiki/index.php/Special:RunQuery/Invoice_query [04:27:53] it's the only one that doesn't work, everything else (modulo things like phone numbers) survived the upgrade [04:28:59] bonsaikitten: for lack of another idea, I would recommend getting rid of all the "#-" and "=-" and seeing if that fixes the problem. [04:29:27] Yaron: I can try, but that might mess up formatting badly [04:29:41] Well, you can always undo. [04:29:43] I remember having to add it in places [04:29:54] of course, and this is just a testing install to prepare for migration [04:32:32] Yaron: ... no, that doesn't fix it either [04:33:07] is there a simple way to get more debug info (like backtraces)? [04:34:26] If you're using a recent-ish version of MediaWiki, you can add "$wgDebugToolbar = true;" to LocalSettings.php - it's a great new tool. [04:35:29] when it works [04:35:38] it doesn't appear on all pages etc. [11:52:40] hi does anyone know how to build a semantic form [12:22:27] This is my example code [12:22:29] {{{1}}} is an actress[[Category:Actress]] born in {{{2}}}, [[Has state::{{{3}}}]], U.S. Her height is [[Has height::{{{4}}}]]. {{born}} [[Has year::{{{5}}}]]. [12:22:46] Now I would like to fill the {numbers} with a form [14:48:06] Hi can anybody help me with semantic_form [14:51:18] New patchset: Jeroen De Dauw; "Fixed a bunch of issues with feed printer" [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/33117 [14:51:40] New patchset: Mwjames; "Merge branch 'master' into 1.9.x" [mediawiki/extensions/SemanticMediaWiki] (1.9.x) - https://gerrit.wikimedia.org/r/33189 [14:52:31] Change merged: Mwjames; [mediawiki/extensions/SemanticMediaWiki] (1.9.x) - https://gerrit.wikimedia.org/r/33189 [14:54:43] New patchset: Mwjames; "(Bug 36309) Introduce +sep= as a multiple value identifier in #set" [mediawiki/extensions/SemanticMediaWiki] (1.9.x) - https://gerrit.wikimedia.org/r/32347 [14:58:18] New review: Mwjames; "Unit tests OK (8 tests, 16 assertions)" [mediawiki/extensions/SemanticMediaWiki] (1.9.x); V: 1 C: 0; - https://gerrit.wikimedia.org/r/32347 [15:04:09] !ask [15:04:27] Is the bot just not working here at all? [15:04:30] Oh well. [15:04:47] Domerich: just ask your question(s). [15:08:25] okay i have read several things about creating a query form but i dont get to terms with it [15:09:24] So there is only one Category in my database and I would like to search in that [15:10:11] Database = Wiki? [15:10:47] yes [15:11:10] so now I have created a form:Item_query [15:12:36] and I have come across this example http://pastebin.com/ZptyrA6m [15:13:06] what is happening there? [15:14:40] for Example I have a Property called Has_name and I would like to search that [15:15:58] you know how to use basic #ask? [15:16:05] no [15:16:36] it should be like [[Category:Actress]][[Has_name::Jessica*]] [15:17:08] so all items with the Property Has_name containing Jessica* will be listed [15:17:59] yes. Try doing something like {{#ask: [[Category:Actress]] [[Has_name::~*Jessica*]] }} [15:18:04] on any page [15:18:28] read this: http://semantic-mediawiki.org/wiki/Help:Inline_queries [15:20:49] thank you [15:26:36] I forget Ive already read that last night ^^ [15:26:56] It works for when I ask numbers like birth year but names wont do :( [15:27:32] ask for the exact value [15:27:46] ... because the property didn't exist - sorry [15:27:56] just to check if the property is correctly set [15:27:57] .. [15:27:58] well :P [15:28:19] that was a logic error on my part [15:30:17] okay so my real problem was how to create a form so someone could search for Alba [15:35:04] there is very poor documention on how to use them IMO [15:40:01] where can I find some code a simple query form? [15:42:34] New review: Jeroen De Dauw; "Awesome :)" [mediawiki/extensions/SemanticMediaWiki] (1.9.x); V: 1 C: 2; - https://gerrit.wikimedia.org/r/32347 [15:42:34] Change merged: Jeroen De Dauw; [mediawiki/extensions/SemanticMediaWiki] (1.9.x) - https://gerrit.wikimedia.org/r/32347 [15:43:40] Domerich: http://hpaste.org/77663 [15:43:42] try this [15:44:11] you'll just have to create the form and the template and then set a link to Special:RunQuery/FORMNAME [15:45:15] what you just gave me I save as a form right? [15:46:52] there is a form and a template in that paste [15:47:03] you need a form to let the user enter data [15:47:19] and then a template to actually put that data in an #ask statement and show the results [15:47:39] interessant, let me try it out :) [15:48:00] read and understand it. You'll have to change the field names anyways [15:51:55] okay I read it [15:52:03] what does this mean: ! Vorname: [15:52:03] | {{{field|name}}} [15:52:20] my Property has_name will store the whole name only [15:53:50] it's just how it's displayed [15:53:55] change Vorname to Name: [15:54:37] and 'name' is just the name of the variable the user input gets saved in [15:55:03] okay I ran it via http://localhost:4001/wiki/index.php/Spezial:Abfrage_ausf�hren/ActressQuery [15:56:18] and? [15:56:42] it shows Vorlage:ActoressQuerier [15:56:50] my variables are all wrong I guess [15:57:23] typo ^^ [15:57:45] the form's name has to be ActressQuery [15:58:16] okay now it says: Actors with name "": [15:59:52] I guess you put the wrong pagetext in Form:ActressQuery [16:00:21] I will paste you what I have now [16:00:22] obviously the text from the Template is there [16:07:04] http://hpaste.org/77664 [16:07:08] that what I have [16:08:39] New patchset: Mwjames; "(Bug 39019) Add +sep= as a multiple value identifier in #subobject" [mediawiki/extensions/SemanticMediaWiki] (1.9.x) - https://gerrit.wikimedia.org/r/33193 [16:12:08] Im not sure about those: [16:12:09] | mainlabel=Has name [16:12:09] | ?Has year [16:12:09] | sort=name [16:12:17] what is the mainlabel [16:12:53] oh now that ive deleted them it works :) [16:13:46] "| sort=Has name" fixed it I guess [16:14:07] danke :) [16:14:40] yeah, sure. You'll have to sort by an existing column ;) [16:14:52] mainlabel is just the name of the main column [16:14:58] thats awesome [16:15:18] I just showed it to my room mates and they also thought it was impressive ;) [16:17:26] New review: Mwjames; "Uses the same ParserParameter class as #set which enables multiple values either by |Has property=Va..." [mediawiki/extensions/SemanticMediaWiki] (1.9.x); V: 1 C: 0; - https://gerrit.wikimedia.org/r/33193 [16:17:48] you can do a lot of nice stuff with smw... It just requires work and readin :/ [16:19:15] Yeah I just started yesterday and I dont know much about this stuff. But I find it very interesting [16:24:13] what does | mainlabel=Has name mean again? [16:27:51] it seems anything going like | ?Property in the form is irellevant, deleting it wont change anything [16:34:51] what do I have to know to create a Form that will allow a user to create a new wiki page by entering information? [16:35:09] my guts tell me {| class="formtable" isn't right [16:36:57] mainlabel is just the name of the first column [16:37:26] if you search for pages using #ask the first column displays the page names that are found [16:37:33] and the label in the first row is empty [16:37:59] so if your pages are actresses names, you could probably just use mainlabel=Name [16:38:29] To enter data you need pages in the Form namespace [16:38:36] edit some page like Form:Actress [16:39:54] ok now I understand the mainlabel [16:40:16] what do you mean by namespace? [16:40:59] there are namespaces in the wiki. The "main" namespace doesn't have a prefix. Like "Main page" or "Someotherpage". [16:41:20] but there are other namespaces like Form, Template, Special, etc [16:41:56] check http://localhost:4001/wiki/index.php/Spezial:Alle_Seiten [16:46:35] ah that shows all my articles :) [16:47:28] so every article is a main namespace [16:48:12] no. Every article is IN the main namespace [16:48:21] oh okay [16:48:22] use the dropdown to display different namespaces [16:48:43] ah there is all my stuff. nice :) [16:48:50] here is a demo I made some time ago: https://www.a-oben.org/wiki/index.php/Contact-Demo [16:48:53] maybe that helps [16:49:02] I am off now... bye [16:49:16] thanks ciao [16:49:25] how can i see the code though? [16:50:15] "View Source" [16:50:36] do I have to register first? [16:50:49] Change merged: Mwjames; [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/33117 [16:50:55] ah okay [16:51:08] view source is only avialable to main namespace [16:51:22] I will check that out thanks [16:51:58] https://www.a-oben.org/wiki/index.php?title=Form:Contact&action=edit [16:51:59] works for me... [16:52:35] just look at the linked pages (stuff used) and click "view source" on each of them [16:52:44] great thanks [16:52:51] bye [17:29:20] New patchset: Mwjames; "Merge branch 'master' into 1.9.x" [mediawiki/extensions/SemanticMediaWiki] (1.9.x) - https://gerrit.wikimedia.org/r/33196 [17:29:46] Change merged: Mwjames; [mediawiki/extensions/SemanticMediaWiki] (1.9.x) - https://gerrit.wikimedia.org/r/33196 [17:30:52] hiya, have a quick question [17:31:13] how does one use formlink to link to your own user page for editing? [17:31:21] Special:MyPage does not seem to work. [17:33:48] I tried using target=Special:MyPage. This displays Special:MyPage which is not editable. [17:35:25] maybe just [[Special:MyPage]] with has_default_form? [17:42:41] ok, I don't know if my original plan was going to work anyway, since they may need to create an account first. [20:09:31] Yaron: around? [20:09:52] Yaron: I have a JSON query that seems to be returning stale data. Any way to force the query to not be cached? [20:10:27] Are you using the External Data caching table? [20:12:41] not to my knowledge [20:12:53] adding &action=purge to the JSON query URI *seems* to fix it. [20:12:54] will test. [20:13:03] I am using xcache [20:13:08] Right - see here: http://semantic-mediawiki.org/wiki/FAQ#Why_doesn.27t_data_I_have_just_added_show_up_in_queries.3F [20:13:22] Not the same question, but the same answer. [20:14:44] ok [20:19:12] Yaron: I still don't think I am getting fresh data. [20:19:49] What are you doing? [20:22:57] Yaron: http://wiki.zenoss.org/Special:Ask/-5B-5BCategory:ZenPacks-5D-5D/-3FZenPack-20name/-3FSource-20URI/-3FDescription/format%3Djson/offset%3D0&action=purge [20:23:28] Yaron: ZenPack:NetApp should be listed, and it isn't. But it shows up fine in the category listing here: http://wiki.zenoss.org/Category:ZenPacks [20:23:58] Oh... oops. I thought you were talking about the External Data extension. [20:24:29] Does it show up when using a non-JSON format, like "table"? [20:24:39] let me see [20:25:18] Yaron: yes it does [20:26:15] That's very weird. [20:26:24] I don't know - I would submit a bug report about that [20:26:25] . [20:27:29] Yaron: can you think of any workarounds for the time being, as it is impacting a production feature on our wiki? [20:27:37] potential workarounds [20:27:56] Use "csv" instead? Assuming that one works. [20:28:43] Yaron: csv isn't working. [20:29:27] Yaron: I've noticed that the output is truncated at a certain # of results. [20:29:33] Yaron: I imagine that's the problem. [20:29:38] You can add "limit=". [20:29:45] ...like "limit=1000". [20:29:52] that is probably the problem. [20:30:00] I imagine there is a default limit. [20:30:03] Aha! [20:30:13] Yeah - 50 or 100, I think. [20:30:19] yep, that'd do it :) [20:31:53] Yaron: |limit=10000 in query doesn't fix it [20:32:14] What number of results is it showing? [20:32:16] limit is still 100 [20:32:17] 100 [20:33:32] looks like I may need to tweak LocalSettings.php? [20:34:32] $smwgQPrintoutLimit [20:34:45] Yeah - there's an SMW setting... yeah, that's the one. [20:35:08] there are a few others I might need. [20:36:47] still only getting 100 results. [20:36:49] urgh [20:38:32] ok, think I fixed it [20:38:41] set smwqQMaxInlineLimit too [20:38:52] wiki says it defaults to 500, seems to default to 100 now. So fixed that. [20:47:09] Yaron: resolved. changes to LocalSettings.php, plus explicitly specifying a limit above 100 in the query did the trick. [20:49:39] Great! [20:55:29] Is there a extension that has base64() so I can encode a property that contains illegal char strings like :: ? [21:20:48] I cant find one... so I am calling base64_encode().php directly with the external data extension... seems like the reasonable way to do it [21:42:34] where do I set CURLOPT_SSL_VERIFYPEER to false? I see the check in ED_Utils.php [21:46:48] voldial_: I think you can do it in either LocalSettings.php, or php.ini. [22:12:26] hm, I tried in php.ini CURLOPT_SSL_VERIFYPEER = false; but that didnt take... I must be confused on the syntax... I inserted "$CURLOPT_SSL_VERIFYPEER = false;" into ED_Util.php but I am still getting the CURLOPT_SSL_VERIFYPEER is not defined on this system - you must set $edgAllowSSL = "false" error... I am trying to query a https:// url with externaldata... I see examples like "curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); " but I dont h [22:12:26] ave curl_setopt() defined... [22:13:24] I have "$edgAllowSSL = true;" in LocalSettings.php [22:31:36] well... I just commented out the return; in that ED_Utils.php section and it works ;-) [22:33:35] kinda... it's still spitting out that warning.