Skip to content

Latest commit

 

History

History
36 lines (23 loc) · 1.09 KB

README.md

File metadata and controls

36 lines (23 loc) · 1.09 KB

#Fedora Namespace Utility

This utility reads the registered namespaces for a Fedora repository and allows an administrator to selectively modify the namespace prefixes.

Building

To build the JAR file

mvn package

Running

Before running this namespace utility, stop the repository by shutting down the servlet container (Tomcat, Jetty, etc.). The utility requires the fcrepo.home system property.

Next, run this utility with the following command:

java -Dfcrepo.home=/path/to/data -jar path/to/fcrepo-namespace-util.jar

If your repository uses a customized repository.json configuration, you will need to specify the location of that resource such as:

java -Dfcrepo.home=/path/to/data -Dfcrepo.modeshape.configuration=file:/etc/fcrepo/repository.json -jar path/to/fcrepo-namespace-util.jar

Limitations

This utility can operate on most userland-defined namespaces, but if a namespace has been used in an rdf:type triple, it no longer becomes possible to change the namespace prefix. This is due to a limitation in how Modeshape stores rdf:type triple values.