template = new File(cmd.getOptionValue("template"));
}
File tmpDir = null;
SesameRepositoryBackend backend;
if(cmd.hasOption("store")) {
backend = new LDPersistentBackend(new File(cmd.getOptionValue("store")));
} else {
tmpDir = Files.createTempDir();
backend = new LDPersistentBackend(tmpDir);
}
Resource context = null;
if(cmd.hasOption("context")) {
context = backend.getRepository().getValueFactory().createURI(cmd.getOptionValue("context"));
}
BufferedWriter out = null;
if(cmd.hasOption("out")) {
File of = new File(cmd.getOptionValue("out"));