public void write( OutputStream outputStream )
throws IOException
{
try
{
TupleQueryResultWriter qrWriter = new SPARQLResultsJSONWriterFactory().getWriter( outputStream );
QueryResultUtil.report( queryResult, qrWriter );
}
catch( Exception e )
{
throw new IOException( e );