use of org.eclipse.rdf4j.sail.memory.config.MemoryStoreConfig in project Commons by denkbares.
the class RdfConfig method createRepositoryConfig.
@Override
public org.eclipse.rdf4j.repository.config.RepositoryConfig createRepositoryConfig(String repositoryId, String repositoryLabel, Map<String, String> overrides) throws RepositoryConfigException {
// create a configuration for the SAIL stack
SailImplConfig backendConfig = new MemoryStoreConfig();
// create a configuration for the repository implementation
RepositoryImplConfig repositoryTypeSpec = new SailRepositoryConfig(backendConfig);
return new org.eclipse.rdf4j.repository.config.RepositoryConfig(repositoryId, repositoryTypeSpec);
}
use of org.eclipse.rdf4j.sail.memory.config.MemoryStoreConfig in project Commons by denkbares.
the class RdfsConfig method createRepositoryConfig.
@Override
public org.eclipse.rdf4j.repository.config.RepositoryConfig createRepositoryConfig(String repositoryId, String repositoryLabel, Map<String, String> overrides) throws RepositoryConfigException {
// create a configuration for the SAIL stack
SailImplConfig backendConfig = new MemoryStoreConfig();
// create a configuration for the repository implementation
SailRepositoryConfig repositoryTypeSpec = new SailRepositoryConfig(new ForwardChainingRDFSInferencerConfig(backendConfig));
return new org.eclipse.rdf4j.repository.config.RepositoryConfig(repositoryId, repositoryTypeSpec);
}
use of org.eclipse.rdf4j.sail.memory.config.MemoryStoreConfig in project Commons by denkbares.
the class SpinRdfConfig method createRepositoryConfig.
@Override
public org.eclipse.rdf4j.repository.config.RepositoryConfig createRepositoryConfig(String repositoryId, String repositoryLabel, Map<String, String> overrides) throws RepositoryConfigException {
SailImplConfig spinSailConfig = new SpinSailConfig(new MemoryStoreConfig());
RepositoryImplConfig repositoryTypeSpec = new SailRepositoryConfig(spinSailConfig);
return new org.eclipse.rdf4j.repository.config.RepositoryConfig(repositoryId, repositoryTypeSpec);
}
use of org.eclipse.rdf4j.sail.memory.config.MemoryStoreConfig in project rdf4j by eclipse.
the class LocalRepositoryManagerTest method setUp.
/**
* @throws java.lang.Exception
*/
@Before
public void setUp() throws Exception {
datadir = tempDir.newFolder("local-repositorymanager-test");
manager = new LocalRepositoryManager(datadir);
manager.initialize();
// Create configurations for the SAIL stack, and the repository
// implementation.
manager.addRepositoryConfig(new RepositoryConfig(TEST_REPO, new SailRepositoryConfig(new MemoryStoreConfig(true))));
// Create configuration for proxy repository to previous repository.
manager.addRepositoryConfig(new RepositoryConfig(PROXY_ID, new ProxyRepositoryConfig(TEST_REPO)));
}
Aggregations