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
<roshanbharath...@gmail.com> wrote:
> 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 format and I want it to be in JSON format.
>
> Best Regards,
> Roshan
>
>

Reply via email to