[SMW-devel] PHP Fatal error after changing n-ary property to normal property

2008-09-24 Thread Patrick Nagel
Hi, I discovered a serious issue while playing with n-ary relations... I suspect it's a bug in SMW. I simply changed Property:Instant messenger == Type == [[Has type::String; String]] to Property:Instant messenger == Type == [[Has type::String]] and since then I get blank pages whenever I

[SMW-devel] n-ary relations - how to escape semicolons?

2008-09-26 Thread Patrick Nagel
Hi, I need to enter values which contain semicolons (specifically:  ) into n-ary properties - but SMW will interpret the semicolons as divider. How to get around this? Patrick. -- Key ID: 0x86E346D4http://patrick-nagel.net/key.asc Fingerprint: 7745 E1BE FA8B FBAD 76AB 2BFC C981 E686

Re: [SMW-devel] [Semediawiki-user] n-ary relations - how to escape semicolons?

2008-09-26 Thread Patrick Nagel
Patrick Nagel wrote: > I need to enter values which contain semicolons (specifically:  ) into > n-ary properties - but SMW will interpret the semicolons as divider. How to > get > around this? I made a bug report for this: https://bugzilla.wikimedia.org/show_bug.cgi?id=15732 Patri

Re: [SMW-devel] PHP Fatal error after changing n-ary property to normal property

2008-10-04 Thread Patrick Nagel
I just tried to reproduce this in the SMW sandbox, but there it works as expected. Has this bug been fixed in the (not-yet-released) SMW 1.4a running on the sandbox server, or is it not a bug, but a problem with my setup? Patrick. -- Key ID: 0x86E346D4http://patrick-nagel.net/key.a

Re: [SMW-devel] Adding 'headers' parameter to CSV format

2009-03-04 Thread Patrick Nagel
Hi, On 2009-03-04 04:46, Yaron Koren wrote: > Alright, since no one objected (and there was some support), I added in > code to SMW that prints out a header row for the CSV format, > conveniently suitable for the "CSV with header" option in the External > Data extension. If you're using the ver

[SMW-devel] Patch to make SMW output ISO8601 dates

2009-03-04 Thread Patrick Nagel
Hi, since I need our SMW to output ISO8601 date output (see [1]) I wrote a quick patch to SMW_DV_Time.php that honours the (newly introduced) $smwgISO8601DateOutput variable. Could something like this be included in SMW? Patrick. [1]: http://sourceforge.net/mailarchive/forum.php?thread_nam

Re: [SMW-devel] Patch to make SMW output ISO8601 dates

2009-03-04 Thread Patrick Nagel
Hi Markus, On 2009-03-05 03:09, Markus Krötzsch wrote: >> Could something like this be included in SMW? > > Yes. I suggest a slightly different control interface, though. The output is > only a problem for #ask queries, right? My suggestion is to use the existing > "printout modifier" mechanism

Re: [SMW-devel] Patch to make SMW output ISO8601 dates

2009-03-05 Thread Patrick Nagel
Hi, it's me again... I thought some more about On 2009-03-05 03:09, Markus Krötzsch wrote: > I suggest a slightly different control interface, though. The output is > only a problem for #ask queries, right?My suggestion is to use the existing > "printout modifier" mechanism that works for #ask

Re: [SMW-devel] Patch to make SMW output ISO8601 dates

2009-03-05 Thread Patrick Nagel
Hi Dmitriy, On 2009-03-05 16:51, CNIT wrote: >> I think it would be best to also have a possibility to set the >> SMW-wide default to ISO8601, like in my proposal. Adding a possible >> printout modifier value "localized" (which would override the SMW-wide >> default setting) would then give all

Re: [SMW-devel] Patch to make SMW output ISO8601 dates

