public static void main(String[] args) throws IOException {
if ( ( args.length != 1 ) && ( args.length !=2 ) ) { print_usage(); }
if ( ( args.length == 2 ) && (!"--dump".equals(args[0])) ) { print_usage(); }
ProgressLogger monitor = new ProgressLogger(log, "Data (1/2)", BulkLoader.DataTickPoint,BulkLoader.superTick) ;
log.info("Data (1/2)...");
Location location = new Location(args.length==1?args[0]:args[1]);
monitor.start();
NodeTableRewriter.fixNodeTable2(location, log, monitor);
long time = monitor.finish() ;
long total = monitor.getTicks() ;
float elapsedSecs = time/1000F ;
float rate = (elapsedSecs!=0) ? total/elapsedSecs : 0 ;
String str = String.format("Total: %,d RDF nodes : %,.2f seconds : %,.2f nodes/sec [%s]", total, elapsedSecs, rate, nowAsString()) ;
log.info(str);