SesameRepositoryBackend backend;
if(cmd.hasOption("store")) {
backend = new LDPersistentBackend(new File(cmd.getOptionValue("store")));
} else {
backend = new LDMemoryBackend();
}
Resource context = null;
if(cmd.hasOption("context")) {
context = backend.getRepository().getValueFactory().createURI(cmd.getOptionValue("context"));