W3C home > Mailing lists > Public > public-lod@w3.org > March 2010

Re: encoding sparql queries made to dbpedia

From: Damian Steer <d.steer@bristol.ac.uk>
Date: Sat, 13 Mar 2010 11:44:54 +0000
Cc: Linked Data community <public-lod@w3.org>
Message-Id: <74926C2B-1809-473A-BC8D-03825D7787D3@bristol.ac.uk>
To: m.solanki@mcs.le.ac.uk

On 13 Mar 2010, at 07:36, Monika Solanki wrote:

> Hello,
> 
> While programmatically accessing dbpedia through GET using Jersey, I had to urlencode the query to UTF-8 and then replace the "+" with "%20".

Yep, that's a well know (but rarely understood) oddity. [1]

> Does anyone know of a better way to do this ?

Have you tried UriBuilder? [2]

Damian

[1] <http://en.wikipedia.org/wiki/Percent-encoding#The_application.2Fx-www-form-urlencoded_type>
[2] <https://jsr311.dev.java.net/nonav/releases/1.1/javax/ws/rs/core/UriBuilder.html>
Received on Saturday, 13 March 2010 11:45:42 UTC

This archive was generated by hypermail 2.3.1 : Sunday, 31 March 2013 14:24:25 UTC