Hi all 

I've noticed an odd issue with the DBPedia SPARQL endpoint which
did not previously exist. 

Given the following example query: 

PREFIX
rdfs:  SELECT * WHERE {?s a rdfs:Class } LIMIT 50 

I send the query to
DBPedia using a HTTP client with the following accept header:


application/sparql-results+xml,application/sparql-results+json;q=1.0


And it comes back fine. 

But if I use a broader accept header it returns
a 500 response. The accept header in question is as follows:


application/rdf+xml,text/xml,text/n3,text/rdf+n3,text/turtle,application/x-turtle,application/turtle,text/plain,application/x-ntriples,application/json,text/json,application/sparql-results+xml,application/sparql-results+json;q=0.9,*/*;q=0.8


This used to work fine as this is code integrated in an application which
I have tested without issue in the past. The reason I want to send this
broader header is that I don't know ahead of time whether the query I'm
sending is a query that returns a result set (i.e. ASK/SELECT) or a query
that returns a graph (i.e. CONSTRUCT/DESCRIBE) 

Changing the Accept Header
to */* is a possible option on my side (though not ideal as I want to limit
my accepted content types to those for which I have parsers) but there does
seem to be an issue at DBPedia's end? What is the problem and can this be
fixed at your end? 

I would prefer not to have to parse the query locally
and then send a more limited header as that procludes the user entering
queries containing custom SPARQL extensions that my parser won't understand


Rob  
-- 
PhD Student
IAM Group
Bay 20, Room 4027, Building
32
Electronics & Computer Science
University of Southampton
 
------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a 
Billion" shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
Dbpedia-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion

Reply via email to