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

2008-09-25 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

[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: nbsp;) 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

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: nbsp;) 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 Patrick. -- Key

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: 0x86E346D4

[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]:

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 that

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] 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 mar...@semantic-mediawiki.org wrote: Some brief comments from my side: * What Yaron proposes is possible

[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-26 Thread Patrick Nagel
__FILE__, 'name'=> 'SFCustomDateInput', 'version' => '0.1', 'author' => array( 'Patrick Nagel' ), 'description' => 'Provides a custom date (customdate) and a custom datetime (customdatetime) input for Semantic Forms', 'descriptionmsg' => 'SFCusto

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 write

[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

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 basically

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: [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

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

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