spaziocodice / SolRDF

An RDF plugin for Solr
Apache License 2.0
114 stars 20 forks source link

ASK results are being written on stdout #78

Closed agazzarini closed 9 years ago

agazzarini commented 9 years ago

Wrong (current) code:

ResultSetFormatter.outputAsJSON(askResult);

must be changed in:

ResultSetFormatter.outputAsJSON(new WriterOutputStream(writer, CharacterSet.UTF_8), askResult);
agazzarini commented 9 years ago

Issue has been fixed. Twelve integration tests [1] have been added for checking the correct behaviour.


https://github.com/agazzarini/SolRDF/blob/master/solrdf/src/test/java/org/gazzax/labs/solrdf/integration/sparql/LearningSparql_ASK_ITCase.java