From: Markus K. <ma...@se...> - 2010-01-05 15:56:08
|
On Dienstag, 5. Januar 2010, Lior Gradstein wrote: > Hello, > > I noticed that when I choose JSON as an export format, I get an > invalid JSON output, which makes it totally unusable by any JSON > parser (I'm using the simplejson python module to read it, but any > will do). > > Some of the attributes (first in each block I think) are not quoted, > which should never happen: > > { > properties: { > > }, > items: [ > { > label: "Foobar 1067", > "uri" : "http://paris/index.php?title=Foobar 1067", > "type" : "Foobar" > }, > > [...] > > Here, properties, items and label must be quoted. > > I found a bug report from Neil Davies for this problem (hopefully, I'm > not the only one on earth to use JSON with SMW!) and even a patch (in > the same bug report, > https://bugzilla.wikimedia.org/show_bug.cgi?id=20241 ). > > What I don't understand is that this bug, which has a solution, has > been open on 2009-08-14, but the patch hasn't been committed, as of > 2010-01-05. I tried the patch, and it works correctly. > > Any information? Thanks for bringing this up. The main reason for this bug being open seems to be a temporal lack of development support for the SRF extension. The principal maintainer of SRF is Denny, but he has got a lot of work to do recently. Fabian (who owns the bug) is currently working on SMW (and, more importantly, on his studies ;-), so he did (apparently/obviously) not find the time yet to take care of this bug. I think we could commit the patch as soon as we have at least Fabian's confirmation that the earlier problems with it are gone now. But Fabian is currently looking at SMW bugs that are open for a longer time, and which need to be addressed in the SMW 1.5 release planned for the end of this month. So I would not ask him to spend additional time on SRF (of course, he may already have some insights on this issue, maybe at least enough to say what is still to be done). We have already had some bad experiences with committing patches from Bugzilla without sufficient review by someone who is really familiar with the code, so at least some SRF developer will have to take a look before anything is committed here. -- Markus > > Thanks for your help, > Lior Gradstein > > --------------------------------------------------------------------------- > --- This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and > easy Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Semediawiki-devel mailing list > Sem...@li... > https://lists.sourceforge.net/lists/listinfo/semediawiki-devel > -- Markus Krötzsch <ma...@se...> * Personal page: http://korrekt.org * Semantic MediaWiki: http://semantic-mediawiki.org * Semantic Web textbook: http://semantic-web-book.org -- |