Interface RDFServiceFactory

    • Method Detail

      • getRDFService

        RDFService getRDFService()
        Returns:
        RDFService - an RDFService instance
      • getShortTermRDFService

        RDFService getShortTermRDFService()
        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().
        Returns:
        RDFService - an RDFService instance
      • registerListener

        void registerListener​(ChangeListener changeListener)
                       throws RDFServiceException
        Registers a listener to listen to changes in any graph in the RDF store. Any RDFService objects returned by this factory should notify this listener of changes.
        Parameters:
        changeListener - - the change listener
        Throws:
        RDFServiceException
      • unregisterListener

        void unregisterListener​(ChangeListener changeListener)
                         throws RDFServiceException
        Unregisters a listener from listening to changes in the RDF store. Any RDFService objects returned by this factory should no longer notify this listener of changes.
        Parameters:
        changeListener - - the change listener
        Throws:
        RDFServiceException
      • registerJenaModelChangedListener

        void registerJenaModelChangedListener​(org.apache.jena.rdf.model.ModelChangedListener changeListener)
                                       throws RDFServiceException
        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.
        Parameters:
        changeListener - - the change listener
        Throws:
        RDFServiceException
      • unregisterJenaModelChangedListener

        void unregisterJenaModelChangedListener​(org.apache.jena.rdf.model.ModelChangedListener changeListener)
                                         throws RDFServiceException
        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.
        Parameters:
        changeListener - - the change listener
        Throws:
        RDFServiceException