@Override public void ontologiesChanged(List<? extends OWLOntologyChange> changes) { Set<OWLOntology> importClosure = null; for (OWLOntologyChange change : changes) { OWLOntology changedOntology = change.getOntology(); if (!changedOntology.equals(owlOntology_)) { if (importClosure == null) { importClosure = owlOntology_.getImportsClosure(); } if (!importClosure.contains(changedOntology)) { LOGGER_.trace( "Ignoring the change not applicable to the current ontology: {}" + change); continue; } } if (!change.isAxiomChange()) { LOGGER_.trace( "Non-axiom change: {}\n The ontology will be reloaded.", change); // cannot handle non-axiom changes incrementally ontologyReloadRequired_ = true; } else { bufferedChangesLoader_.registerChange(change); } } if (!isBufferingMode_) flush(); }
@Override public void ontologiesChanged(List<? extends OWLOntologyChange> changes) { Set<OWLOntology> importClosure = null; for (OWLOntologyChange change : changes) { OWLOntology changedOntology = change.getOntology(); if (!changedOntology.equals(owlOntology_)) { if (importClosure == null) { importClosure = owlOntology_.getImportsClosure(); } if (!importClosure.contains(changedOntology)) { LOGGER_.trace( "Ignoring the change not applicable to the current ontology: {}" + change); continue; } } if (!change.isAxiomChange()) { LOGGER_.trace( "Non-axiom change: {}\n The ontology will be reloaded.", change); // cannot handle non-axiom changes incrementally ontologyReloadRequired_ = true; } else { bufferedChangesLoader_.registerChange(change); } } if (!isBufferingMode_) flush(); }
@Override public void ontologiesChanged(List<? extends OWLOntologyChange> changes) { Set<OWLOntology> importClosure = null; for (OWLOntologyChange change : changes) { OWLOntology changedOntology = change.getOntology(); if (!changedOntology.equals(owlOntology_)) { if (importClosure == null) { importClosure = owlOntology_.getImportsClosure(); } if (!importClosure.contains(changedOntology)) { LOGGER_.trace( "Ignoring the change not applicable to the current ontology: {}" + change); continue; } } if (!change.isAxiomChange()) { LOGGER_.trace( "Non-axiom change: {}\n The ontology will be reloaded.", change); // cannot handle non-axiom changes incrementally ontologyReloadRequired_ = true; } else { bufferedChangesLoader_.registerChange(change); } } if (!isBufferingMode_) flush(); }