public class SQLQuestStatement extends QuestStatement
| Constructor and Description |
|---|
SQLQuestStatement(it.unibz.inf.ontop.answering.reformulation.QueryReformulator queryProcessor,
Statement sqlStatement,
it.unibz.inf.ontop.answering.reformulation.input.InputQueryFactory inputQueryFactory,
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() |
protected BooleanResultSet |
executeBooleanQuery(it.unibz.inf.ontop.iq.IQ executableQuery,
it.unibz.inf.ontop.answering.logging.QueryLogger queryLogger) |
protected SimpleGraphResultSet |
executeGraphQuery(it.unibz.inf.ontop.answering.reformulation.input.ConstructQuery inputQuery,
it.unibz.inf.ontop.iq.IQ executableQuery,
boolean collectResults,
it.unibz.inf.ontop.answering.logging.QueryLogger queryLogger) |
protected TupleResultSet |
executeSelectQuery(it.unibz.inf.ontop.iq.IQ executableQuery,
it.unibz.inf.ontop.answering.logging.QueryLogger queryLogger) |
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, getExecutableQuery, getRewritingRendering, isCanceledpublic SQLQuestStatement(it.unibz.inf.ontop.answering.reformulation.QueryReformulator queryProcessor, Statement sqlStatement, it.unibz.inf.ontop.answering.reformulation.input.InputQueryFactory inputQueryFactory, 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 QuestStatementOntopQueryEvaluationExceptionprotected BooleanResultSet executeBooleanQuery(it.unibz.inf.ontop.iq.IQ executableQuery, it.unibz.inf.ontop.answering.logging.QueryLogger queryLogger) throws OntopQueryEvaluationException
executeBooleanQuery in class QuestStatementOntopQueryEvaluationExceptionprotected TupleResultSet executeSelectQuery(it.unibz.inf.ontop.iq.IQ executableQuery, it.unibz.inf.ontop.answering.logging.QueryLogger queryLogger) throws OntopQueryEvaluationException
executeSelectQuery in class QuestStatementOntopQueryEvaluationExceptionprotected SimpleGraphResultSet executeGraphQuery(it.unibz.inf.ontop.answering.reformulation.input.ConstructQuery inputQuery, it.unibz.inf.ontop.iq.IQ executableQuery, boolean collectResults, it.unibz.inf.ontop.answering.logging.QueryLogger queryLogger) throws OntopQueryEvaluationException, OntopResultConversionException, OntopConnectionException
executeGraphQuery in class QuestStatementOntopQueryEvaluationExceptionOntopResultConversionExceptionOntopConnectionExceptionCopyright © 2009–2020 Free University of Bozen-Bolzano. All rights reserved.