Hi, On Fri, 2011-12-02 at 12:31 +0100, Tran Thai Binh wrote: > Dear Dave, > I create a very simple code. It is still error. Sorry, if my question is > stupid.
[snip] > -----error---- > WARN [main] (OntDocumentManager.java:1078) - An error occurred while > attempting to read from > http://www.semanticweb.org/ontologies/2011/10/Ontology1322586466073.owl. So this error message is telling you that there is something wrong with the file at that URL and indeed when I try to go there it gives a 404. > @prefix : < > http://www.semanticweb.org/ontologies/2011/10/Ontology1322586150669.owl#> . > @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . > @prefix owl: <http://www.w3.org/2002/07/owl#> . > @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . > @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . > > <http://www.semanticweb.org/ontologies/2011/10/Ontology1322586150669.owl> > rdf:type owl:Ontology ; > owl:imports < > http://www.semanticweb.org/ontologies/2011/10/Ontology1322586466073.owl> . This is the import statement which is causing the problem. Since there's no reference to that in the rest of your ontology maybe it's a spurious import and you can just drop the import. If you do need to import it then you can use the OntDocumentManager to set up a mapping from the URL in the import statement to a local file. Dave
