public class OntopRDF4JPredefinedQueryEngineImpl extends Object implements OntopRDF4JPredefinedQueryEngine
| Constructor and Description |
|---|
OntopRDF4JPredefinedQueryEngineImpl(OntopQueryEngine ontopEngine,
PredefinedQueries predefinedQueries,
OntopSystemConfiguration configuration) |
| Modifier and Type | Method and Description |
|---|---|
String |
evaluate(String queryId,
it.unibz.inf.ontop.com.google.common.collect.ImmutableMap<String,String> bindings,
it.unibz.inf.ontop.com.google.common.collect.ImmutableList<String> acceptMediaTypes,
it.unibz.inf.ontop.com.google.common.collect.ImmutableMultimap<String,String> httpHeaders,
Consumer<Integer> httpStatusSetter,
BiConsumer<String,String> httpHeaderSetter)
Same, without streaming
|
void |
evaluate(String queryId,
it.unibz.inf.ontop.com.google.common.collect.ImmutableMap<String,String> bindings,
it.unibz.inf.ontop.com.google.common.collect.ImmutableList<String> acceptMediaTypes,
it.unibz.inf.ontop.com.google.common.collect.ImmutableMultimap<String,String> httpHeaders,
Consumer<Integer> httpStatusSetter,
BiConsumer<String,String> httpHeaderSetter,
OutputStream outputStream)
Streaming mode
acceptMediaTypes are expected to be sorted by decreasing importance and having no quality parameter
May throw a LateEvaluationOrConversionException when executing the query.
|
org.eclipse.rdf4j.query.GraphQueryResult |
evaluateGraph(String queryId,
it.unibz.inf.ontop.com.google.common.collect.ImmutableMap<String,String> bindings) |
boolean |
shouldStream(String queryId)
Disabled by default
|
public OntopRDF4JPredefinedQueryEngineImpl(OntopQueryEngine ontopEngine, PredefinedQueries predefinedQueries, OntopSystemConfiguration configuration)
public void evaluate(String queryId, it.unibz.inf.ontop.com.google.common.collect.ImmutableMap<String,String> bindings, it.unibz.inf.ontop.com.google.common.collect.ImmutableList<String> acceptMediaTypes, it.unibz.inf.ontop.com.google.common.collect.ImmutableMultimap<String,String> httpHeaders, Consumer<Integer> httpStatusSetter, BiConsumer<String,String> httpHeaderSetter, OutputStream outputStream) throws LateEvaluationOrConversionException
OntopRDF4JPredefinedQueryEngineevaluate in interface OntopRDF4JPredefinedQueryEngineLateEvaluationOrConversionExceptionpublic String evaluate(String queryId, it.unibz.inf.ontop.com.google.common.collect.ImmutableMap<String,String> bindings, it.unibz.inf.ontop.com.google.common.collect.ImmutableList<String> acceptMediaTypes, it.unibz.inf.ontop.com.google.common.collect.ImmutableMultimap<String,String> httpHeaders, Consumer<Integer> httpStatusSetter, BiConsumer<String,String> httpHeaderSetter)
OntopRDF4JPredefinedQueryEngineevaluate in interface OntopRDF4JPredefinedQueryEnginepublic boolean shouldStream(String queryId)
shouldStream in interface OntopRDF4JPredefinedQueryEnginepublic org.eclipse.rdf4j.query.GraphQueryResult evaluateGraph(String queryId, it.unibz.inf.ontop.com.google.common.collect.ImmutableMap<String,String> bindings) throws org.eclipse.rdf4j.query.QueryEvaluationException
evaluateGraph in interface OntopRDF4JPredefinedQueryEngineorg.eclipse.rdf4j.query.QueryEvaluationExceptionCopyright © 2009–2021 Free University of Bozen-Bolzano. All rights reserved.