Quieting ABoxUpdater log messages

This commit is contained in:
brianjlowe 2013-11-04 13:49:12 -05:00
parent c27971a36e
commit 644bdc42cf

View file

@ -600,7 +600,6 @@ public class ABoxUpdater {
Iterator<String> graphIt = dataset.listNames(); Iterator<String> graphIt = dataset.listNames();
while(graphIt.hasNext()) { while(graphIt.hasNext()) {
String graph = graphIt.next(); String graph = graphIt.next();
//log.info(System.currentTimeMillis() - start + " to get graph");
if(!KnowledgeBaseUpdater.isUpdatableABoxGraph(graph)){ if(!KnowledgeBaseUpdater.isUpdatableABoxGraph(graph)){
continue; continue;
} }
@ -608,7 +607,7 @@ public class ABoxUpdater {
Model renamePropAddModel = ModelFactory.createDefaultModel(); Model renamePropAddModel = ModelFactory.createDefaultModel();
Model renamePropRetractModel = ModelFactory.createDefaultModel(); Model renamePropRetractModel = ModelFactory.createDefaultModel();
log.info("renaming " + oldProperty.getURI() + " in graph " + graph); log.debug("renaming " + oldProperty.getURI() + " in graph " + graph);
aboxModel.enterCriticalSection(Lock.WRITE); aboxModel.enterCriticalSection(Lock.WRITE);
try { try {
start = System.currentTimeMillis(); start = System.currentTimeMillis();
@ -623,7 +622,7 @@ public class ABoxUpdater {
start = System.currentTimeMillis(); start = System.currentTimeMillis();
renamePropRetractModel.add( aboxModel.listStatements( renamePropRetractModel.add( aboxModel.listStatements(
(Resource) null, oldProperty, (RDFNode) null)); (Resource) null, oldProperty, (RDFNode) null));
log.info(System.currentTimeMillis() - start + " to list " + renamePropRetractModel.size() + " old statements"); log.debug(System.currentTimeMillis() - start + " to list " + renamePropRetractModel.size() + " old statements");
start = System.currentTimeMillis(); start = System.currentTimeMillis();
StmtIterator stmItr = renamePropRetractModel.listStatements(); StmtIterator stmItr = renamePropRetractModel.listStatements();
while(stmItr.hasNext()) { while(stmItr.hasNext()) {
@ -632,13 +631,13 @@ public class ABoxUpdater {
newProperty, newProperty,
tempStatement.getObject() ); tempStatement.getObject() );
} }
log.info(System.currentTimeMillis() - start + " to make new statements"); log.debug(System.currentTimeMillis() - start + " to make new statements");
start = System.currentTimeMillis(); start = System.currentTimeMillis();
aboxModel.remove(renamePropRetractModel); aboxModel.remove(renamePropRetractModel);
log.info(System.currentTimeMillis() - start + " to retract old statements"); log.debug(System.currentTimeMillis() - start + " to retract old statements");
start = System.currentTimeMillis(); start = System.currentTimeMillis();
aboxModel.add(renamePropAddModel); aboxModel.add(renamePropAddModel);
log.info(System.currentTimeMillis() - start + " to add new statements"); log.debug(System.currentTimeMillis() - start + " to add new statements");
} finally { } finally {
aboxModel.leaveCriticalSection(); aboxModel.leaveCriticalSection();
} }