Package org.semanticweb.owl.model

Examples of org.semanticweb.owl.model.OWLRuntimeException


    Set<OWLAxiom> result = new HashSet<OWLAxiom>();

    for( ATermAppl term : terms ) {
      OWLAxiom axiom = converter.convert( term );
      if( axiom == null )
        throw new OWLRuntimeException( "Cannot convert: " + term );
      result.add( axiom );
    }

    return result;
  }
View Full Code Here


   */
  public Set<OWLAxiom> getExplanation() throws OWLRuntimeException {
    Set<ATermAppl> explanation = kb.getExplanationSet();

    if( explanation == null || explanation.isEmpty() )
      throw new OWLRuntimeException( "No explanation computed" );

    return convertAxioms( explanation );
  }
View Full Code Here

   */
  public static OWLOntology loadOntology( String uri ) {
    try {
      return manager.loadOntology( URI.create( uri ) );
    } catch( OWLOntologyCreationException e ) {
      throw new OWLRuntimeException( e );
    }
  }
View Full Code Here

        }
      }
     
      manager.applyChanges( changes );
    } catch( OWLOntologyChangeException e ) {
      throw new OWLRuntimeException( e );     
    }
  }
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.