reenabling sparql constructs that shouldn't have been checked in as disabled

This commit is contained in:
brianjlowe 2013-11-04 14:55:57 -05:00
parent 644bdc42cf
commit f75b1159e5

View file

@ -96,10 +96,10 @@ public class KnowledgeBaseUpdater {
// update ABox data any time // update ABox data any time
log.info("performing SPARQL CONSTRUCT additions"); log.info("performing SPARQL CONSTRUCT additions");
//performSparqlConstructs(settings.getSparqlConstructAdditionsDir(), settings.getRDFService(), ADD); performSparqlConstructs(settings.getSparqlConstructAdditionsDir(), settings.getRDFService(), ADD);
log.info("performing SPARQL CONSTRUCT retractions"); log.info("performing SPARQL CONSTRUCT retractions");
//performSparqlConstructs(settings.getSparqlConstructDeletionsDir(), settings.getRDFService(), RETRACT); performSparqlConstructs(settings.getSparqlConstructDeletionsDir(), settings.getRDFService(), RETRACT);
log.info("\tupdating the abox"); log.info("\tupdating the abox");
updateABox(changes); updateABox(changes);
@ -207,11 +207,9 @@ public class KnowledgeBaseUpdater {
StmtIterator sit = anonModel.listStatements(); StmtIterator sit = anonModel.listStatements();
while (sit.hasNext()) { while (sit.hasNext()) {
Statement stmt = sit.nextStatement(); Statement stmt = sit.nextStatement();
long start = System.currentTimeMillis();
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(!isUpdatableABoxGraph(graph)) { if(!isUpdatableABoxGraph(graph)) {
continue; continue;
} }