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 Summary
FieldsModifier and TypeFieldDescriptionprotected ObservableSourceImpl<org.apache.jena.query.Query,org.aksw.jenax.arq.util.binding.ResultTable> Fields inherited from class org.aksw.jenax.dataaccess.sparql.datasource.RDFDataSourceWrapperBase
delegate -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.aksw.jenax.arq.util.binding.ResultTablecreateResultTable(org.apache.jena.query.ResultSet rs) static org.aksw.jenax.arq.util.binding.ResultTableexecSelect(RDFDataSource dataSource, org.apache.jena.query.Query query) static voidio.reactivex.rxjava3.core.Flowable<org.aksw.jenax.arq.util.binding.ResultTable>observeSelect(org.apache.jena.query.Query query) Returns a flowable for the result table of the given query.voidrefreshAll(boolean cancelRunning) Methods inherited from class org.aksw.jenax.dataaccess.sparql.datasource.RDFDataSourceWrapperBase
getDelegateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.aksw.jenax.dataaccess.sparql.datasource.RDFDataSource
asLinkSource, asQef, getDataset, newQuery, newUpdate, query, query, update, update, updateMethods inherited from interface org.aksw.jenax.dataaccess.sparql.datasource.RDFDataSourceWrapper
getConnection
-
Field Details
-
mapRx
protected ObservableSourceImpl<org.apache.jena.query.Query,org.aksw.jenax.arq.util.binding.ResultTable> mapRx
-
-
Constructor Details
-
RdfDataSourceObservableImpl
-
-
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:RdfDataSourceObservableReturns 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:
observeSelectin interfaceRdfDataSourceObservable
-
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:
refreshAllin interfaceRdfDataSourceObservable
-
main
-