On 08/01/13 20:35, Jean-Marc Vanel wrote:
2013/1/8 Olivier Rossel olivier.ros...@gmail.com:
My current code is like this:
QueryExecution exec =
QueryExecutionFactory.create(QueryFactory.create(queryString,
Syntax.syntaxSPARQL_11), new
DatasetImpl(ModelFactory.createDefaultModel()));
Ok, thanks for that information.
So back to my initial concern.
In this code:
QueryExecution exec =
QueryExecutionFactory.create(QueryFactory.create(queryString,
Syntax.syntaxSPARQL_11), new
DatasetImpl(ModelFactory.createDefaultModel()));
exec.execConstruct().write(byteArrayOutputStream);
Is
Olivier, what are you trying to achieve? Wouldn't QueryEngineHTTP help you here?
http://jena.apache.org/documentation/javadoc/arq/com/hp/hpl/jena/sparql/engine/http/QueryEngineHTTP.html
On Wed, Jan 9, 2013 at 2:22 PM, Olivier Rossel olivier.ros...@gmail.com wrote:
QueryExecutionFactory
The fact that you want to set the Accept header implies to me that this
code is in some sort of HTTP server or servlet? I'm struggling to
understand why you need to set an Accept header at all here?
As I already said the write() method does not do any trickery regarding
Accept headers because
2013/1/8 Olivier Rossel olivier.ros...@gmail.com:
My current code is like this:
QueryExecution exec =
QueryExecutionFactory.create(QueryFactory.create(queryString,
Syntax.syntaxSPARQL_11), new
DatasetImpl(ModelFactory.createDefaultModel()));
exec.execConstruct().write(byteArrayOutputStream);