Hi DBpedia devs,
The JSON result set from DBpedia's main SPARQL endpoint contains escape
sequences that begin with `\U` whereas only `\u` is allowed as per RFC 4627
<http://www.ietf.org/rfc/rfc4627.txt>. Standards-compliant JSON parsers
break on such illegal strings.
Easy to reproduce with cURL and sed:
```bash
$ curl -H "Accept: application/sparql-results+json" "
http://dbpedia.org/sparql?query=SELECT%20DISTINCT%20?p%20?o%0AWHERE%20%7B%0A%20%20%3Chttp://dbpedia.org/resource/Barack_Obama%3E%20?p%20?o%20.%0A%7D%0A"
| sed -n 160p
{ "p": { "type": "uri", "value": "http://www.w3.org/2002/07/owl#sameAs"
} , "o": { "type": "uri", "value": "
http://got.dbpedia.org/resource/\U00010331\U00010330\U00010339\U00010342\U00010330\U0001033A_\U00010349\U00010331\U00010330\U0001033C\U00010330"
}},
```
---
​Cheers!,
Wouter Beek.
E-mail: m...@wouterbeek.com
WWW: www.wouterbeek.com
Tel.: 0647674624
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Dbpedia-developers mailing list
Dbpedia-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dbpedia-developers