improvements for NIHVIVO-205 ontology upgrade
This commit is contained in:
parent
2a60a9c0e8
commit
aaabc8647d
3 changed files with 6 additions and 6 deletions
|
@ -38,8 +38,6 @@ public class OntologyChangeParser {
|
||||||
@SuppressWarnings({ "unchecked", "null", "static-access" })
|
@SuppressWarnings({ "unchecked", "null", "static-access" })
|
||||||
public ArrayList<AtomicOntologyChange> parseFile(String diffPath) throws IOException{
|
public ArrayList<AtomicOntologyChange> parseFile(String diffPath) throws IOException{
|
||||||
|
|
||||||
logger.log("Parsing PromptDiff file at " + diffPath);
|
|
||||||
|
|
||||||
AtomicOntologyChange changeObj;
|
AtomicOntologyChange changeObj;
|
||||||
ArrayList<AtomicOntologyChange> changeObjects = new ArrayList<AtomicOntologyChange>();
|
ArrayList<AtomicOntologyChange> changeObjects = new ArrayList<AtomicOntologyChange>();
|
||||||
int countColumns = 0;
|
int countColumns = 0;
|
||||||
|
|
|
@ -238,7 +238,7 @@ public class OntologyUpdater {
|
||||||
m.enterCriticalSection(Lock.WRITE);
|
m.enterCriticalSection(Lock.WRITE);
|
||||||
try {
|
try {
|
||||||
m.read(inStream, null, settings.getSuccessRDFFormat());
|
m.read(inStream, null, settings.getSuccessRDFFormat());
|
||||||
logger.log(" finished without errors.");
|
logger.log("Successfully finished processing ontology changes.");
|
||||||
} finally {
|
} finally {
|
||||||
m.leaveCriticalSection();
|
m.leaveCriticalSection();
|
||||||
}
|
}
|
||||||
|
|
|
@ -207,9 +207,11 @@ public class TBoxUpdater {
|
||||||
|
|
||||||
// log the additions
|
// log the additions
|
||||||
//summary
|
//summary
|
||||||
logger.log("Added " + newAnnotationSettingsToAdd.size() + " new annotation property settings to the knowledge base. This includes " +
|
if (newAnnotationSettingsToAdd.size() > 0) {
|
||||||
"existing annotation properties applied to existing classes where they weren't applied before, or existing " +
|
logger.log("Added " + newAnnotationSettingsToAdd.size() + " new annotation property settings to the knowledge base. This includes " +
|
||||||
"properties applied to new classes. No new annotation properties have been introduced.");
|
"existing annotation properties applied to existing classes where they weren't applied before, or existing " +
|
||||||
|
"properties applied to new classes. No new annotation properties have been introduced.");
|
||||||
|
}
|
||||||
//details
|
//details
|
||||||
|
|
||||||
while (iter.hasNext()) {
|
while (iter.hasNext()) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue