Package org.semanticweb.owlapi.model

Examples of org.semanticweb.owlapi.model.OWLRuntimeException


            } else {
                int colonIndex = s.indexOf(':');
                String prefixName = s.substring(0, colonIndex + 1);
                String prefix = prefixMap.get(prefixName);
                if (prefix == null) {
                    throw new OWLRuntimeException("Undefined prefix name: "
                            + prefixName);
                }
                String fullIRIString = prefix + s.substring(colonIndex + 1);
                iri = IRI.create(fullIRIString);
            }
View Full Code Here


    }

    @Override
    public void beginTransaction() {
        if (inTransaction) {
            throw new OWLRuntimeException("Already in transaction");
        }
        inTransaction = true;
    }
View Full Code Here

    }

    @Override
    public void endTransaction() {
        if (!inTransaction) {
            throw new OWLRuntimeException("Cannot end transaction");
        }
        inTransaction = false;
    }
View Full Code Here

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

            axiom.accept(this);
        }
        try {
            writer.flush();
        } catch (IOException io) {
            throw new OWLRuntimeException(io);
        }
    }
View Full Code Here

            for (T o : load(type)) {
                binder.addBinding().toInstance(o);
            }
        } catch (ServiceConfigurationError e) {
            e.printStackTrace(System.out);
            throw new OWLRuntimeException("Injection failed for " + type, e);
        }
    }
View Full Code Here

                factoryBinder.addBinding().toInstance(o);
                binder.addBinding().toInstance(o.get());
            }
        } catch (ServiceConfigurationError e) {
            e.printStackTrace(System.out);
            throw new OWLRuntimeException("Injection failed for factory: "
                    + factory + " type: " + type, e);
        }
    }
View Full Code Here

            for (OWLOntologyManagerFactory o : load(OWLOntologyManagerFactory.class)) {
                binder.addBinding().toInstance(o);
            }
        } catch (ServiceConfigurationError e) {
            e.printStackTrace(System.out);
            throw new OWLRuntimeException(
                    "Injection failed for OWLOntologyManager factory", e);
        }
    }
View Full Code Here

     * @param annotations
     *        the new pending annotations
     */
    protected void setPendingAnnotations(Set<OWLAnnotation> annotations) {
        if (!pendingAnnotations.isEmpty()) {
            throw new OWLRuntimeException(pendingAnnotations.size()
                    + " pending annotations should have been used by now. "
                    + pendingAnnotations);
        }
        pendingAnnotations.addAll(annotations);
    }
View Full Code Here

                singleExplanationGenerator.endTransaction();
            }
            progressMonitor.foundAllExplanations();
            return allMups;
        } catch (OWLException e) {
            throw new OWLRuntimeException(e);
        }
    }
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.