Hi All,

Just in case anyone is interested. After further investigation I discovered that a redirect from /resource/Companion_%28manga%29 to / data/Companion_(manga).xml is taking place. The URL of the redirect, which is unencoded returns an empty RDF document. However, a request for the same encoded URL /data/Companion_%28manga%29.xml returns the populated RDF. So, it appears to me that there is some issue with the redirect and URL encoding.

Here is some relevant data from the traces I've done.



Initial Post:
GET /resource/Companion_%28manga%29 HTTP/1.1
Accept-Encoding: identity
Content-Length: 0
Connection: close
Accept: application/rdf+xml
User-Agent: Python-urllib/2.5
Host: dbpedia.org
Content-Type: application/x-www-form-urlencoded

HTTP/1.1 303 See Other
Server: Virtuoso/05.11.3039 (Solaris) x86_64-sun-solaris2.10-64  VDB
Connection: close
Date: Sat, 16 May 2009 21:19:50 GMT
Accept-Ranges: bytes
TCN: choice
Vary: negotiate,accept
Content-Location: Companion_(manga).xml
Content-Type: application/rdf+xml; qs=0.95
Location: http://dbpedia.org/data/Companion_(manga).xml
Content-Length: 0

Redirect:
GET /data/Companion_(manga).xml HTTP/1.1
Accept-Encoding: identity
Host: dbpedia.org
Connection: close
Accept: application/rdf+xml
User-Agent: Python-urllib/2.5

HTTP/1.1 200 OK
Server: Virtuoso/05.11.3039 (Solaris) x86_64-sun-solaris2.10-64  VDB
Connection: close
Date: Sat, 16 May 2009 21:19:50 GMT
Accept-Ranges: bytes
Content-Type: application/rdf+xml; charset=UTF-8
Content-Length: 167

<?xml version="1.0" encoding="utf-8" ?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"; xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#";>
</rdf:RDF>




and....



Request for /data/Companion_%28manga%29.xml

GET /data/Companion_%28manga%29.xml HTTP/1.1
Accept-Encoding: identity
Content-Length: 0
Connection: close
Accept: application/rdf+xml
User-Agent: Python-urllib/2.5
Host: dbpedia.org
Content-Type: application/x-www-form-urlencoded

HTTP/1.1 200 OK
Server: Virtuoso/05.11.3039 (Solaris) x86_64-sun-solaris2.10-64  VDB
Connection: close
Date: Sat, 16 May 2009 21:21:52 GMT
Accept-Ranges: bytes
Content-Type: application/rdf+xml; charset=UTF-8
Content-Length: 5262

<?xml version="1.0" encoding="utf-8" ?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"; xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#";> <rdf:Description rdf:about="http://dbpedia.org/resource/Companion_%28manga%29 "><dbpprop:nihongoProperty xmlns:dbpprop="http://dbpedia.org/ property/" xml:lang="en">...... Snipped for Brevity ..........</rdf:RDF>


Hi,

Long time listener, first time poster.

Was wondering if anyone may have experienced the following behaviour
when attempting to fetch resource pages from dbpedia.org?

If I make a request with the following characteristics the RDF
document is returned as expected.

- URL: http://dbpedia.org/resource/Companion
- Type: GET
- Accept: application/rdf+xml


However when making a request with the following characteristics I
receive an empty RDF document

- URL: http://dbpedia.org/resource/Companion_%28caregiving%29 or 
http://dbpedia.org/resource/Companion_(caregiving)
- Type: GET
- Accept:application/rdf+xml


The URL in the second case is referenced as a disambiguate of the
first, and if I view the same URL in a browser I get the redirect to: http://dbpedia.org/page/Companion_(caregiving)
which contains some data which I would expect should be on the
resource page.

Of note, this just began happening sometime during the past few days,
prior to that I was able to fetch data from pages with round braces in
the URL. Anyone else seeing similar behaviour?


Thanks! Matthew
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
_______________________________________________
Dbpedia-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion

Reply via email to