Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

trying to read an ontology from a web page url hangs #36

Closed
ignazio1977 opened this issue Aug 7, 2013 · 1 comment
Closed

trying to read an ontology from a web page url hangs #36

ignazio1977 opened this issue Aug 7, 2013 · 1 comment
Labels

Comments

@ignazio1977
Copy link
Contributor

This test hangs forever:

    @Test(expected = UnloadableImportException.class)
    public void shouldThrowExceptionWithDefaultImportsconfig()
            throws OWLOntologyCreationException {
        String input = "<?xml version=\"1.0\"?>\n"
                + "<rdf:RDF xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\"\n"
                + "     xmlns:owl=\"http://www.w3.org/2002/07/owl#\"\n"
                + "     xmlns:xsd=\"http://www.w3.org/2001/XMLSchema#\"\n"
                + "     xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">\n"
                + "    <owl:Ontology rdf:about=\"http://www.semanticweb.org/fake/ontologies/2012/8/1\">\n"
                + "        <owl:imports rdf:resource=\"http://www.bbc.co.uk/news/\"/>\n"
                + "    </owl:Ontology>\n" + "</rdf:RDF>";
        OWLOntologyManager manager = Factory.getManager();
        manager.loadOntologyFromOntologyDocument(
                new StringDocumentSource(input));
    }
@ignazio1977
Copy link
Contributor Author

sax parser factory not ignoring DTD directives and hitting forbidden links

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant