Re: Retrieving CONSTRUCT results as n3

2013-01-09 Thread Andy Seaborne
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()));

Re: Retrieving CONSTRUCT results as n3

2013-01-09 Thread Olivier Rossel
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

Re: Retrieving CONSTRUCT results as n3

2013-01-09 Thread Martynas Jusevičius
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

Re: Retrieving CONSTRUCT results as n3

2013-01-09 Thread Rob Vesse
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

Re: Retrieving CONSTRUCT results as n3

2013-01-08 Thread Jean-Marc Vanel
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);