Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

-t optional URI of an RDF:type restriction, i.e. only apply changes to resources where RDF:type is the provided URI

Considerations

The commands in the data management toolkit make use of the repository/graph service to upload entire RDF graphs obtained via construct queries. Since the changes don't go through the regular CRUD interface, they do not result in metadata changes for the resource (e.g last modified data or contributor). Some commands add a comment explaining what was done (prepended with the name OTTO KURATOR, so it is easy to SPARQL them), but most commands don't. A detailed log of changes is produced with each run, which contains the old triples (deleted) and the new triples (added). If a command was applied erroneously, it is sometimes possible to reverse it by looking at the logs, reintroducing the old triples and deleting the new triples. If the command is based on a translation table, it is also possible to re-apply it with a reversed translation table.

All commands are idempotent - they may be applied repeatedly without consequences.

Finally, because most commands do not update resource metadata, the changes will not be reported by repository/harvest, and will therefore not be visible in the search API. It is therefore necessary to perform a clean re-indexing after any data management commands are executed. This is yet another reason for using them sparsely.