}
public TupleResult getTupleQueryResult()
throws IOException, QueryResultParseException, NoCompatibleMediaType
{
BackgroundTupleResult result = null;
String mimeType = readContentType();
try {
TupleQueryResultFormat format = TupleQueryResultParserRegistry.getInstance().getFileFormatForMIMEType(
mimeType);
TupleQueryResultParser parser = QueryResultIO.createParser(format, pool.getValueFactory());
InputStream in = getResponseBodyAsStream();
result = new BackgroundTupleResult(parser, in, this);
pool.executeTask(result);
return result;
}
catch (UnsupportedQueryResultFormatException e) {
logger.warn(e.toString(), e);