On Thu, 2011-09-22 at 12:43 -0700, emy ashry wrote: > i have tried to use jena in netbeans to read owl file from ontology 3.4.6, > but there is many errors spicially in read() method. > the code is: > OntModel m = ModelFactory.createOntologyModel(OntModelSpec.OWL_MEM, null ); > m.getDocumentManager().addAltEntry( > http://www.w3.org/2001/sw/WebOnt/guide-src/carads, > "file:carads.owl"); > m.read( "file:carads.owl" ); > the errors are: > Exception in thread "main" java.io.FileNotFoundException: carads.owl (The > system cannot find the file specified)
That means what it says, the file "carads.owl" can't be found. Perhaps you have a mistake in the file name, or the file is in a different directory from where you are running java. Dave
