NIHVIVO-264
This commit is contained in:
parent
8eb9774d42
commit
36ab5f8357
1 changed files with 6 additions and 1 deletions
|
@ -112,6 +112,7 @@ public class ABoxUpdater {
|
||||||
*/
|
*/
|
||||||
public void renameClass(AtomicOntologyChange change) throws IOException {
|
public void renameClass(AtomicOntologyChange change) throws IOException {
|
||||||
|
|
||||||
|
logger.log("Processing a class rename from: " + change.getSourceURI() + " to " + change.getDestinationURI());
|
||||||
aboxModel.enterCriticalSection(Lock.WRITE);
|
aboxModel.enterCriticalSection(Lock.WRITE);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
@ -181,10 +182,12 @@ public class ABoxUpdater {
|
||||||
*/
|
*/
|
||||||
public void addClass(AtomicOntologyChange change) throws IOException {
|
public void addClass(AtomicOntologyChange change) throws IOException {
|
||||||
|
|
||||||
|
logger.log("Processing a class addition of class " + change.getDestinationURI());
|
||||||
|
|
||||||
OntClass addedClass = newTboxModel.getOntClass(change.getDestinationURI());
|
OntClass addedClass = newTboxModel.getOntClass(change.getDestinationURI());
|
||||||
|
|
||||||
if (addedClass == null) {
|
if (addedClass == null) {
|
||||||
logger.logError("didn't find the added class " + change.getSourceURI() + " in the new model.");
|
logger.logError("didn't find the added class " + change.getDestinationURI() + " in the new model.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -233,6 +236,8 @@ public class ABoxUpdater {
|
||||||
*/
|
*/
|
||||||
public void deleteClass(AtomicOntologyChange change) throws IOException {
|
public void deleteClass(AtomicOntologyChange change) throws IOException {
|
||||||
|
|
||||||
|
logger.log("Processing a class deletion of class " + change.getSourceURI());
|
||||||
|
|
||||||
OntClass deletedClass = oldTboxModel.getOntClass(change.getSourceURI());
|
OntClass deletedClass = oldTboxModel.getOntClass(change.getSourceURI());
|
||||||
|
|
||||||
if (deletedClass == null) {
|
if (deletedClass == null) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue