On 19/03/13 20:12, Sarven Capadisli wrote:
On 03/19/2013 08:35 PM, Andy Seaborne wrote:
On 19/03/13 18:59, Sarven Capadisli wrote:
Hi,
I'm having an issue that I can't pinpoint its source. The complete log
from the Fuseki server is at [1].
I get the following error when my application sends a query with
DESCRIBE or CONSTRUCT:
org.apache.jena.riot.RiotException: No graph writer for null
The request URL has:
....&output=html
and there is no HTML return type. Needs a better message and better
handling (and no stacktrace) but it's a bad request.
Just for me to learn from this, would you mind elaborating on the
rationale for removing output=html?
The point of "output" is to be able to force the choice when "Accept" is
hard to set or ends up conneg'ing to the wrong thing. There is no
"html" writer (you can add one if you want - the new writer system is
fully extensible).
+1 one better message :)
Already done!
Remove the &output=html (and still use Accept: */*) and I get RDF/XML.
I just had my 'woah' moment of the day. Thanks for that!
The same query works fine when I use the SPARQL Endpoint or TDB
directly.
I used tdbloader to load the RDF data into a named graph and used a
vanilla TDB assembler file.
I've checked permissions of the store files too.
As far as I can tell, the query makes it to the service fine.
And because I like to live on the bleeding edge:
Jena: VERSION: 2.10.1-SNAPSHOT
Jena: BUILD_DATE: 20130319-1018
ARQ: VERSION: 2.10.1-SNAPSHOT
ARQ: BUILD_DATE: 20130319-1018
RIOT: VERSION: 2.10.1-SNAPSHOT
RIOT: BUILD_DATE: 20130319-1018
TDB: VERSION: 0.10.1-SNAPSHOT
TDB: BUILD_DATE: 20130319-1018
which includes all the new writer stuff :-)
Which makes even more sense now why it was working on one server and not
the other. I guess this one got caught.
I suspect that when it asked for "html" it defaulted to something
(RDF/XML) by accident.
Any direction would be great.. otherwise, I might have to convince
myself to step away from keyboard for a long time.
Thanks,
[1] https://gist.github.com/csarven/5198926
-Sarven
http://csarven.ca/#i
Thanks again. Now I can call it a day :)
-Sarven