verbose( "Reading persisted classifier state from " + file );
IncrementalClassifier result = IncrementalClassifierPersistence.load( inputStream, ontology );
// check whether anything changed in the ontology in the time between the incremental classifier
// was persisted and the current time
OntologyDiff ontologyDiff = OntologyDiff.diffAxioms( result.getAxioms(), ontology.getAxioms() );
if( ontologyDiff.getDiffCount() > 0 ) {
verbose( "There were changes to the underlying ontology since the classifier was persisted. Incrementally updating the classifier" );
result.ontologiesChanged( new LinkedList<OWLOntologyChange>( ontologyDiff.getChanges( ontology ) ) );
} else {
currentStateSaved = true;
}
return result;