Package cz.cvut.kbss.ontodriver
Interface ReloadableDataSource
- All Superinterfaces:
Closeable
,DataSource
- All Known Implementing Classes:
JenaDataSource
,OwlapiDataSource
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 Summary
Modifier and TypeMethodDescriptionvoid
reload()
Reloads data from the underlying storage, if possible.Methods inherited from interface cz.cvut.kbss.ontodriver.DataSource
getConnection, setProperties, setStorageProperties
-
Method Details
-
reload
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 dataIllegalStateException
- If called on a closed data source
-