2013/1/8 Olivier Rossel <[email protected]>:
> My current code is like this:
> QueryExecution exec =
> QueryExecutionFactory.create(QueryFactory.create(queryString,
> Syntax.syntaxSPARQL_11), new
> DatasetImpl(ModelFactory.createDefaultModel()));
> exec.execConstruct().write(byteArrayOutputStream);

Here is the recipe :

                Model r = exec.execConstruct();
                r.write(byteArrayOutputStream, "N3");

> And my queries are like that:
> CONSTRUCT { ... } WHERE { SERVICE <http://bla.com/sparql/> {... } }
>
> Is it possible to configure Jena so those CONSTRUCT are sent with an
> "Accept: text/n3" header?

I didn't see a way to control this with Jena API :( .

> BTW, is it even legal to demand "text/n3" as a result format?

yes.



-- 
Jean-Marc Vanel
Déductions SARL - Consulting, services, training,
Rule-based programming, Semantic Web
http://deductions-software.com/
+33 (0)6 89 16 29 52
Twitter: @jmvanel ; chat: irc://irc.freenode.net#eulergui

Reply via email to