org.openrdf.repository.dataset
Class DatasetRepositoryConnection

java.lang.Object
  extended by org.openrdf.repository.base.RepositoryConnectionBase
      extended by org.openrdf.repository.base.RepositoryConnectionWrapper
          extended by org.openrdf.repository.dataset.DatasetRepositoryConnection
All Implemented Interfaces:
DelegatingRepositoryConnection, RepositoryConnection

public class DatasetRepositoryConnection
extends RepositoryConnectionWrapper


Field Summary
 
Fields inherited from class org.openrdf.repository.base.RepositoryConnectionBase
logger
 
Constructor Summary
DatasetRepositoryConnection(DatasetRepository repository, SailRepositoryConnection delegate)
           
 
Method Summary
 BooleanQuery prepareBooleanQuery(QueryLanguage ql, String query, String baseURI)
          Prepares true/false queries.
 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.
 
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, getParserConfig, getStatements, hasStatement, hasStatement, isAutoCommit, isDelegatingAdd, isDelegatingRead, isDelegatingRemove, isEmpty, isOpen, prepareUpdate, remove, remove, remove, remove, removeNamespace, removeWithoutCommit, rollback, setAutoCommit, setDelegate, setNamespace, setParserConfig, size
 
Methods inherited from class org.openrdf.repository.base.RepositoryConnectionBase
addInputStreamOrReader, addWithoutCommit, autoCommit, export, getRepository, getValueFactory, prepareBooleanQuery, prepareGraphQuery, prepareQuery, prepareTupleQuery, prepareUpdate, removeWithoutCommit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.openrdf.repository.RepositoryConnection
export, getRepository, getValueFactory, prepareBooleanQuery, prepareGraphQuery, prepareQuery, prepareTupleQuery, prepareUpdate
 

Constructor Detail

DatasetRepositoryConnection

public DatasetRepositoryConnection(DatasetRepository repository,
                                   SailRepositoryConnection delegate)
Method Detail

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-2012 Aduna. All Rights Reserved.