public class AskSourceSelector extends SourceSelectorWrapper implements SourceSelector
Implementation of SourceSelector that tries to execute ASK queries to identify the data sources that hold triples that match the given triple patterns. This class extends SourceSelectorWrapper, and thus relies on a wrapped SourceSelector that provides the initial list of candidate data sources.
Note that if any exceptions are thrown when connecting to the remote data sources, this SourceSelector simples returns "true" (matching triples exist). This avoids rejecting data sources that hold relevant triples because of transient errors.
Constructor and Description |
---|
AskSourceSelector(SourceSelector selector) |
Modifier and Type | Method and Description |
---|---|
List<SourceMetadata> |
getSources(Iterable<org.openrdf.query.algebra.StatementPattern> patterns,
org.openrdf.query.Dataset dataset,
org.openrdf.query.BindingSet bindings)
Returns a list of operational endpoints where you can find
triples that match the given patterns.
|
List<SourceMetadata> |
getSources(org.openrdf.query.algebra.StatementPattern pattern,
org.openrdf.query.Dataset dataset,
org.openrdf.query.BindingSet bindings)
Returns a list of operational endpoints where you can find
triples that match the given pattern.
|
List<SourceMetadata> |
getSources(org.openrdf.query.algebra.TupleExpr expr,
org.openrdf.query.Dataset dataset,
org.openrdf.query.BindingSet bindings)
Returns a list of operational endpoints where you can find
triples that match the given expression.
|
getWrappedSelector
public AskSourceSelector(SourceSelector selector)
public List<SourceMetadata> getSources(org.openrdf.query.algebra.StatementPattern pattern, org.openrdf.query.Dataset dataset, org.openrdf.query.BindingSet bindings)
SourceSelector
getSources
in interface SourceSelector
getSources
in class SourceSelectorWrapper
public List<SourceMetadata> getSources(Iterable<org.openrdf.query.algebra.StatementPattern> patterns, org.openrdf.query.Dataset dataset, org.openrdf.query.BindingSet bindings)
SourceSelector
getSources
in interface SourceSelector
getSources
in class SourceSelectorWrapper
public List<SourceMetadata> getSources(org.openrdf.query.algebra.TupleExpr expr, org.openrdf.query.Dataset dataset, org.openrdf.query.BindingSet bindings)
SourceSelector
getSources
in interface SourceSelector
getSources
in class SourceSelectorWrapper
Copyright © 2015 SemaGrow - FP7. All rights reserved.