Package org.openrdf.http.client.helpers

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


  }

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

TOP

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

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.