finishTask( "consistency check" );
if( !isConsistent )
throw new PelletCmdException( "Ontology is inconsistent, run \"pellet explain\" to get the reason" );
QNameProvider qnames = new QNameProvider();
Set<String> unsatisfiableClasses = new TreeSet<String>( Comparators.stringComparator );
ProgressMonitor monitor = PelletOptions.USE_CLASSIFICATION_MONITOR.create();
monitor.setProgressTitle( "Finding unsatisfiable" );
monitor.setProgressLength( kb.getClasses().size() );
startTask( "find unsatisfiable" );
monitor.taskStarted();
Iterator<ATermAppl> i = kb.getClasses().iterator();
while( i.hasNext() ) {
monitor.incrementProgress();
ATermAppl c = i.next();
if( !kb.isSatisfiable( c ) ) {
unsatisfiableClasses.add( qnames.shortForm( c.getName() ) );
}
}
monitor.taskFinished();
finishTask( "find unsatisfiable" );