Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

...

Edit the "WEB-INF/classes/diringest.properties" file, changing the values to what is appropriate for your installation.

Code Block
htmlhtml
borderStylesolid
html
#
# Required settings for remote Fedora repository.
# These are used for the pid generation and ingest functions.
#
fedora.baseURL = http://localhost:8080/fedora/
fedora.user    = fedoraAdmin
fedora.pass    = fedoraAdmin
#
# Optional preferred namespace part for PIDs.
# Comment this out to use the default from the target Fedora repository
#
pid.namespace = demo

...

A successful response will return a 200 (OK) HTTP status code and a simple XML file containing PIDs, such as the one below:

xml
Code Block
xml
borderStylesolid
xml
<?xml version="1.0" encoding="UTF-8"?>
<pidList>
  <pid>demo:42</pid>
  <pid>demo:43</pid>
  <pid>demo:44</pid>
  <pid>demo:45</pid>
</pidList>

...

The "SIP2FOX" utility is useful for command-line testing of SIPs and conversion rules. It is included in the distribution's "sip2fox" directory. To invoke it, change to that directory and type:

sip2fox sipFile.zip outputDir \ [fedoraHost fedoraPort fedoraUser fedoraPass \ [pidNamespace\]\]

Panel

Wiki Markup

If you only specify a SIP file and an output directory, the program will use a test PID generator for creating the objects. If you specify Fedora Repository login information, that repository's PID generator will be used instead. To use a PID namespace other than the default for a repository, specify it as the last parameter.

...

The XML schema for conversion rules is included in the diringest distribution's sip2fox/config/ directory. There you can also find the default crules.xml file, which illustrates the use of several templates.

Include Page
FCSVCS:_FC Wiki CopyrightFCSVCS:
_FC Wiki Copyright