Interface DatasetRepository


public interface DatasetRepository
Abstraction from the underlaying rdf store, that is used behing commons-rdf.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.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
    Free resources used by the DatasetRepository
  • Method Details

    • createDataset

      org.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.
      Parameters:
      datasetName -
      Returns:
      A newly created Dataset
    • findDataset

      Optional<org.apache.commons.rdf.api.Dataset> findDataset(String datasetName)
      Parameters:
      datasetName -
      Returns:
      The Dataset found for the passed datasetName;
    • shutdown

      void shutdown()
      Free resources used by the DatasetRepository