Interface ReloadableDataSource

All Superinterfaces:
Closeable, DataSource
All Known Implementing Classes:
JenaDataSource, OwlapiDataSource

public interface ReloadableDataSource extends DataSource
Allows to reload data from the underlying storage.

This is especially meant for reloading data from text files (e.g. OWL, TTL), which might have been changed externally and the application may want to reload the file contents so that it works with the most recent data.

  • Method Details

    • reload

      void reload() throws OntoDriverException
      Reloads data from the underlying storage, if possible.

      Does nothing if the underlying storage does not support reloading or it is not necessary (e.g. when connected to a remote triple store).

      Throws:
      OntoDriverException - If an error occurs when reloading data
      IllegalStateException - If called on a closed data source