Search in sources :

Example 1 with MemoryStoreConfig

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);
}
Also used : SailImplConfig(org.eclipse.rdf4j.sail.config.SailImplConfig) SailRepositoryConfig(org.eclipse.rdf4j.repository.sail.config.SailRepositoryConfig) RepositoryImplConfig(org.eclipse.rdf4j.repository.config.RepositoryImplConfig) MemoryStoreConfig(org.eclipse.rdf4j.sail.memory.config.MemoryStoreConfig) SailRepositoryConfig(org.eclipse.rdf4j.repository.sail.config.SailRepositoryConfig)

Example 2 with MemoryStoreConfig

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);
}
Also used : SailImplConfig(org.eclipse.rdf4j.sail.config.SailImplConfig) SailRepositoryConfig(org.eclipse.rdf4j.repository.sail.config.SailRepositoryConfig) ForwardChainingRDFSInferencerConfig(org.eclipse.rdf4j.sail.inferencer.fc.config.ForwardChainingRDFSInferencerConfig) MemoryStoreConfig(org.eclipse.rdf4j.sail.memory.config.MemoryStoreConfig) SailRepositoryConfig(org.eclipse.rdf4j.repository.sail.config.SailRepositoryConfig)

Example 3 with MemoryStoreConfig

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);
}
Also used : SailImplConfig(org.eclipse.rdf4j.sail.config.SailImplConfig) SailRepositoryConfig(org.eclipse.rdf4j.repository.sail.config.SailRepositoryConfig) RepositoryImplConfig(org.eclipse.rdf4j.repository.config.RepositoryImplConfig) MemoryStoreConfig(org.eclipse.rdf4j.sail.memory.config.MemoryStoreConfig) SpinSailConfig(org.eclipse.rdf4j.sail.spin.config.SpinSailConfig) SailRepositoryConfig(org.eclipse.rdf4j.repository.sail.config.SailRepositoryConfig)

Example 4 with MemoryStoreConfig

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)));
}
Also used : SailRepositoryConfig(org.eclipse.rdf4j.repository.sail.config.SailRepositoryConfig) ProxyRepositoryConfig(org.eclipse.rdf4j.repository.sail.config.ProxyRepositoryConfig) RepositoryConfig(org.eclipse.rdf4j.repository.config.RepositoryConfig) MemoryStoreConfig(org.eclipse.rdf4j.sail.memory.config.MemoryStoreConfig) ProxyRepositoryConfig(org.eclipse.rdf4j.repository.sail.config.ProxyRepositoryConfig) SailRepositoryConfig(org.eclipse.rdf4j.repository.sail.config.SailRepositoryConfig) Before(org.junit.Before)

Aggregations

SailRepositoryConfig (org.eclipse.rdf4j.repository.sail.config.SailRepositoryConfig)4 MemoryStoreConfig (org.eclipse.rdf4j.sail.memory.config.MemoryStoreConfig)4 SailImplConfig (org.eclipse.rdf4j.sail.config.SailImplConfig)3 RepositoryImplConfig (org.eclipse.rdf4j.repository.config.RepositoryImplConfig)2 RepositoryConfig (org.eclipse.rdf4j.repository.config.RepositoryConfig)1 ProxyRepositoryConfig (org.eclipse.rdf4j.repository.sail.config.ProxyRepositoryConfig)1 ForwardChainingRDFSInferencerConfig (org.eclipse.rdf4j.sail.inferencer.fc.config.ForwardChainingRDFSInferencerConfig)1 SpinSailConfig (org.eclipse.rdf4j.sail.spin.config.SpinSailConfig)1 Before (org.junit.Before)1