Class NamespaceRegistryCommand

  • All Implemented Interfaces:
    Command

    public class NamespaceRegistryCommand
    extends Object
    implements Command
    Command to analyze and repair the namespace registry in an Oak repository (NamespaceRegistryModel). Possible options are: --analyse, --fix, and --mappings, which will execute corresponding operations on the namespace registry.

    --analyse executes an operation that will print the current consistency state of the namespace registry to the console. If the namespace registry is inconsistent and fixable, it will also perform a dry run of the --fix operation and print the result to the console.

    --fix executes an operation that will attempt to repair an inconsistent the namespace registry.

    --mappings is an option for both operations, allowing to specify additional namespace mappings in the format "prefix=uri", which will be applied during the operation.