minor data migration tweak
This commit is contained in:
parent
cba46c4f72
commit
a719e6b706
1 changed files with 17 additions and 13 deletions
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue