| java.lang.Object org.openrdf.repository.base.RepositoryConnectionBase
All known Subclasses: org.openrdf.repository.sail.SailRepositoryConnection, org.openrdf.repository.http.HTTPRepositoryConnection, org.openrdf.repository.base.RepositoryConnectionWrapper,
RepositoryConnectionBase | abstract public class RepositoryConnectionBase implements RepositoryConnection(Code) | | Abstract class implementing most 'convenience' methods in the
RepositoryConnection interface by transforming parameters and mapping the
methods to the basic (abstractly declared) methods.
Open connections are automatically closed when being garbage collected. A
warning message will be logged when the system property
org.openrdf.repository.debug has been set to a non-null
value.
author: jeen author: Arjohn Kampman |
Field Summary | |
final protected Logger | logger |
Method Summary | |
public void | add(File file, String baseURI, RDFFormat dataFormat, Resource... contexts) | public void | add(URL url, String baseURI, RDFFormat dataFormat, Resource... contexts) | public void | add(InputStream in, String baseURI, RDFFormat dataFormat, Resource... contexts) | public void | add(Reader reader, String baseURI, RDFFormat dataFormat, Resource... contexts) | public void | add(Iterable<? extends Statement> statements, Resource... contexts) | public void | add(Iteration<? extends Statement, E> statementIter, Resource... contexts) | public void | add(Statement st, Resource... contexts) | public void | add(Resource subject, URI predicate, Value object, Resource... contexts) | protected void | addInputStreamOrReader(Object inputStreamOrReader, String baseURI, RDFFormat dataFormat, Resource... contexts) Adds the data that can be read from the supplied InputStream or Reader to
this repository.
Parameters: inputStreamOrReader - An InputStream or Reader containing RDF data thatmust be added to the repository. Parameters: baseURI - The base URI for the data. Parameters: dataFormat - The file format of the data. Parameters: context - The context to which the data should be added in caseenforceContext is true. | protected void | addWithoutCommit(Statement st, Resource... contexts) | abstract protected void | addWithoutCommit(Resource subject, URI predicate, Value object, Resource... contexts) | protected void | autoCommit() Calls
RepositoryConnectionBase.commit when in auto-commit mode. | public void | clear(Resource... contexts) | public void | close() | public void | export(RDFHandler handler, Resource... contexts) | protected void | finalize() | public Repository | getRepository() | public boolean | hasStatement(Resource subj, URI pred, Value obj, boolean includeInferred, Resource... contexts) | public boolean | hasStatement(Statement st, boolean includeInferred, Resource... contexts) | public boolean | isAutoCommit() | public boolean | isEmpty() | public boolean | isOpen() | public BooleanQuery | prepareBooleanQuery(QueryLanguage ql, String query) | public GraphQuery | prepareGraphQuery(QueryLanguage ql, String query) | public Query | prepareQuery(QueryLanguage ql, String query) | public TupleQuery | prepareTupleQuery(QueryLanguage ql, String query) | public void | remove(Iterable<? extends Statement> statements, Resource... contexts) | public void | remove(Iteration<? extends Statement, E> statementIter, Resource... contexts) | public void | remove(Statement st, Resource... contexts) | public void | remove(Resource subject, URI predicate, Value object, Resource... contexts) | protected void | removeWithoutCommit(Statement st, Resource... contexts) | abstract protected void | removeWithoutCommit(Resource subject, URI predicate, Value object, Resource... contexts) | public void | setAutoCommit(boolean autoCommit) |
logger | final protected Logger logger(Code) | | |
RepositoryConnectionBase | protected RepositoryConnectionBase(Repository repository)(Code) | | |
|
|