Class ContentTripleSourceTDB
- java.lang.Object
-
- edu.cornell.mannlib.vitro.webapp.modules.tripleSource.ContentTripleSource
-
- edu.cornell.mannlib.vitro.webapp.triplesource.impl.tdb.ContentTripleSourceTDB
-
- All Implemented Interfaces:
Application.Component,Application.Module,TripleSource
public class ContentTripleSourceTDB extends ContentTripleSource
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 the small content 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.ContentTripleSource
MEMORY_MAPPED_CONTENT_MODELS, SMALL_CONTENT_MODELS
-
-
Constructor Summary
Constructors Constructor Description ContentTripleSourceTDB()
-
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)voidsetTdbPath(String path)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.ContentTripleSource
addContentDecorators
-
-
-
-
Method Detail
-
setTdbPath
public void setTdbPath(String path)
-
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.
-
-