Package com.clarkparsia.modularity

Examples of com.clarkparsia.modularity.OntologyDiff


      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;
View Full Code Here

TOP

Related Classes of com.clarkparsia.modularity.OntologyDiff

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.