2009-03-05 Thread Patrick Nagel
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Markus, On 2009-03-05 20:10, Markus Krötzsch wrote: > * I can imagine a global "date format" switch that may be set to ISO to make > it a default for all dates. But I do not know which printout modifier to use > for "normal" dates then (note that

Re: [SMW-devel] Patch to make SMW output ISO8601 dates

2009-03-05 Thread Patrick Nagel
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, On 2009-03-05 20:15, Markus Krötzsch wrote: >> There is one thing I'm not 100% sure about though: Your implementation >> always prints out a complete date, like '2009-03-05' by printing out a >> default of '01' for the MM and DD parts when they ar

Re: [SMW-devel] Adding n-ary relations/internal properties to SMW: a proposal

2009-03-09 Thread Patrick Nagel
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, (re-arranging the cited mail a bit, so that it can be read from top to bottom...) > On Mon, Feb 2, 2009 at 2:02 PM, Markus Krötzsch > wrote: > >> Some brief comments from my side: >> >> * What Yaron proposes is possible and makes sense. >>

[SMW-devel] [SF] Buttons to conveniently fill in date fields

2009-07-22 Thread Patrick Nagel
Hi, I brought this up before on the old Semantic Forms list [1]. At the time I thought it was a viable solution to put my own custom made buttons into the forms where I need them, and I used the HTMLets extension for that. The problem with this solution is, that it's quite unmaintainable. I have

Re: [SMW-devel] [SF] Buttons to conveniently fill in date fields

2009-07-22 Thread Patrick Nagel
Hi Yaron, On 2009-07-22 22:06, Yaron Koren wrote: > My personal opinion is that this doesn't seem like a useful feature - > first, because I've never seen such a thing on a web date input; and > second, because the SF date input already presets the current month and > year, so (unless you're on th

Re: [SMW-devel] [SF] Buttons to conveniently fill in date fields

2009-07-26 Thread Patrick Nagel
ngerprint: 7745 E1BE FA8B FBAD 76AB 2BFC C981 E686 86E3 46D4 __FILE__, 'name'=> 'SFCustomDateInput', 'version' => '0.1', 'author' => array( 'Patrick Nagel' ), 'description' => '

Re: [SMW-devel] SMW_DV_Time progress report

2009-07-27 Thread Patrick Nagel
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Temlakos, On Monday 27 July 2009 23:45:44 Temlakos wrote: > 1. Internationalize the twelve-hour clock conventions. I should > mention in this connection that twelve-hour times are present in written > documents only in America, Latin America (inc

Re: [SMW-devel] Poll: How to call error property?

2009-08-02 Thread Patrick Nagel
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Markus, first of all, thanks for the upcoming new release! Highly appreciated :) On 2009-08-02 21:32, Markus Krötzsch wrote: > The upcoming SMW release 1.4.3 will introduce a property that helps to find > input errors: its value will be the page

Re: [SMW-devel] [Semediawiki-user] Poll: How to call error property?

2009-08-03 Thread Patrick Nagel
Hi Markus, On 2009-08-03 14:57, Markus Krötzsch wrote: > Strictly speaking, a type is something that only a property has, so it could > be confusing to use it for values (I assume what you mean is "some value > given > to the property 'has' the wrong type"). Ok, scratch that :) I shouldn't wri

Re: [SMW-devel] [News] SVN update warning

2010-01-06 Thread Patrick Nagel
Hi Markus, On 2010-01-06 09:27 UTC Markus Krötzsch wrote: > The change will also introduce some fixed limit on how many values a > multi- valued property can at most have. It is currently set to 5. > If you have any such properties with more than 5 values then please > let me know. Is this rea

Re: [SMW-devel] (SMW_QueryPrinter.php) SMW::on & SMW::off

2010-02-04 Thread Patrick Nagel
Hi John On 2010-02-05 09:37, John McClure wrote: > I've changed L154 of SMW_QueryPrinter.php to: > -- > # $result = '[[SMW::off]]' . $wgParser->replaceVariables($result) . > '[[SMW::on]]'; //old line > $result = $wgParser->replaceVariables($result); > if( chr(13) == substr($result,0,1

[SMW-devel] Backwards incompatibility of SF 1.9? (was: Re: installing SF with mediaWiki 1.16)

2010-05-18 Thread Patrick Nagel
Hi Jack, could you please elaborate on On 2010-05-18 17:46 UTC Jack D. Pond wrote: [...] > without issues (except that I'm only half way through a 40+ hour job > of updating wikis to accomodate the backwards incompatibility of SF > 1.9). ? Patrick. -- Key ID: 0x86E346D4http://patr

[SMW-devel] [SIO] SIO assumes SM is installed and causes DB errors when it's not

2010-06-25 Thread Patrick Nagel
Hi, I just tried the latest SVN version of SIO, and am getting a database error on saving a page containing a #set_internal call: A database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was: (SQL query hidden) from within func

Re: [SMW-devel] Adding autocompletion for printouts to Special:Ask

2010-08-16 Thread Patrick Nagel
Hi, On 2010-08-17 02:16, Yaron Koren wrote: > Sanyam (who is cc'ed) has been working hard on his Google Summer of Code > project, which has been about converting SMW and various of its > extensions to use the jQuery Javascript library, and to generally use > more Javascript. The project is basical

Re: [SMW-devel] Slow/redundant refreshLinks queries

2010-09-25 Thread Patrick Nagel
Hi Daniel, thanks for your performance tuning tip, it's appreciated! I'm running a SMW-Wiki that's growing quickly, and I fear that soon a runJobs session will take longer than the alotted maintenance interval. Having runJobs during operation slows down the system too much, so that's not an opt

Re: [SMW-devel] How update properties of a page via API?

2010-11-30 Thread Patrick Nagel
Hi, On 2010-11-23 06:25, mo...@gmx.net wrote: > My goal is to automatically update the value of a specific property in an > article. [...] I use the pywikipedia bot framework for the task, and apply regular expression search & replace operations on the template calls. It's a bit slow, but it's

[SMW-devel] [SF] Patch to bring back IDs for SFDateInput

2011-01-17 Thread Patrick Nagel
Hi, today I updated from SF 1.9.1 to 2.0.8, and found my custom SFDateInput enhancement extension to be no longer working. Since the extension provides JavaScript to fill in Year/Month/Day with one click, it requires the year/month/day fields to have IDs. The attached patch to SF (r80431) re-intro

Re: [SMW-devel] [SF] Patch to bring back IDs for SFDateInput

2011-01-18 Thread Patrick Nagel
Hi Yaron, On 2011-01-17 13:56 UTC Yaron Koren wrote: > Could you explain what your SFDateInput extension does? The general > approach when using jQuery, which I've tried to get SF to follow, is to > use classes instead of IDs whenever possible - it leads to significantly > simpler code. Is it poss

Re: [SMW-devel] [SF] Patch to bring back IDs for SFDateInput

2011-01-19 Thread Patrick Nagel
Hi Yaron, On Wed, 19 Jan 2011 09:26:41 -0500, Yaron Koren wrote: > Okay - that sounds like a perfect case where jQuery can let you use > classes instead of IDs. The key is that the buttons have to be > contained within the same div or span as the date input - if you can > get that to happen (or

[SMW-devel] Problem with SMW and MySQL 5.1.49..52

2011-04-08 Thread Patrick Nagel
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I first encountered this in October 2010, when I switched to MySQL 5.1.50 on a testing system (while the production system is still running MySQL 5.0.91). The simple query {{#ask: [[Category:Freelancers]] [[Joe Smith]] }} suddenly returned nothi

Re: [SMW-devel] Matrix result formatter

2011-06-01 Thread Patrick Nagel
Hi Igor, On 2011-06-02 07:11, Igor Lobanov wrote: > I'm looking for a way to produce matrices out of relations between > arbitrary types of objects/pages in SMW. Simple example would be a > 'traceability matrix' between pages within such categories as 'Business > Requirement' and 'System Requireme