use of org.wikidata.query.rdf.tool.options.MungeOptions in project wikidata-query-rdf by wikimedia.
the class Munge method main.
/**
* Run a bulk munge configured from the command line.
*/
@SuppressWarnings("IllegalCatch")
public static void main(String[] args) {
MungeOptions options = handleOptions(MungeOptions.class, args);
UrisScheme uris = OptionsUtils.WikibaseOptions.wikibaseUris(options);
Munger munger = mungerFromOptions(options);
int chunksize = options.chunkSize();
if (chunksize < 1) {
chunksize = Integer.MAX_VALUE;
}
try {
Munge munge = new Munge(uris, munger, CliUtils.reader(options.from()), chunksize, options.to());
munge.run();
} catch (Exception e) {
log.error("Fatal error munging RDF", e);
System.exit(1);
}
}
Aggregations