Hi Kevin, On 08/02/13 14:25, Kevin Tyson wrote:
Greetings, When my code attempts to read a model that contains approximately 20 imports, all in the same directory as the model file itself, the read hangs for much longer then any anticipated time outs as all of the imports are locally available. In the following sample code the read is buried in the createOntologyModel, but the behavior is identical to Model.read. TIA, KevinModel m = FileManager.*get*().loadModel(p.getInputFile(), * null*,* *FileUtils.*guessLang*(p.getInputFile())); fibom = ModelFactory.*createOntologyModel*(OntModelSpec.* OWL_DL_MEM*, m);**** ExtendedIterator<OntClass> eic = fibom.listClasses();**** *while* (eic.hasNext()) {**** OntClass oc = eic.next(); System.*out*.println(oc.getURI()); }
Sounds like however you have configured read from the local directory isn't working and it is trying to get out to the network.
If you try to do this with an explicit OntDocumentManager configuration then you would normally need to create a new OntModelSpec which uses that. See:
http://jena.apache.org/documentation/ontology/#compound-ontology-documents-and-imports-processing Dave
