tweaks to kb migration logging
This commit is contained in:
parent
83ff76d1b4
commit
1095865e8a
2 changed files with 5 additions and 5 deletions
|
@ -176,11 +176,11 @@ public class ABoxUpdater {
|
|||
|
||||
//log summary of changes
|
||||
if (renameCount > 0) {
|
||||
logger.log("Renamed " + renameCount + " subject reference" + ((renameCount > 1) ? "s" : "") + " from type" + oldClass.getURI() + " to " + newClass.getURI());
|
||||
logger.log("Changed " + renameCount + " subject reference" + ((renameCount > 1) ? "s" : "") + " from type" + oldClass.getURI() + " to " + newClass.getURI());
|
||||
//logger.log(renameCount + " subject reference" + ((renameCount > 1) ? "s" : "") + " to the " + oldClass.getURI() + " class " + ((renameCount > 1) ? "were" : "was") +" changed to " + newClass.getURI());
|
||||
}
|
||||
if (removeCount > 0) {
|
||||
logger.log("Removed " + removeCount + " remaining subject reference" + ((removeCount > 1) ? "s" : "") + " to the " + oldClass.getURI() + " class");
|
||||
logger.log("Changed " + removeCount + " remaining subject reference" + ((removeCount > 1) ? "s" : "") + " to the " + oldClass.getURI() + " class");
|
||||
//logger.log(removeCount + " remaining subject reference" + ((removeCount > 1) ? "s" : "") + " to the " + oldClass.getURI() + " class " + ((removeCount > 1) ? "were" : "was") + "removed." );
|
||||
}
|
||||
|
||||
|
|
|
@ -345,7 +345,7 @@ public void updateAnnotationModel() throws IOException {
|
|||
retractions.add(siteModel.listStatements(stmt.getSubject(),(Property) null,(RDFNode)null));
|
||||
long post = retractions.size();
|
||||
if ((post - pre) > 0) {
|
||||
logger.log("Removed the " + stmt.getSubject().getURI() + " ClassGroup from the annotations model.");
|
||||
logger.log("Removed the " + stmt.getSubject().getURI() + " ClassGroup from the annotations model");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -397,12 +397,12 @@ 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 (assumed to be obsolete).");
|
||||
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 (assumed to be obsolete).");
|
||||
logger.log("Removed statement " + ABoxUpdater.stmtString(subj2, inPropertyGroupProp, obj2) + " from the knowledge base (assumed to be obsolete)");
|
||||
}
|
||||
|
||||
if (siteModel.contains(subj3, inPropertyGroupProp, obj3) ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue