Re: Federated query result format

2015-07-29 Thread Roshan Bharath Das
Thanks Andy. qexec.setSelectContentType is what i was looking for. Best Regards, Roshan > On 29 Jul 2015, at 09:56, Andy Seaborne wrote: > > On 28/07/15 23:20, Roshan Bharath Das wrote: >> Thanks. >> But I would like to know if there is an option to encode in the URL so that >> I don't hav

Re: Federated query result format

2015-07-29 Thread Andy Seaborne
On 28/07/15 23:20, Roshan Bharath Das wrote: Thanks. But I would like to know if there is an option to encode in the URL so that I don't have to convert after receiving the data. Because fuseki server can give the output data in xml, text, json, csv form. Not the URL - it's done with content ne

Re: Federated query result format

2015-07-28 Thread Roshan Bharath Das
Thanks. But I would like to know if there is an option to encode in the URL so that I don't have to convert after receiving the data. Because fuseki server can give the output data in xml, text, json, csv form. Best Regards, Roshan On Jul 28, 2015 10:03 PM, "Martynas Jusevičius" wrote: > Roshan

Re: Federated query result format

2015-07-28 Thread Martynas Jusevičius
Roshan, try ResultSetFormatter.outputAsJSON() https://jena.apache.org/documentation/javadoc/arq/com/hp/hpl/jena/query/ResultSetFormatter.html#outputAsJSON(com.hp.hpl.jena.query.ResultSet) On Tue, Jul 28, 2015 at 9:18 PM, Roshan Bharath Das wrote: > Hello, > > How can I decide to get the query re

Federated query result format

2015-07-28 Thread Roshan Bharath Das
Hello, How can I decide to get the query result format for a sparqlService in JSON for example?. Below is my code: Query query = QueryFactory.create(queryString); QueryExecution qe = QueryExecutionFactory.sparqlService(linkedmdb,query); ResultSet result = qe.execSelect(); The result is in XML fo