Package org.semanticweb.owlapi.model

Examples of org.semanticweb.owlapi.model.OWLRuntimeException


        Set<OWLAxiom> newMUPS = getNewMUPS(unsatClass, allMups,
                currentPathContents);
        // Generate a new node - i.e. a new justification set
        if (newMUPS.contains(axiom)) {
            // How can this be the case???
            throw new OWLRuntimeException(
                    "Explanation contains removed axiom: " + axiom);
        }
        if (!newMUPS.isEmpty()) {
            // Note that getting a previous justification does not mean
            // we can stop. stopping here causes some justifications to
View Full Code Here


        try {
            reasoner = checkNotNull(reasonerFactory,
                    "reasonerFactory cannot be null")
                    .createNonBufferingReasoner(man.createOntology());
        } catch (Exception e) {
            throw new OWLRuntimeException(e);
        }
    }
View Full Code Here

        public OWLClassExpression
                replaceBottom(@Nonnull OWLClassExpression desc) {
            newClassExpression = null;
            checkNotNull(desc, "desc cannot be null").accept(this);
            if (newClassExpression == null) {
                throw new OWLRuntimeException("Unsupported class expression "
                        + desc);
            }
            return verifyNotNull(newClassExpression);
        }
View Full Code Here

        try {
            ontology = owlOntologyManager
                    .createOntology(OWLOntologyDocumentSourceBase
                            .getNextDocumentIRI("http://debugger.semanticweb.org/ontolog"));
        } catch (OWLOntologyCreationException e) {
            throw new OWLRuntimeException(e);
        }
        List<AddAxiom> changes = new ArrayList<>();
        for (OWLOntology ont : owlOntologyManager
                .getImportsClosure(originalOntology)) {
            for (OWLAxiom ax : ont.getLogicalAxioms()) {
View Full Code Here

                lastNewLinePos = pos + newLineIndex;
            }
            pos += s.length();
            writer.write(s);
        } catch (IOException e) {
            throw new OWLRuntimeException(e);
        }
    }
View Full Code Here

        try {
            String s = " " + i + ' ';
            pos += s.length();
            writer.write(s);
        } catch (IOException e) {
            throw new OWLRuntimeException(e);
        }
    }
View Full Code Here

        try {
            OWLTutorialSyntaxRenderer renderer = new OWLTutorialSyntaxRenderer();
            renderer.render(ontology, writer);
            writer.flush();
        } catch (IOException e) {
            throw new OWLRuntimeException(e);
        }
    }
View Full Code Here

            format.setDefaultPrefix("http://default.com");
            format.setPrefix("a", "http://ontology.com/a#");
            format.setPrefix("b", "http://ontology.com/b#");
            return ont;
        } catch (OWLOntologyCreationException e) {
            throw new OWLRuntimeException(e);
        }
    }
View Full Code Here

        return false;
    }

    @Override
    public boolean parseBoolean() {
        throw new OWLRuntimeException(getClass().getName()
                + " does not have a boolean value");
    }
View Full Code Here

                + " does not have a boolean value");
    }

    @Override
    public double parseDouble() {
        throw new OWLRuntimeException(getClass().getName()
                + " does not have a double value");
    }
View Full Code Here

TOP

Related Classes of org.semanticweb.owlapi.model.OWLRuntimeException

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.