fix to KnowledgeBaseUpdater's avoidance of triggering unnecessary recomputes
This commit is contained in:
parent
cfada56e31
commit
a83c1e5e4f
1 changed files with 1 additions and 4 deletions
|
@ -98,9 +98,6 @@ public class KnowledgeBaseUpdater {
|
||||||
private boolean performUpdate(ServletContext servletContext) throws Exception {
|
private boolean performUpdate(ServletContext servletContext) throws Exception {
|
||||||
|
|
||||||
List<AtomicOntologyChange> rawChanges = getAtomicOntologyChanges();
|
List<AtomicOntologyChange> rawChanges = getAtomicOntologyChanges();
|
||||||
if (rawChanges.isEmpty()) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
AtomicOntologyChangeLists changes = new AtomicOntologyChangeLists(rawChanges,settings.getNewTBoxModel(),settings.getOldTBoxModel());
|
AtomicOntologyChangeLists changes = new AtomicOntologyChangeLists(rawChanges,settings.getNewTBoxModel(),settings.getOldTBoxModel());
|
||||||
|
|
||||||
|
@ -134,7 +131,7 @@ public class KnowledgeBaseUpdater {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return !rawChanges.isEmpty();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue