fasal
(Fasal Shah)
1
I was following below arcticle to connect java to stardog.
https://www.stardog.com/tutorials/stardog-app-in-5-easy-steps/
I was successfully able to run the code in the given tutorial. But the result it writes out is in tabular form.
QueryResultWriters.write(tupleQueryResult, System.out, TextTableQueryResultWriter.FORMAT);
what i want is result to be in json format.
Not sure how can i do it.. ??
stephen
(stephen)
2
Hi,
You can replace TextTableQueryResultWriter.FORMAT
with QueryResultFormats.JSON
and that should get you what you want.
fasal
(Fasal Shah)
3
thanks @stephen.. it worked
system
(system)
Closed
4
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.