public abstract class ASTSearchOptimizerBase extends Object implements IASTOptimizer
FTS.SEARCH and related magic predicates into a
ServiceNode which will invoke the bigdata search engine.
with {
select ?subj ?score
where {
?res fts:search "foo" .
?res fts:endpoint "http://my.solr.endpoint"
?res fts:relevance ?score .
}
} as %searchSet1
| Modifier | Constructor and Description |
|---|---|
protected |
ASTSearchOptimizerBase() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract String |
getNamespace()
Get the namespace variables.
|
protected abstract org.openrdf.model.URI |
getSearchPredicate()
Get the search predicate variables.
|
protected abstract Set<org.openrdf.model.URI> |
getSearchUris()
Get the search URIs fields.
|
QueryNodeWithBindingSet |
optimize(AST2BOpContext context,
QueryNodeWithBindingSet input)
Optimize the AST.
|
protected abstract Set<org.openrdf.model.URI> getSearchUris()
protected abstract String getNamespace()
protected abstract org.openrdf.model.URI getSearchPredicate()
public QueryNodeWithBindingSet optimize(AST2BOpContext context, QueryNodeWithBindingSet input)
IASTOptimizeroptimize in interface IASTOptimizercontext - The evaluation context.input - The input to the optimizer, consisting of a queryNode and
input binding set.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.