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"));