Package org.semanticweb.owlapi.io

Examples of org.semanticweb.owlapi.io.OWLOntologyCreationIOException


                // For input/output exceptions, we assume that it means the
                // source cannot be read regardless of the parsers, so we stop
                // early
                // First clean up
                manager.removeOntology(ont);
                throw new OWLOntologyCreationIOException(e);
            } catch (UnloadableImportException e) {
                // If an import cannot be located, all parsers will fail. Again,
                // terminate early
                // First clean up
                manager.removeOntology(ont);
View Full Code Here


            }
            catch (IOException e) {
                // No hope of any parsers working?
                // First clean up
                getOWLOntologyManager().removeOntology(ont);
                throw new OWLOntologyCreationIOException(e);
            }
            catch (UnloadableImportException e) {
                // First clean up
                getOWLOntologyManager().removeOntology(ont);
                throw e;
View Full Code Here

        else if(e instanceof UnloadableImportException) {
            UnloadableImportException importException = (UnloadableImportException) e;
            return "Could not load imported ontology: " + importException.getImportsDeclaration().getIRI();
        }
        else if(e instanceof OWLOntologyCreationIOException) {
            OWLOntologyCreationIOException ioException = (OWLOntologyCreationIOException) e;
            return "Problem reading ontology document: " + ioException.getCause().getMessage();
        }
        return e.getMessage();
    }
View Full Code Here

TOP

Related Classes of org.semanticweb.owlapi.io.OWLOntologyCreationIOException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.