Package org.openrdf.http.client.helpers

Examples of org.openrdf.http.client.helpers.BackgroundTupleResult


  }

  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);
View Full Code Here

TOP

Related Classes of org.openrdf.http.client.helpers.BackgroundTupleResult

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.