Uploaded image for project: 'Apache Any23 (Retired)'
  1. Apache Any23 (Retired)
  2. ANY23-77

Facing a infinite loop problem in version 0.6.1 - Verify

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.7.0
    • 0.7.0
    • service
    • None

    Description

      The code to reproduce the bug is here (Client is Jersey http client, but thats just a detail, the problem lies in URL resource: http://lod.openlinksw.com/sparql?query=define%20sql%3Adescribe-mode%20%22LOD%22%20%20DESCRIBE%20%3Chttp%3A%2F%2Fyago-knowledge.org%2Fresource%2FBerlin%3E&output=text%2Fhtml

      Java Code:

      Client c = Client.create();
      System.out.println("Downloading file.");
      InputStream in = c.resource("http://lod.openlinksw.com/sparql?query=define%20sql%3Adescribe-mode%20%22LOD%22%20%20DESCRIBE%20%3Chttp%3A%2F%2Fyago-knowledge.org%2Fresource%2FBerlin%3E&output=text%2Fhtml").get(InputStream.class);
      FileOutputStream out = null;
      File f = new File("urlResource");
      try

      { out = new FileOutputStream(f); IOUtils.copy(in, out); }

      catch (Exception e)

      { e.printStackTrace(); } finally { IOUtils.closeQuietly(in); IOUtils.closeQuietly(out); }
      System.out.println("File downloaded.");
      System.out.println("Starting extraction.");
      FileDocumentSource doc = new FileDocumentSource(f);

      TurtleWriter tw = new TurtleWriter(System.out);
      Any23 ext = new Any23();
      try { ext.extract(doc, tw); } catch (Exception e) { e.printStackTrace(); }

      System.out.println("Extraction done.");

      Attachments

        Issue Links

          Activity

            People

              michele.mostarda Michele Mostarda
              michele.mostarda Michele Mostarda
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: