Interface DatasetRepository
public interface DatasetRepository
Abstraction from the underlaying rdf store, that is used behing commons-rdf.
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.commons.rdf.api.Dataset
createDataset
(String datasetName) Exception possibly depending on the implementation this throws an Exception, if there is already a dataset with that name.Optional
<org.apache.commons.rdf.api.Dataset> findDataset
(String datasetName) void
shutdown()
Free resources used by theDatasetRepository
-
Method Details
-
createDataset
Exception possibly depending on the implementation this throws an Exception, if there is already a dataset with that name.- Parameters:
datasetName
-- Returns:
- A newly created
Dataset
-
findDataset
- Parameters:
datasetName
-- Returns:
- The
Dataset
found for the passed datasetName;
-
shutdown
void shutdown()Free resources used by theDatasetRepository
-