public class DefaultOntopOWLStatement extends Object implements OntopOWLStatement
Performance Note that you should not create multiple
statements over the same connection to execute parallel queries (see
DefaultOntopOWLConnection). Multiple statements over the same connection are
not going to be very useful until we support updates (then statements will
allow to implement transactions in the same way as JDBC Statements).
| Constructor and Description |
|---|
DefaultOntopOWLStatement(it.unibz.inf.ontop.answering.connection.OntopStatement st,
it.unibz.inf.ontop.answering.reformulation.input.InputQueryFactory inputQueryFactory) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel() |
void |
close() |
BooleanOWLResultSet |
executeAskQuery(String inputQuery) |
GraphOWLResultSet |
executeConstructQuery(String inputQuery) |
GraphOWLResultSet |
executeDescribeQuery(String inputQuery) |
GraphOWLResultSet |
executeGraphQuery(String inputQuery) |
TupleOWLResultSet |
executeSelectQuery(String inputQuery) |
it.unibz.inf.ontop.iq.IQ |
getExecutableQuery(String query) |
int |
getFetchSize() |
int |
getMaxRows() |
void |
getMoreResults() |
int |
getQueryTimeout() |
String |
getRewritingRendering(String query) |
long |
getTupleCount(String query) |
boolean |
isClosed() |
void |
setFetchSize(int rows) |
void |
setMaxRows(int max) |
void |
setQueryTimeout(int seconds) |
public DefaultOntopOWLStatement(it.unibz.inf.ontop.answering.connection.OntopStatement st,
it.unibz.inf.ontop.answering.reformulation.input.InputQueryFactory inputQueryFactory)
public void cancel()
throws OntopOWLException
cancel in interface OWLStatementOntopOWLExceptionpublic void close()
throws OntopOWLException
close in interface OWLStatementclose in interface AutoCloseableOntopOWLExceptionpublic TupleOWLResultSet executeSelectQuery(String inputQuery) throws OntopOWLException
executeSelectQuery in interface OWLStatementOntopOWLExceptionpublic BooleanOWLResultSet executeAskQuery(String inputQuery) throws OntopOWLException
executeAskQuery in interface OWLStatementOntopOWLExceptionpublic GraphOWLResultSet executeConstructQuery(String inputQuery) throws OntopOWLException
executeConstructQuery in interface OWLStatementOntopOWLExceptionpublic GraphOWLResultSet executeDescribeQuery(String inputQuery) throws OntopOWLException
executeDescribeQuery in interface OWLStatementOntopOWLExceptionpublic GraphOWLResultSet executeGraphQuery(String inputQuery) throws OntopOWLException
executeGraphQuery in interface OWLStatementOntopOWLExceptionpublic int getFetchSize()
throws OntopOWLException
OntopOWLExceptionpublic int getMaxRows()
throws OntopOWLException
OntopOWLExceptionpublic void getMoreResults()
throws OntopOWLException
OntopOWLExceptionpublic int getQueryTimeout()
throws OntopOWLException
OntopOWLExceptionpublic void setFetchSize(int rows)
throws OntopOWLException
OntopOWLExceptionpublic void setMaxRows(int max)
throws OntopOWLException
OntopOWLExceptionpublic boolean isClosed()
throws OntopOWLException
isClosed in interface OWLStatementOntopOWLExceptionpublic void setQueryTimeout(int seconds)
throws OntopOWLException
setQueryTimeout in interface OWLStatementOntopOWLExceptionpublic long getTupleCount(String query) throws OntopOWLException
getTupleCount in interface OWLStatementOntopOWLExceptionpublic String getRewritingRendering(String query) throws OntopOWLException
getRewritingRendering in interface OntopOWLStatementOntopOWLExceptionpublic it.unibz.inf.ontop.iq.IQ getExecutableQuery(String query) throws OntopOWLException
getExecutableQuery in interface OntopOWLStatementOntopOWLExceptionCopyright © 2009–2020 Free University of Bozen-Bolzano. All rights reserved.