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

Re: encoding sparql queries made to dbpedia

From: Monika Solanki <m.solanki@mcs.le.ac.uk>
Date: Sat, 13 Mar 2010 10:58:54 +0000
Message-ID: <4B9B6FEE.6020201@mcs.le.ac.uk>
To: Sergio Fernández <sergio.fernandez@fundacionctic.org>
CC: Linked Data community <public-lod@w3.org>
This is what I used, but I still had to do the replace.

Monika

Sergio Fernández wrote:
> Use the URLEncoder available in the standard Java API:
>
> http://java.sun.com/j2se/1.5.0/docs/api/java/net/URLEncoder.html
>
>
> On Sat, 2010-03-13 at 07:36 +0000, 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". 
>> Does anyone know of a better way to do this ?
>>
>> Thanks,
>>
>> Monika
>>
>>     
>
>   

-- 
Dr Monika Solanki
F27 Department of Computer Science
University of Leicester
Leicester LE1 7RH
United Kingdom
Tel: +44 116 252 3828
Google: 52.653791,-1.158414
http://www.cs.le.ac.uk/people/ms491
Received on Saturday, 13 March 2010 10:59:23 UTC

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