Class ContentTripleSourceSPARQL
- java.lang.Object
-
- edu.cornell.mannlib.vitro.webapp.modules.tripleSource.ContentTripleSource
-
- edu.cornell.mannlib.vitro.webapp.triplesource.impl.sparql.ContentTripleSourceSPARQL
-
- All Implemented Interfaces:
Application.Component,Application.Module,TripleSource
- Direct Known Subclasses:
ContentTripleSourceVirtuoso
public class ContentTripleSourceSPARQL extends ContentTripleSource
For a SPARQL endpoint, each connection is created as needed by the RDFService, so there is no need to manage connections 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. 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 ContentTripleSourceSPARQL()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected RDFServicecreateRDFService(ComponentStartupStatus ss)org.apache.jena.query.DatasetgetDataset()org.apache.jena.rdf.model.ModelMakergetModelMaker()RDFServicegetRDFService()RDFServiceFactorygetRDFServiceFactory()OntModelCachegetShortTermOntModels(RDFService shortTermRdfService, OntModelCache longTermOntModelCache)voidsetEndpointURI(String eUri)voidsetUpdateEndpointURI(String ueUri)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
-
setEndpointURI
public void setEndpointURI(String eUri)
-
setUpdateEndpointURI
public void setUpdateEndpointURI(String ueUri)
-
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.
-
createRDFService
protected RDFService createRDFService(ComponentStartupStatus ss)
-
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.
-
-