change log messages
This commit is contained in:
parent
2ebaf3f208
commit
af37411b53
2 changed files with 5 additions and 6 deletions
|
@ -370,7 +370,6 @@ public class ABoxUpdater {
|
|||
}
|
||||
|
||||
if (count > 0) {
|
||||
//logger.log("Removed " + count + " subject reference" + ((count > 1) ? "s" : "") + " to the " + deletedClass.getURI() + " class");
|
||||
logger.log(count + " subject reference" + ((count > 1) ? "s" : "") + " to the " + deletedClass.getURI() + " class " + ((count > 1) ? "were" : "was") + " removed.");
|
||||
}
|
||||
} finally {
|
||||
|
@ -396,7 +395,7 @@ public class ABoxUpdater {
|
|||
|
||||
//log summary of changes
|
||||
if (count > 0) {
|
||||
logger.log("Removed " + count + " instance" + ((count > 1) ? "s" : "") + " of the " + deletedClass.getURI() + " class.");
|
||||
logger.log(count + " instance" + ((count > 1) ? "s" : "") + " of the " + deletedClass.getURI() + " class " + ((count > 1) ? "were" : "was") + " removed.");
|
||||
}
|
||||
|
||||
aboxModel.remove(retractions);
|
||||
|
@ -421,7 +420,7 @@ public class ABoxUpdater {
|
|||
|
||||
//log summary of changes
|
||||
if (count > 0) {
|
||||
logger.log("Removed " + count + " object reference" + ((count > 1) ? "s" : "") + " to the " + deletedClass.getURI() + " class.");
|
||||
logger.log(count + " object reference" + ((count > 1) ? "s" : "") + " of the " + deletedClass.getURI() + " class " + ((count > 1) ? "were" : "was") + " removed.");
|
||||
}
|
||||
|
||||
aboxModel.remove(retractions);
|
||||
|
|
|
@ -397,17 +397,17 @@ public void removeObsoleteAnnotations() throws IOException {
|
|||
|
||||
if (siteModel.contains(subj1, inClassGroupProp, obj1) ) {
|
||||
retractions.add(subj1, inClassGroupProp, obj1);
|
||||
logger.log("Removed statement " + ABoxUpdater.stmtString(subj1, inClassGroupProp, obj1) + " from the knowledge base.");
|
||||
logger.log("Removed statement " + ABoxUpdater.stmtString(subj1, inClassGroupProp, obj1) + " from the knowledge base (assumed to be obsolete).");
|
||||
}
|
||||
|
||||
if (siteModel.contains(subj2, inPropertyGroupProp, obj2) ) {
|
||||
retractions.add(subj2, inPropertyGroupProp, obj2);
|
||||
logger.log("Removed statement " + ABoxUpdater.stmtString(subj2, inPropertyGroupProp, obj2) + " from the knowledge base.");
|
||||
logger.log("Removed statement " + ABoxUpdater.stmtString(subj2, inPropertyGroupProp, obj2) + " from the knowledge base (assumed to be obsolete).");
|
||||
}
|
||||
|
||||
if (siteModel.contains(subj3, inPropertyGroupProp, obj3) ) {
|
||||
retractions.add(subj3, inPropertyGroupProp, obj3);
|
||||
logger.log("Removed statement " + ABoxUpdater.stmtString(subj3, inPropertyGroupProp, obj3) + " from the knowledge base.");
|
||||
logger.log("Removed statement " + ABoxUpdater.stmtString(subj3, inPropertyGroupProp, obj3) + " from the knowledge base (assumed to be obsolete).");
|
||||
}
|
||||
|
||||
if (retractions.size() > 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue