public class SQLQuestStatement extends QuestStatement
| Constructor and Description |
|---|
SQLQuestStatement(it.unibz.inf.ontop.answering.reformulation.QueryReformulator queryProcessor,
Statement sqlStatement,
JDBCStatementFinalizer statementFinalizer,
it.unibz.inf.ontop.model.term.TermFactory termFactory,
org.apache.commons.rdf.api.RDF rdfFactory,
it.unibz.inf.ontop.substitution.SubstitutionFactory substitutionFactory,
OntopSystemSQLSettings settings) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
cancelExecution() |
void |
close() |
BooleanResultSet |
executeBooleanQuery(it.unibz.inf.ontop.iq.IQ executableQuery,
it.unibz.inf.ontop.answering.logging.QueryLogger queryLogger) |
protected GraphResultSet |
executeConstructQuery(it.unibz.inf.ontop.answering.reformulation.input.ConstructTemplate constructTemplate,
it.unibz.inf.ontop.iq.IQ executableQuery,
it.unibz.inf.ontop.answering.logging.QueryLogger queryLogger,
boolean shouldAlsoCloseStatement)
TODO: make it SQL-independent
|
protected TupleResultSet |
executeSelectQuery(it.unibz.inf.ontop.iq.IQ executableQuery,
it.unibz.inf.ontop.answering.logging.QueryLogger queryLogger,
boolean shouldAlsoCloseStatement) |
int |
getMaxRows() |
void |
getMoreResults() |
int |
getQueryTimeout() |
int |
getTupleCount(it.unibz.inf.ontop.answering.reformulation.input.InputQuery inputQuery)
Returns the number of tuples returned by the query
|
boolean |
isClosed() |
void |
setMaxRows(int max) |
void |
setQueryTimeout(int seconds) |
cancel, execute, execute, executeConstructQuery, executeDescribeQuery, executeSelectQuery, getExecutableQuery, getRewritingRendering, isCanceledpublic SQLQuestStatement(it.unibz.inf.ontop.answering.reformulation.QueryReformulator queryProcessor, Statement sqlStatement, JDBCStatementFinalizer statementFinalizer, it.unibz.inf.ontop.model.term.TermFactory termFactory, org.apache.commons.rdf.api.RDF rdfFactory, it.unibz.inf.ontop.substitution.SubstitutionFactory substitutionFactory, OntopSystemSQLSettings settings)
public int getMaxRows()
throws OntopConnectionException
OntopConnectionExceptionpublic void getMoreResults()
throws OntopConnectionException
OntopConnectionExceptionpublic void setMaxRows(int max)
throws OntopConnectionException
OntopConnectionExceptionpublic void setQueryTimeout(int seconds)
throws OntopConnectionException
OntopConnectionExceptionpublic int getQueryTimeout()
throws OntopConnectionException
OntopConnectionExceptionpublic boolean isClosed()
throws OntopConnectionException
OntopConnectionExceptionpublic int getTupleCount(it.unibz.inf.ontop.answering.reformulation.input.InputQuery inputQuery) throws OntopReformulationException, OntopQueryEvaluationException
public void close()
throws OntopConnectionException
OntopConnectionExceptionprotected void cancelExecution()
throws OntopQueryEvaluationException
cancelExecution in class QuestStatementOntopQueryEvaluationExceptionpublic BooleanResultSet executeBooleanQuery(it.unibz.inf.ontop.iq.IQ executableQuery, it.unibz.inf.ontop.answering.logging.QueryLogger queryLogger) throws OntopQueryEvaluationException
OntopQueryEvaluationExceptionprotected TupleResultSet executeSelectQuery(it.unibz.inf.ontop.iq.IQ executableQuery, it.unibz.inf.ontop.answering.logging.QueryLogger queryLogger, boolean shouldAlsoCloseStatement) throws OntopQueryEvaluationException
executeSelectQuery in class QuestStatementOntopQueryEvaluationExceptionprotected GraphResultSet executeConstructQuery(it.unibz.inf.ontop.answering.reformulation.input.ConstructTemplate constructTemplate, it.unibz.inf.ontop.iq.IQ executableQuery, it.unibz.inf.ontop.answering.logging.QueryLogger queryLogger, boolean shouldAlsoCloseStatement) throws OntopQueryEvaluationException, OntopResultConversionException, OntopConnectionException
executeConstructQuery in class QuestStatementOntopQueryEvaluationExceptionOntopResultConversionExceptionOntopConnectionExceptionCopyright © 2009–2021 Free University of Bozen-Bolzano. All rights reserved.