}
public GraphResult getGraphQueryResult()
throws IOException, RDFParseException, NoCompatibleMediaType
{
BackgroundGraphResult result = null;
String mimeType = readContentType();
try {
RDFFormat format = RDFParserRegistry.getInstance().getFileFormatForMIMEType(mimeType);
RDFParser parser = Rio.createParser(format, pool.getValueFactory());
parser.setPreserveBNodeIDs(true);
InputStream in = getResponseBodyAsStream();
String base = method.getURI().getURI();
result = new BackgroundGraphResult(parser, in, base, this);
pool.executeTask(result);
return result;
}
catch (UnsupportedRDFormatException e) {
logger.warn(e.toString(), e);