Looking at the headers that are returned it definitely looks like a server bug:

----------------------------------------------------------
http://dbpedia.org/resource/Ja%C3%ABl



GET /resource/Ja%C3%ABl HTTP/1.1

Host: dbpedia.org

User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-GB;
rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3

Accept: 
text/html,application/xhtml+xml,application/rdf+xml,text/rdf+n3,application/xml;q=0.9,*/*;q=0.8

Accept-Language: en-gb,en;q=0.5

Accept-Encoding: gzip,deflate

Accept-Charset: UTF-8,*

Keep-Alive: 600

Connection: keep-alive



HTTP/1.x 303 See Other

Server: Virtuoso/06.00.3122 (Solaris) x86_64-sun-solaris2.10-64  VDB

Connection: close

Date: Thu, 01 Oct 2009 21:53:13 GMT

Accept-Ranges: bytes

TCN: choice

Vary: negotiate,accept

Content-Location: Ja%C3%83%C2%ABl.xml

Content-Type: application/rdf+xml; qs=0.95

Location: http://dbpedia.org/data/Ja%C3%83%C2%ABl.xml

Transfer-Encoding: chunked

Content-Encoding: gzip

----------------------------------------------------------

http://dbpedia.org/data/Ja%C3%83%C2%ABl.xml



GET /data/Ja%C3%83%C2%ABl.xml HTTP/1.1

Host: dbpedia.org

User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-GB;
rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3

Accept: 
text/html,application/xhtml+xml,application/rdf+xml,text/rdf+n3,application/xml;q=0.9,*/*;q=0.8

Accept-Language: en-gb,en;q=0.5

Accept-Encoding: gzip,deflate

Accept-Charset: UTF-8,*

Keep-Alive: 600

Connection: keep-alive



HTTP/1.x 200 OK

Server: Virtuoso/06.00.3122 (Solaris) x86_64-sun-solaris2.10-64  VDB

Connection: close

Date: Thu, 01 Oct 2009 21:53:14 GMT

Accept-Ranges: bytes

X-SPARQL-default-graph: http%3A%2F%2Fdbpedia.org

Content-Type: application/rdf+xml; charset=UTF-8

Transfer-Encoding: chunked

Content-Encoding: gzip


----------------------------------------------------------


The Content-Location: Ja%C3%83%C2%ABl.xml is also a completely
separate bug, as it clearly should have /data/ at the front.

How does "%83%C2" get put into the middle of what would otherwise be
the correct UTF-8 encoded, percent encoded URL?

On a possibly unrelated note, why is the "X-SPARQL-default-graph"
header fully percent encoded so it isn't a valid URI until you
unpercent encode it? Could the URI contain characters that are not
allowed in HTTP headers and that is why it has to be escaped this way?

Cheers,

Peter

2009/10/2 Peter Ansell <ansell.pe...@gmail.com>:
> Why is double encoding necessary? This sounds like a bug with the server.
>
> Cheers,
>
> Peter
>
> 2009/10/1 Davide Palmisano <dav...@asemantics.com>:
>> Yves Raimond wrote:
>>> Hello!
>>>
>>> I am trying to get some RDF/XML out of that URI:
>>>
>>> http://dbpedia.org/resource/Ja%C3%ABl
>>>
>>> However,
>>>
>>> curl -L -H "Accept: application/rdf+xml"
>>> http://dbpedia.org/resource/Ja%C3%ABl gives me an empty RDF/XML
>>> document
>>>
>>> And same thing for http://dbpedia.org/resource/Jaël
>>>
>>> How can I get the RDF/XML for that resource?
>>>
>> try to double encode the last part of the URI:
>>
>> curl -L -H "Accept: application/rdf+xml"
>> http://dbpedia.org/resource/Ja%25C3%25ABl
>>
>>> Cheers,
>>> y
>>>
>>> ------------------------------------------------------------------------------
>>> Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
>>> is the only developer event you need to attend this year. Jumpstart your
>>> developing skills, take BlackBerry mobile applications to market and stay
>>> ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
>>> http://p.sf.net/sfu/devconf
>>> _______________________________________________
>>> Dbpedia-discussion mailing list
>>> Dbpedia-discussion@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion
>>>
>>
>>
>> --
>> ____________________________________
>>
>> Davide Palmisano
>> Head of Research and Development
>> Asemantics Srl - www.asemantics.com
>> Circonvallazione Trionfale 27
>> 00195 ROMA Italy
>> skype id: davidepalmisano
>> mobile: +393396101142
>> ____________________________________
>>
>>
>> ------------------------------------------------------------------------------
>> Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
>> is the only developer event you need to attend this year. Jumpstart your
>> developing skills, take BlackBerry mobile applications to market and stay
>> ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
>> http://p.sf.net/sfu/devconf
>> _______________________________________________
>> Dbpedia-discussion mailing list
>> Dbpedia-discussion@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion
>>
>

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Dbpedia-discussion mailing list
Dbpedia-discussion@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion

Reply via email to