incubator-any23-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ANY23-77) Facing a infinite loop problem in version 0.6.1 - Verify
Date Mon, 23 Apr 2012 07:20:38 GMT

    [ https://issues.apache.org/jira/browse/ANY23-77?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13259427#comment-13259427
] 

Hudson commented on ANY23-77:
-----------------------------

Integrated in Any23-trunk #179 (See [https://builds.apache.org/job/Any23-trunk/179/])
    Replaced node nesting detection logic with higher performance code. This commit is related
to issue #ANY23-77. (Revision 1328835)

     Result = UNSTABLE
mostarda : 
Files : 
* /incubator/any23/trunk/core/src/main/java/org/apache/any23/extractor/ExtractionContext.java
* /incubator/any23/trunk/core/src/main/java/org/apache/any23/extractor/microdata/MicrodataParser.java
* /incubator/any23/trunk/core/src/main/java/org/apache/any23/writer/RDFWriterTripleHandler.java

                
> Facing a infinite loop problem in version 0.6.1 - Verify
> --------------------------------------------------------
>
>                 Key: ANY23-77
>                 URL: https://issues.apache.org/jira/browse/ANY23-77
>             Project: Apache Any23
>          Issue Type: Bug
>            Reporter: Michele Mostarda
>            Assignee: Michele Mostarda
>
> 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.");

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message