Examples of OntologyDiff


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
Copyright © 2018 www.massapi.com. 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.