Class 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.
    • Constructor Detail

      • ContentTripleSourceTDB

        public ContentTripleSourceTDB()
    • Method Detail

      • setTdbPath

        public void setTdbPath​(String path)
      • getRDFService

        public RDFService getRDFService()
      • getDataset

        public org.apache.jena.query.Dataset getDataset()
      • getModelMaker

        public org.apache.jena.rdf.model.ModelMaker getModelMaker()
      • shutdown

        public void shutdown​(Application application)
        Description copied from interface: Application.Component
        This should be called only once, and should be the last call on this Component.