Class RDFServiceFactorySDB

    • Constructor Detail

      • RDFServiceFactorySDB

        public RDFServiceFactorySDB​(DataSource dataSource,
                                    org.apache.jena.sdb.StoreDesc storeDesc)
    • Method Detail

      • getShortTermRDFService

        public RDFService getShortTermRDFService()
        Description copied from interface: RDFServiceFactory
        Returns an instance of RDFService that may not support being left idle for long periods of time. RDFService instances returned by this method should be immediately used and closed, not stored in (for example) session or context attributes. This method exists to enable performance improvements resulting from a lack of need to handle database connection or other service timeouts and reconnects. The results provided by RDFService instances returned by this method must be identical to those provided by instances returned by getRDFService().
        Specified by:
        getShortTermRDFService in interface RDFServiceFactory
        Returns:
        RDFService - an RDFService instance
      • registerJenaModelChangedListener

        public void registerJenaModelChangedListener​(org.apache.jena.rdf.model.ModelChangedListener changeListener)
                                              throws RDFServiceException
        Description copied from interface: RDFServiceFactory
        Registers a Jena ModelChangedListener to listen to changes in any graph in the RDF store. Any RDFService objects returned by this factory should notify this listener of changes.
        Specified by:
        registerJenaModelChangedListener in interface RDFServiceFactory
        Parameters:
        changeListener - - the change listener
        Throws:
        RDFServiceException
      • unregisterJenaModelChangedListener

        public void unregisterJenaModelChangedListener​(org.apache.jena.rdf.model.ModelChangedListener changeListener)
                                                throws RDFServiceException
        Description copied from interface: RDFServiceFactory
        Unregisters a Jena ModelChangedListener from listening to changes in the RDF store. Any RDFService objects returned by this factory should no longer notify this listener of changes.
        Specified by:
        unregisterJenaModelChangedListener in interface RDFServiceFactory
        Parameters:
        changeListener - - the change listener
        Throws:
        RDFServiceException