org.openrdf.repository.dataset
Class DatasetRepositoryConnection
java.lang.Object
org.openrdf.repository.base.RepositoryConnectionBase
org.openrdf.repository.base.RepositoryConnectionWrapper
org.openrdf.repository.dataset.DatasetRepositoryConnection
- All Implemented Interfaces:
- DelegatingRepositoryConnection, RepositoryConnection
public class DatasetRepositoryConnection
- extends RepositoryConnectionWrapper
| Methods inherited from class org.openrdf.repository.base.RepositoryConnectionWrapper |
add, add, add, add, add, add, add, add, addWithoutCommit, clear, clearNamespaces, close, commit, exportStatements, exportStatements, getContextIDs, getDelegate, getNamespace, getNamespaces, getStatements, hasStatement, hasStatement, isAutoCommit, isDelegatingAdd, isDelegatingRead, isDelegatingRemove, isEmpty, isOpen, remove, remove, remove, remove, removeNamespace, removeWithoutCommit, rollback, setAutoCommit, setDelegate, setNamespace, size |
| Methods inherited from class org.openrdf.repository.base.RepositoryConnectionBase |
addInputStreamOrReader, addWithoutCommit, autoCommit, export, finalize, getRepository, prepareBooleanQuery, prepareGraphQuery, prepareQuery, prepareTupleQuery, removeWithoutCommit |
DatasetRepositoryConnection
public DatasetRepositoryConnection(DatasetRepository repository,
SailRepositoryConnection delegate)
prepareBooleanQuery
public BooleanQuery prepareBooleanQuery(QueryLanguage ql,
String query,
String baseURI)
throws MalformedQueryException,
RepositoryException
- Description copied from interface:
RepositoryConnection
- Prepares true/false queries.
- Specified by:
prepareBooleanQuery in interface RepositoryConnection- Overrides:
prepareBooleanQuery in class RepositoryConnectionWrapper
- Parameters:
ql - 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.
- Throws:
MalformedQueryException - If the supplied query is malformed.
RepositoryException
prepareGraphQuery
public GraphQuery prepareGraphQuery(QueryLanguage ql,
String query,
String baseURI)
throws MalformedQueryException,
RepositoryException
- Description copied from interface:
RepositoryConnection
- Prepares queries that produce RDF graphs.
- Specified by:
prepareGraphQuery in interface RepositoryConnection- Overrides:
prepareGraphQuery in class RepositoryConnectionWrapper
- Parameters:
ql - 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.
- Throws:
MalformedQueryException - If the supplied query is malformed.
RepositoryException
prepareQuery
public Query prepareQuery(QueryLanguage ql,
String query,
String baseURI)
throws MalformedQueryException,
RepositoryException
- Description copied from interface:
RepositoryConnection
- Prepares a query for evaluation on this repository (optional operation).
- Specified by:
prepareQuery in interface RepositoryConnection- Overrides:
prepareQuery in class RepositoryConnectionWrapper
- Parameters:
ql - 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.
- Returns:
- A query ready to be evaluated on this repository.
- Throws:
MalformedQueryException - If the supplied query is malformed.
RepositoryException
prepareTupleQuery
public TupleQuery prepareTupleQuery(QueryLanguage ql,
String query,
String baseURI)
throws MalformedQueryException,
RepositoryException
- Description copied from interface:
RepositoryConnection
- Prepares a query that produces sets of value tuples.
- Specified by:
prepareTupleQuery in interface RepositoryConnection- Overrides:
prepareTupleQuery in class RepositoryConnectionWrapper
- Parameters:
ql - 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.
- Throws:
MalformedQueryException - If the supplied query is malformed.
RepositoryException
Copyright © 2001-2008 Aduna. All Rights Reserved.