Package org.semanticweb.owl.model

Examples of org.semanticweb.owl.model.OWLRuntimeException


    public void writeEndElement() {
        try {
            writer.writeEndElement();
        }
        catch (IOException e) {
            throw new OWLRuntimeException(e);
        }
    }
View Full Code Here


    public void writeDatatypeAttribute(URI datatype) {
        try {
            writer.writeAttribute(OWLXMLVocabulary.DATATYPE_URI.getURI().toString(), datatype.toString());
        }
        catch (IOException e) {
            throw new OWLRuntimeException(e);
        }
    }
View Full Code Here

        }           
            progressMonitor.foundAllExplanations();
            return allMups;
        }
        catch (OWLException e) {
            throw new OWLRuntimeException(e);
        }
    }
View Full Code Here

                    newMUPS = getExplanation(unsatClass);
                }
                // 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
View Full Code Here

    public void handleTriple(URI subject, URI predicate, URI object) {
        try {
            statementWithResourceValue(subject.toString(), predicate.toString(), object.toString());
        }
        catch (SAXException e) {
            throw new OWLRuntimeException(e);
        }
    }
View Full Code Here

    public void handleTriple(URI subject, URI predicate, String object) {
        try {
            statementWithLiteralValue(subject.toString(), predicate.toString(), object, null, null);
        }
        catch (SAXException e) {
            throw new OWLRuntimeException(e);
        }
    }
View Full Code Here

    public void handleTriple(URI subject, URI predicate, String object, String lang) {
        try {
            statementWithLiteralValue(subject.toString(), predicate.toString(), object, lang, null);
        }
        catch (SAXException e) {
            throw new OWLRuntimeException(e);
        }
    }
View Full Code Here

    public void handleTriple(URI subject, URI predicate, String object, URI datatype) {
        try {
            statementWithLiteralValue(subject.toString(), predicate.toString(), object, null, datatype.toString());
        }
        catch (SAXException e) {
            throw new OWLRuntimeException(e);
        }
    }
View Full Code Here

    public void handleEnd() {
        try {
            endModel();
        }
        catch (SAXException e) {
            throw new OWLRuntimeException(e);
        }
    }
View Full Code Here

  @SuppressWarnings("unchecked")
  private EntityMapper<OWLDataRange>    DR_MAPPER    = (EntityMapper<OWLDataRange>) (EntityMapper<? extends OWLDataRange>) DT_MAPPER;

  private static URI uri(ATermAppl term) {
    if( term.getArity() != 0 )
      throw new OWLRuntimeException( "Trying to convert an anonymous term " + term );

    try {
      return new URI( term.getName() );
    } catch( URISyntaxException x ) {
      throw new OWLRuntimeException( "Cannot create URI from term " + x );
    }
  }
View Full Code Here

TOP

Related Classes of org.semanticweb.owl.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.