Class ContentTripleSourceSDB
- java.lang.Object
-
- edu.cornell.mannlib.vitro.webapp.modules.tripleSource.ContentTripleSource
-
- edu.cornell.mannlib.vitro.webapp.triplesource.impl.sdb.ContentTripleSourceSDB
-
- All Implemented Interfaces:
Application.Component,Application.Module,TripleSource
public class ContentTripleSourceSDB extends ContentTripleSource
Create the connection to the SDB triple-store. Do some smoke-tests on the parameters, create the connection pool, and create the RDFServiceFactory.
-
-
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 ContentTripleSourceSDB()
-
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)Use models from the short-term RDFService, since there is less contention for the database connections that way.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
-
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)
Use models from the short-term RDFService, since there is less contention for the database connections that way. The exceptions are the memory-mapped models. By keeping them, we also keep their sub-models. Set up the Union models again also, so they will reference the short-term models.
-
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.
-
-