Class ConfigurationTripleSourceTDB
- java.lang.Object
-
- edu.cornell.mannlib.vitro.webapp.modules.tripleSource.ConfigurationTripleSource
-
- edu.cornell.mannlib.vitro.webapp.triplesource.impl.tdb.ConfigurationTripleSourceTDB
-
- All Implemented Interfaces:
Application.Component,Application.Module,TripleSource
public class ConfigurationTripleSourceTDB extends ConfigurationTripleSource
A TDB triple-store has no concept of connections, so we need not manage them here. As a result, we have a single RDFService, a RDFServiceFactory that always returns that single RDFService, a single instance of the Dataset and the ModelMaker. We keep a copy of the RDFService wrapped in an Unclosable shell, and hand that out when requested. The inner RDFService is only closed on shutdown(). Memory-map all of the configuration models, and add the standard decorators.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface edu.cornell.mannlib.vitro.webapp.modules.Application.Component
Application.Component.LifecycleState
-
-
Field Summary
-
Fields inherited from class edu.cornell.mannlib.vitro.webapp.modules.tripleSource.ConfigurationTripleSource
CONFIGURATION_MODELS
-
-
Constructor Summary
Constructors Constructor Description ConfigurationTripleSourceTDB()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.jena.query.DatasetgetDataset()org.apache.jena.rdf.model.ModelMakergetModelMaker()RDFServicegetRDFService()RDFServiceFactorygetRDFServiceFactory()OntModelCachegetShortTermOntModels(RDFService shortTermRdfService, OntModelCache longTermOntModelCache)voidshutdown(Application application)This should be called only once, and should be the last call on this Component.voidstartup(Application application, ComponentStartupStatus ss)This should be called only once, and should be the first call on this Component.StringtoString()-
Methods inherited from class edu.cornell.mannlib.vitro.webapp.modules.tripleSource.ConfigurationTripleSource
addConfigurationDecorators
-
-
-
-
Method Detail
-
startup
public void startup(Application application, ComponentStartupStatus ss)
Description copied from interface:Application.ComponentThis should be called only once, and should be the first call on this Component.
-
getRDFServiceFactory
public RDFServiceFactory getRDFServiceFactory()
-
getRDFService
public RDFService getRDFService()
-
getDataset
public org.apache.jena.query.Dataset getDataset()
-
getModelMaker
public org.apache.jena.rdf.model.ModelMaker getModelMaker()
-
getShortTermOntModels
public OntModelCache getShortTermOntModels(RDFService shortTermRdfService, OntModelCache longTermOntModelCache)
-
shutdown
public void shutdown(Application application)
Description copied from interface:Application.ComponentThis should be called only once, and should be the last call on this Component.
-
-