minor data migration tweak

This commit is contained in:
brianjlowe 2013-09-27 14:17:38 -04:00
parent cba46c4f72
commit a719e6b706

View file

@ -94,6 +94,8 @@ public class KnowledgeBaseUpdater {
AtomicOntologyChangeLists changes = new AtomicOntologyChangeLists(rawChanges,settings.getNewTBoxModel(),settings.getOldTBoxModel()); AtomicOntologyChangeLists changes = new AtomicOntologyChangeLists(rawChanges,settings.getNewTBoxModel(),settings.getOldTBoxModel());
// Only modify the TBox and migration metadata the first time
if(updateRequired(servletContext)) {
//process the TBox before the ABox //process the TBox before the ABox
try { try {
log.debug("\tupdating tbox annotations"); log.debug("\tupdating tbox annotations");
@ -107,8 +109,10 @@ public class KnowledgeBaseUpdater {
logger.log("Migrated migration metadata"); logger.log("Migrated migration metadata");
} catch (Exception e) { } catch (Exception e) {
log.error("unable to migrate migration metadata " + e.getMessage()); log.error("unable to migrate migration metadata " + e.getMessage());
}
} }
// update ABox data any time
log.info("performing SPARQL CONSTRUCT additions"); log.info("performing SPARQL CONSTRUCT additions");
performSparqlConstructs(settings.getSparqlConstructAdditionsDir(), settings.getRDFService(), ADD); performSparqlConstructs(settings.getSparqlConstructAdditionsDir(), settings.getRDFService(), ADD);