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,
it.unibz.inf.ontop.model.type.TypeFactory typeFactory,
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) |
protected SimpleGraphResultSet |
executeGraphQuery(it.unibz.inf.ontop.answering.reformulation.input.ConstructQuery inputQuery,
it.unibz.inf.ontop.iq.IQ executableQuery,
boolean collectResults) |
protected TupleResultSet |
executeSelectQuery(it.unibz.inf.ontop.iq.IQ executableQuery) |
int |
getFetchSize() |
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 |
setFetchSize(int rows) |
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, it.unibz.inf.ontop.model.type.TypeFactory typeFactory, org.apache.commons.rdf.api.RDF rdfFactory, it.unibz.inf.ontop.substitution.SubstitutionFactory substitutionFactory, OntopSystemSQLSettings settings)
public int getFetchSize()
throws OntopConnectionException
OntopConnectionExceptionpublic int getMaxRows()
throws OntopConnectionException
OntopConnectionExceptionpublic void getMoreResults()
throws OntopConnectionException
OntopConnectionExceptionpublic void setFetchSize(int rows)
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) throws OntopQueryEvaluationException
executeBooleanQuery in class QuestStatementOntopQueryEvaluationExceptionprotected TupleResultSet executeSelectQuery(it.unibz.inf.ontop.iq.IQ executableQuery) 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) throws OntopQueryEvaluationException, OntopResultConversionException, OntopConnectionException
executeGraphQuery in class QuestStatementOntopQueryEvaluationExceptionOntopResultConversionExceptionOntopConnectionExceptionCopyright © 2009–2020 Free University of Bozen-Bolzano. All rights reserved.