use of org.eclipse.rdf4j.sail.nativerdf.config.NativeStoreConfig in project Commons by denkbares.
the class RdfFSConfig 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 NativeStoreConfig();
// 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.nativerdf.config.NativeStoreConfig in project jopa by kbss-cvut.
the class StorageConnectorTest method connectorIsAbleToConnectToAlreadyInitializedLocalNativeStorage.
@Test
void connectorIsAbleToConnectToAlreadyInitializedLocalNativeStorage() throws Exception {
final String repoId = "repositoryTest";
final URI repoUri = Paths.get(getProjectRootPath() + File.separator + "repositories" + File.separator + repoId).toUri();
this.repositoryFolder = new File(getProjectRootPath() + File.separator + "repositories");
SailImplConfig backend = new NativeStoreConfig();
final SailRepositoryConfig repoType = new SailRepositoryConfig(backend);
final RepositoryConfig config = new RepositoryConfig(repoId, repoType);
final RepositoryManager repoManager = RepositoryProvider.getRepositoryManagerOfRepository(repoUri.toString());
repoManager.addRepositoryConfig(config);
repoManager.getRepository(repoId);
final StorageConnector connector = new StorageConnector(TestUtils.createDriverConfig(repoUri.toString()));
assertTrue(connector.isOpen());
connector.close();
}
use of org.eclipse.rdf4j.sail.nativerdf.config.NativeStoreConfig in project jopa by kbss-cvut.
the class RepositoryConnectorInitializer method createLocalNativeRepositoryConfig.
private static RepositoryConfig createLocalNativeRepositoryConfig(String repoId, DriverConfiguration configuration) {
SailImplConfig backend = new NativeStoreConfig();
if (configuration.is(SesameConfigParam.USE_INFERENCE)) {
backend = new SchemaCachingRDFSInferencerConfig(backend);
}
final SailRepositoryConfig repoType = new SailRepositoryConfig(backend);
return new RepositoryConfig(repoId, repoType);
}
Aggregations