From: Cedric P. <ced...@fu...> - 2009-10-26 14:12:52
|
You can do it this way : OWLOntologyManager manager = OWLManager.createOWLOntologyManager(); String owlBaseFile = "file:/volumes/.../ontology.owl" URI physicalURI = URI.create(owlBaseFile); OWLOntology ontology = manager.loadOntologyFromPhysicalURI(physicalURI); Don't forget to adapt the path of your ontology in the String called owlBaseFile (here I use MacOSX, but with Windows, I guess it begins by "file:c:" if your owl file is located on the c: drive). Hope it helps. Cedric "mo...@li..." <mo...@li...> a écrit : > Hi > Can some one tell me how to load owl file from local disk? > regars > > > > |