Repository systemRep = new HTTPRepository(Protocol.getRepositoryLocation(SERVER_URL,
SystemRepository.ID));
// create a (non-inferencing) memory store
MemoryStoreConfig memStoreConfig = new MemoryStoreConfig();
SailRepositoryConfig sailRepConfig = new SailRepositoryConfig(memStoreConfig);
RepositoryConfig repConfig = new RepositoryConfig(TEST_REPO_ID, sailRepConfig);
RepositoryConfigUtil.updateRepositoryConfigs(systemRep, repConfig);
// create an inferencing memory store
ForwardChainingRDFSInferencerConfig inferMemStoreConfig = new ForwardChainingRDFSInferencerConfig(
new MemoryStoreConfig());
sailRepConfig = new SailRepositoryConfig(inferMemStoreConfig);
repConfig = new RepositoryConfig(TEST_INFERENCE_REPO_ID, sailRepConfig);
RepositoryConfigUtil.updateRepositoryConfigs(systemRep, repConfig);
}