Any news on this bug? Still triggers in 2 different JSON modules as of
1 minute ago:
$ python -c "import jsonlib2; from urllib2 import urlopen; print
jsonlib2.read(urlopen('http://dbpedia-live.openlinksw.com/data/Obolensky.json').read()).keys()"
Traceback (most recent call last):
File "<string>", line 1, in <module>
jsonlib2.ReadError: JSON parsing error at line 23, column 363
(position 6010): Unexpected U+000A (
) while looking for printable characters.
$ python -c "import simplejson; from urllib2 import urlopen; print
simplejson.loads(urlopen('http://dbpedia-live.openlinksw.com/data/Obolensky.json').read()).keys()"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib64/python2.6/site-packages/simplejson/__init__.py",
line 307, in loads
return _default_decoder.decode(s)
File "/usr/lib64/python2.6/site-packages/simplejson/decoder.py",
line 335, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib64/python2.6/site-packages/simplejson/decoder.py",
line 351, in raw_decode
obj, end = self.scan_once(s, idx)
ValueError: Invalid control character at: line 23 column 363 (char 6010)
--
Joe Presbrey
On Mon, Jun 14, 2010 at 9:02 PM, Kingsley Idehen <[email protected]> wrote:
> Joe Presbrey wrote:
>> I've looked a little closer here and this now looks like a bug in
>> Virtuoso's JSON encoder.
>>
>> The server is sending unescaped newlines in JSON values/objects, eg.
>> ^M instead of "\n".
>>
>> From:
>> http://tools.ietf.org/html/rfc4627#page-5
>> the only characters allowed unescaped in JSON are:
>> %x20-21 / %x23-5B / %x5D-10FFFF
>>
>> Kingsley, is there a proper route for me to submit and follow this?
>> I'm sure you have other things...
>>
>
> Posting here or Virtuoso Open Source support forum is fine :-)
>
>
> Kingsley
>> --
>> Joe Presbrey
>>
>> On Mon, Jun 14, 2010 at 4:48 PM, Kingsley Idehen <[email protected]>
>> wrote:
>>
>>> Joe Presbrey wrote:
>>>
>>>> [presb...@endor ~]$ python -c "import jsonlib2; from urllib2 import
>>>> urlopen; print
>>>> jsonlib2.read(urlopen('http://dbpedia-live.openlinksw.com/data/Obolensky.json').read()).keys()"
>>>> Traceback (most recent call last):
>>>> File "<string>", line 1, in <module>
>>>> jsonlib2.ReadError: JSON parsing error at line 23, column 363
>>>> (position 6010): Unexpected U+000A (
>>>> ) while looking for printable characters.
>>>>
>>>> Obolensky on dbpedia.org works just fine, which confuses me as to
>>>> whether this is a bug against DBpedia or Virtuoso...
>>>>
>>>> [presb...@endor ~]$ python -c "import jsonlib2; from urllib2 import
>>>> urlopen; print
>>>> jsonlib2.read(urlopen('http://dbpedia.org/data/Obolensky.json').read()).keys()"
>>>> [u'http://en.wikipedia.org/wiki/Obolensky',
>>>> u'http://dbpedia.org/resource/Alexander_Obolensky',
>>>> u'http://dbpedia.org/resource/%D0%9E%D0%B1%D0%BE%D0%BB%D0%B5%D0%BD%D1%81%D0%BA%D0%B8%D0%B9',
>>>> u'http://dbpedia.org/resource/Obolensky',
>>>> u'http://mpii.de/yago/resource/Obolensky']
>>>>
>>>> --
>>>> Joe Presbrey
>>>>
>>>> ------------------------------------------------------------------------------
>>>> ThinkGeek and WIRED's GeekDad team up for the Ultimate
>>>> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
>>>> lucky parental unit. See the prize list and enter to win:
>>>> http://p.sf.net/sfu/thinkgeek-promo
>>>> _______________________________________________
>>>> Dbpedia-discussion mailing list
>>>> [email protected]
>>>> https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion
>>>>
>>>>
>>>>
>>> DBpedia-Live re-write rules issue or JSON generation bug (in the version
>>> behind DBpedia-Live).
>>>
>>> Both instances should give the same result.
>>>
>>> --
>>>
>>> Regards,
>>>
>>> Kingsley Idehen
>>> President & CEO
>>> OpenLink Software
>>> Web: http://www.openlinksw.com
>>> Weblog: http://www.openlinksw.com/blog/~kidehen
>>> Twitter/Identi.ca: kidehen
>>>
>>>
>>>
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> ThinkGeek and WIRED's GeekDad team up for the Ultimate
>>> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
>>> lucky parental unit. See the prize list and enter to win:
>>> http://p.sf.net/sfu/thinkgeek-promo
>>> _______________________________________________
>>> Dbpedia-discussion mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion
>>>
>>>
>>
>>
>
>
> --
>
> Regards,
>
> Kingsley Idehen
> President & CEO
> OpenLink Software
> Web: http://www.openlinksw.com
> Weblog: http://www.openlinksw.com/blog/~kidehen
> Twitter/Identi.ca: kidehen
>
>
>
>
>
>
> ------------------------------------------------------------------------------
> ThinkGeek and WIRED's GeekDad team up for the Ultimate
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> lucky parental unit. See the prize list and enter to win:
> http://p.sf.net/sfu/thinkgeek-promo
> _______________________________________________
> Dbpedia-discussion mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion
>
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Dbpedia-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion