Package org.eclipse.rdf4j.spring
Rdf4J-Spring
Configures beans for Rdf4J access. Uses Spring's autoconfiguration mechanism at startup to determine which subsystems to use. The following example shows a spring configuration class enabling all features and using an in-memory repository. The DAO classes (subclasses ofRdf4JDao), assumed to be
under com.example.your.app
, are autodetected.
@Configuration
@Import(Rdf4JConfig.class)
@ComponentScan(
value = "com.example.your.app",
includeFilters =
@ComponentScan.Filter(type = FilterType.ASSIGNABLE_TYPE, classes = Rdf4JDao.class)
@TestPropertySource(
properties = {
"rdf4j.spring.repository.inmemory.enabled=true",
"rdf4j.spring.pool.enabled=true",
"rdf4j.spring.operationcache.enabled=true",
"rdf4j.spring.operationlog.enabled=true",
"rdf4j.spring.resultcache.enabled=true",
"rdf4j.spring.tx.enabled=true",
})
public class Rdf4JStorageConfiguration {
// beans, if any (you may not need any - all your DAOs could be autodetected and all other beans may
// be configured elsewhere)
}
For more information on the subsystems, please refer to their package-infos:
Rdf4J-Spring OperationCacheRdf4J-Spring OperationLogRdf4J-Spring PoolRdf4J-Spring RepositoryRdf4J-Spring ResultCacheRdf4J-Spring Tx
This software has been developed in the project 'BIM-Interoperables Merkmalservice', funded by the Austrian Research Promotion Agency and Österreichische Bautechnik Veranstaltungs GmbH.
- Since:
- 4.0.0
- Author:
- Florian Kleedorfer
-
Class Summary Class Description RDF4JConfig