public class AbstractPredefinedQuery<Q extends it.unibz.inf.ontop.answering.reformulation.input.RDF4JInputQuery> extends Object implements PredefinedQuery<Q>
| Modifier and Type | Field and Description |
|---|---|
protected PredefinedQueryConfigEntry |
queryConfig |
| Constructor and Description |
|---|
AbstractPredefinedQuery(String id,
Q inputQuery,
PredefinedQueryConfigEntry queryConfig) |
| Modifier and Type | Method and Description |
|---|---|
org.eclipse.rdf4j.query.BindingSet |
convertBindings(it.unibz.inf.ontop.com.google.common.collect.ImmutableMap<String,String> bindings)
NB: the bindings should have been validated before
|
Optional<String> |
getDescription() |
String |
getId() |
Q |
getInputQuery() |
Optional<String> |
getName() |
boolean |
isResultStreamingEnabled() |
it.unibz.inf.ontop.com.google.common.collect.ImmutableMap<String,String> |
replaceWithReferenceValues(it.unibz.inf.ontop.com.google.common.collect.ImmutableMap<String,String> bindings)
Removes irrelevant bindings and replace the values of "safe" parameters by the reference ones
NB: the bindings should have been validated before
|
boolean |
shouldReturn404IfEmpty() |
void |
validate(it.unibz.inf.ontop.com.google.common.collect.ImmutableMap<String,String> bindings) |
protected final PredefinedQueryConfigEntry queryConfig
public AbstractPredefinedQuery(String id, Q inputQuery, PredefinedQueryConfigEntry queryConfig)
public Q getInputQuery()
getInputQuery in interface PredefinedQuery<Q extends it.unibz.inf.ontop.answering.reformulation.input.RDF4JInputQuery>public String getId()
getId in interface PredefinedQuery<Q extends it.unibz.inf.ontop.answering.reformulation.input.RDF4JInputQuery>public Optional<String> getName()
getName in interface PredefinedQuery<Q extends it.unibz.inf.ontop.answering.reformulation.input.RDF4JInputQuery>public Optional<String> getDescription()
getDescription in interface PredefinedQuery<Q extends it.unibz.inf.ontop.answering.reformulation.input.RDF4JInputQuery>public boolean shouldReturn404IfEmpty()
shouldReturn404IfEmpty in interface PredefinedQuery<Q extends it.unibz.inf.ontop.answering.reformulation.input.RDF4JInputQuery>public boolean isResultStreamingEnabled()
isResultStreamingEnabled in interface PredefinedQuery<Q extends it.unibz.inf.ontop.answering.reformulation.input.RDF4JInputQuery>public void validate(it.unibz.inf.ontop.com.google.common.collect.ImmutableMap<String,String> bindings) throws InvalidBindingSetException
validate in interface PredefinedQuery<Q extends it.unibz.inf.ontop.answering.reformulation.input.RDF4JInputQuery>InvalidBindingSetExceptionpublic org.eclipse.rdf4j.query.BindingSet convertBindings(it.unibz.inf.ontop.com.google.common.collect.ImmutableMap<String,String> bindings)
PredefinedQueryconvertBindings in interface PredefinedQuery<Q extends it.unibz.inf.ontop.answering.reformulation.input.RDF4JInputQuery>public it.unibz.inf.ontop.com.google.common.collect.ImmutableMap<String,String> replaceWithReferenceValues(it.unibz.inf.ontop.com.google.common.collect.ImmutableMap<String,String> bindings)
PredefinedQueryreplaceWithReferenceValues in interface PredefinedQuery<Q extends it.unibz.inf.ontop.answering.reformulation.input.RDF4JInputQuery>Copyright © 2009–2021 Free University of Bozen-Bolzano. All rights reserved.