public class DatasetRepository extends RepositoryWrapper
Constructor and Description |
---|
DatasetRepository() |
DatasetRepository(SailRepository delegate) |
Modifier and Type | Method and Description |
---|---|
RepositoryConnection |
getConnection()
Opens a connection to this repository that can be used for querying and
updating the contents of the repository.
|
SailRepository |
getDelegate() |
void |
loadDataset(URL url,
URI context,
ParserConfig config) |
void |
setDelegate(Repository delegate) |
getDataDir, getValueFactory, initialize, isInitialized, isWritable, setDataDir, shutDown, toString
public DatasetRepository()
public DatasetRepository(SailRepository delegate)
public void setDelegate(Repository delegate)
setDelegate
in interface DelegatingRepository
setDelegate
in class RepositoryWrapper
public SailRepository getDelegate()
getDelegate
in interface DelegatingRepository
getDelegate
in class RepositoryWrapper
public RepositoryConnection getConnection() throws RepositoryException
Repository
Connection con = repository.getConnection(); try { // perform operations on the connection } finally { con.close(); }
getConnection
in interface Repository
getConnection
in class RepositoryWrapper
RepositoryException
- If something went wrong during the creation of the Connection.public void loadDataset(URL url, URI context, ParserConfig config) throws RepositoryException
RepositoryException
Copyright © 2001-2016 Aduna. All Rights Reserved.