Hi Martynas,

more specifically the ";charset=utf-8" seems to be a problem. If you leave it out it seems to work fine:

curl  -H "Accept: application/rdf+xml, application/n-quads, text/csv" http://dbpedia.org/resource/Copenhagen -L

Do you really still need this? UTF-8 seems to be ubiquitous.

I didn't check q=0.x or similar. There seems to be something with the ";".

-- Sebastian





On 20.10.18 10:44, Martynas Jusevičius wrote:
Hi,

I think I had shown this to Kingsley some time ago, but it's still not fixed :)

When presented with multiple Accept header options, DBPedia respons
with some weird Content-Location header and an empty RDF graph:

GET http://dbpedia.org/resource/Copenhagen
Accept: application/rdf+xml; charset=UTF-8,application/n-quads;
charset=UTF-8,text/rdf+n3; charset=UTF-8,application/n-triples;
charset=UTF-8,text/csv; charset=UTF-8,application/ld+json;
charset=UTF-8,application/rdf+xml;
charset=UTF-8,application/rdf+thrift; charset=UTF-8,text/turtle;
charset=UTF-8,application/rdf+json; charset=UTF-8,text/trig;
charset=UTF-8

200
Date: Sat, 20 Oct 2018 08:24:36 GMT
Content-Type: application/rdf+xml; charset=UTF-8
Content-Length: 170
Connection: keep-alive
Server: Virtuoso/07.20.3229 (Linux) i686-generic-linux-glibc25-64  VDB
Expires: Sat, 27 Oct 2018 08:24:36 GMT
Content-Location: @_...@copenhagen.xml
Link: 
<http://creativecommons.org/licenses/by-sa/3.0/>;rel="license",<http://dbpedia.org/data/@__@Copenhagen>;
rel="alternate"; type="application/rdf+xml"; title="Structured
Descriptor Document (RDF/XML format)",
<http://dbpedia.org/data/@__@Copenhagen>; rel="alternate";
type="text/n3"; title="Structured Descriptor Document (N3/Turtle
format)", <http://dbpedia.org/data/@__@Copenhagen>; rel="alternate";
type="application/json"; title="Structured Descriptor Document
(RDF/JSON format)", <http://dbpedia.org/data/@__@Copenhagen>;
rel="alternate"; type="application/atom+xml"; title="OData (Atom+Feed
format)", <http://dbpedia.org/data/@__@Copenhagen>; rel="alternate";
type="application/odata+json"; title="OData (JSON format)",
<http://dbpedia.org/page/@__@Copenhagen>; rel="alternate";
type="text/html"; title="XHTML+RDFa",
<http://dbpedia.org/resource/@__@Copenhagen>;
rel="http://xmlns.com/foaf/0.1/primaryTopic";,
<http://dbpedia.org/resource/@__@Copenhagen>; rev="describedby",
<http://mementoarchive.lanl.gov/dbpedia/timegate/http://dbpedia.org/data/@__@Copenhagen>;
rel="timegate"
X-SPARQL-default-graph: http://dbpedia.org
Cache-Control: max-age=604800
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
Access-Control-Allow-Methods: GET, POST, OPTIONS
Access-Control-Allow-Headers:
DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Accept-Encoding
Accept-Ranges: bytes

<?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>

Martynas
atomgraph.com


_______________________________________________
DBpedia-discussion mailing list
DBpedia-discussion@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion

--
All the best,
Sebastian Hellmann

Director of Knowledge Integration and Linked Data Technologies (KILT) Competence Center
at the Institute for Applied Informatics (InfAI) at Leipzig University
Executive Director of the DBpedia Association
Projects: http://dbpedia.org, http://nlp2rdf.org, http://linguistics.okfn.org, https://www.w3.org/community/ld4lt <http://www.w3.org/community/ld4lt>
Homepage: http://aksw.org/SebastianHellmann
Research Group: http://aksw.org
_______________________________________________
DBpedia-discussion mailing list
DBpedia-discussion@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion

Reply via email to