Search in sources :

Example 1 with SpinSailConfig

use of org.eclipse.rdf4j.sail.spin.config.SpinSailConfig 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 2 with SpinSailConfig

use of org.eclipse.rdf4j.sail.spin.config.SpinSailConfig in project AJAN-service by aantakli.

the class RDF4JTripleStoreManager method createRemoteSPINRepository.

private void createRemoteSPINRepository(final String tdbId) throws RepositoryConfigException, RepositoryException {
    MemoryStoreConfig backendConfig = new MemoryStoreConfig();
    SailImplConfig spinConfig = new SpinSailConfig(backendConfig);
    addRepositoryConfig(tdbId, new SailRepositoryConfig(spinConfig));
}
Also used : SailImplConfig(org.eclipse.rdf4j.sail.config.SailImplConfig) 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 3 with SpinSailConfig

use of org.eclipse.rdf4j.sail.spin.config.SpinSailConfig in project AJAN-service by aantakli.

the class RDF4JTripleStoreManager method createRemoteRDFSSPINRepository.

private void createRemoteRDFSSPINRepository(final String tdbId) throws RepositoryConfigException, RepositoryException {
    SailImplConfig spinSailConfig = new SpinSailConfig(new SchemaCachingRDFSInferencerConfig(new DedupingInferencerConfig(new MemoryStoreConfig())));
    addRepositoryConfig(tdbId, new SailRepositoryConfig(spinSailConfig));
}
Also used : SailImplConfig(org.eclipse.rdf4j.sail.config.SailImplConfig) SchemaCachingRDFSInferencerConfig(org.eclipse.rdf4j.sail.inferencer.fc.config.SchemaCachingRDFSInferencerConfig) MemoryStoreConfig(org.eclipse.rdf4j.sail.memory.config.MemoryStoreConfig) DedupingInferencerConfig(org.eclipse.rdf4j.sail.inferencer.fc.config.DedupingInferencerConfig) SpinSailConfig(org.eclipse.rdf4j.sail.spin.config.SpinSailConfig) SailRepositoryConfig(org.eclipse.rdf4j.repository.sail.config.SailRepositoryConfig)

Aggregations

SailRepositoryConfig (org.eclipse.rdf4j.repository.sail.config.SailRepositoryConfig)3 SailImplConfig (org.eclipse.rdf4j.sail.config.SailImplConfig)3 MemoryStoreConfig (org.eclipse.rdf4j.sail.memory.config.MemoryStoreConfig)3 SpinSailConfig (org.eclipse.rdf4j.sail.spin.config.SpinSailConfig)3 RepositoryImplConfig (org.eclipse.rdf4j.repository.config.RepositoryImplConfig)1 DedupingInferencerConfig (org.eclipse.rdf4j.sail.inferencer.fc.config.DedupingInferencerConfig)1 SchemaCachingRDFSInferencerConfig (org.eclipse.rdf4j.sail.inferencer.fc.config.SchemaCachingRDFSInferencerConfig)1