Skip to content

A utility for manipulating namespace prefixes in a Fedora repository

License

Notifications You must be signed in to change notification settings

bseeger/fcrepo-namespace-util

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#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.

About

A utility for manipulating namespace prefixes in a Fedora repository

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages