Package org.eclipse.rdf4j.spring
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 OperationCache
Rdf4J-Spring OperationLog
Rdf4J-Spring Pool
Rdf4J-Spring Repository
Rdf4J-Spring ResultCache
Rdf4J-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