public class DatasetRepositoryConnection extends RepositoryConnectionWrapper
logger| Constructor and Description |
|---|
DatasetRepositoryConnection(DatasetRepository repository,
SailRepositoryConnection delegate) |
| Modifier and Type | Method and Description |
|---|---|
BooleanQuery |
prepareBooleanQuery(QueryLanguage ql,
String query,
String baseURI)
Prepares queries that return true or false.
|
GraphQuery |
prepareGraphQuery(QueryLanguage ql,
String query,
String baseURI)
Prepares queries that produce RDF graphs.
|
Query |
prepareQuery(QueryLanguage ql,
String query,
String baseURI)
Prepares a query for evaluation on this repository (optional operation).
|
TupleQuery |
prepareTupleQuery(QueryLanguage ql,
String query,
String baseURI)
Prepares a query that produces sets of value tuples.
|
add, add, add, add, add, add, add, add, addWithoutCommit, begin, begin, begin, clear, clearNamespaces, close, commit, exportStatements, exportStatements, getContextIDs, getDelegate, getIsolationLevel, getNamespace, getNamespaces, getStatements, hasStatement, hasStatement, isActive, isAutoCommit, isDelegatingAdd, isDelegatingRead, isDelegatingRemove, isEmpty, isOpen, prepare, prepareUpdate, remove, remove, remove, remove, removeNamespace, removeWithoutCommit, rollback, setAutoCommit, setDelegate, setIsolationLevel, setNamespace, setParserConfig, sizeaddWithoutCommit, conditionalCommit, conditionalRollback, export, getParserConfig, getRepository, getValueFactory, prepareBooleanQuery, prepareGraphQuery, prepareQuery, prepareTupleQuery, prepareUpdate, removeWithoutCommit, startLocalTransactionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitadd, add, add, add, add, add, add, add, export, getParserConfig, getRepository, getStatements, getStatements, getValueFactory, hasStatement, prepareBooleanQuery, prepareBooleanQuery, prepareGraphQuery, prepareGraphQuery, prepareQuery, prepareQuery, prepareTupleQuery, prepareTupleQuery, prepareUpdate, prepareUpdate, remove, removepublic DatasetRepositoryConnection(DatasetRepository repository, SailRepositoryConnection delegate)
public BooleanQuery prepareBooleanQuery(QueryLanguage ql, String query, String baseURI) throws MalformedQueryException, RepositoryException
RepositoryConnectionprepareBooleanQuery in interface RepositoryConnectionprepareBooleanQuery in class RepositoryConnectionWrapperql - The query language in which the query is formulated.query - The query string.baseURI - The base URI to resolve any relative URIs that are in the query against, can be null if
the query does not contain any relative URIs.BooleanQuery ready to be evaluated on this RepositoryConnection.MalformedQueryException - If the supplied query is malformed.RepositoryExceptionpublic GraphQuery prepareGraphQuery(QueryLanguage ql, String query, String baseURI) throws MalformedQueryException, RepositoryException
RepositoryConnectionprepareGraphQuery in interface RepositoryConnectionprepareGraphQuery in class RepositoryConnectionWrapperql - The query language in which the query is formulated.query - The query string.baseURI - The base URI to resolve any relative URIs that are in the query against, can be null if
the query does not contain any relative URIs.GraphQuery ready to be evaluated on this RepositoryConnection.MalformedQueryException - If the supplied query is malformed.RepositoryExceptionpublic Query prepareQuery(QueryLanguage ql, String query, String baseURI) throws MalformedQueryException, RepositoryException
RepositoryConnection
If you already know the type of query, using the more specific RepositoryConnection.prepareTupleQuery(java.lang.String),
RepositoryConnection.prepareGraphQuery(java.lang.String) or RepositoryConnection.prepareBooleanQuery(java.lang.String) is likely to be more efficient.
prepareQuery in interface RepositoryConnectionprepareQuery in class RepositoryConnectionWrapperql - The query language in which the query is formulated.query - The query string.baseURI - The base URI to resolve any relative URIs that are in the query against, can be null if
the query does not contain any relative URIs.MalformedQueryException - If the supplied query is malformed.RepositoryExceptionpublic TupleQuery prepareTupleQuery(QueryLanguage ql, String query, String baseURI) throws MalformedQueryException, RepositoryException
RepositoryConnectionprepareTupleQuery in interface RepositoryConnectionprepareTupleQuery in class RepositoryConnectionWrapperql - The query language in which the query is formulated.query - The query string.baseURI - The base URI to resolve any relative URIs that are in the query against, can be null if
the query does not contain any relative URIs.TupleQuery ready to be evaluated on this RepositoryConnection.MalformedQueryException - If the supplied query is malformed.RepositoryExceptionCopyright © 2015-2022 Eclipse Foundation. All Rights Reserved.