Overview
Excerpt |
---|
Within Fedora 4, snapshots of the current state of a resource may be saved into the version history. The RDF for historic version shapshots versions may be browsed and old non-RDF content may be downloaded. Furthermore, an object or subgraph may be reverted to the state that it existed in a historic version. |
...
When you wish to save a snapshot of the current version of a node to the version history you can use the REST API. When saving these versions you must provide a label that both serves to easily differentiate a version from another and allow easy retrieval of that versionThe version label will be automatically generated based on the current timestamp (with second granularity).
Expand | ||||||
---|---|---|---|---|---|---|
| ||||||
|
Note | ||
---|---|---|
| ||
If a resource has a version with a given labeltimestamp, you may not create another version with that labeltimestamp. If you later delete a labeled that version, you may then create a new version with that labeltimestamp. |
Tip |
---|
Version creation is can be a relatively costly operation. With the ability to create versions whenever you wish, you can develop workflows that maximize the utility of this feature. Possible strategies include:
|
...
If you wish to restore an object to a previous version, you may must do so using the RESTful HTTP API - Versioning, or even the HTML view. In the HTML view of a historic version, a button "Revert to this Version" exists, that when clicked restores the object (and possibly the sub-graph) to the version viewed.
Info |
---|
When restoring an old version, two operations occur:
|
...