Class RdfDataSourceObservableImpl

java.lang.Object
org.aksw.jenax.dataaccess.sparql.datasource.RDFDataSourceWrapperBase
org.aksw.jenax.sparql.datasource.observable.RdfDataSourceObservableImpl
All Implemented Interfaces:
RDFDataSource, RDFDataSourceWrapper, RdfDataSourceObservable

public class RdfDataSourceObservableImpl extends RDFDataSourceWrapperBase implements RdfDataSourceObservable
  • Field Details

    • mapRx

      protected ObservableSourceImpl<org.apache.jena.query.Query,org.aksw.jenax.arq.util.binding.ResultTable> mapRx
  • Constructor Details

    • RdfDataSourceObservableImpl

      public RdfDataSourceObservableImpl(RDFDataSource delegate)
  • Method Details

    • observeSelect

      public io.reactivex.rxjava3.core.Flowable<org.aksw.jenax.arq.util.binding.ResultTable> observeSelect(org.apache.jena.query.Query query)
      Description copied from interface: RdfDataSourceObservable
      Returns a flowable for the result table of the given query. The flowable is idle until subscription. Upon subscription either the query is executed or if there is a cached value from a prior execution then this one will be re-emitted. To re-execute a query it needs to be refreshed e.g. via #refreshAll(). If no change is detected after a refresh then no additional event should be sent.
      Specified by:
      observeSelect in interface RdfDataSourceObservable
    • execSelect

      public static org.aksw.jenax.arq.util.binding.ResultTable execSelect(RDFDataSource dataSource, org.apache.jena.query.Query query)
    • createResultTable

      public static org.aksw.jenax.arq.util.binding.ResultTable createResultTable(org.apache.jena.query.ResultSet rs)
    • refreshAll

      public void refreshAll(boolean cancelRunning)
      Specified by:
      refreshAll in interface RdfDataSourceObservable
    • main

      public static void main(String[] args)