Harvesting metadata with OAI-PMH
finish the response
echo '</ListIdentifiers>'; ?>
Exercise - Making CIMI Schema data available via OAI-PMH
Given the necessary computer infrastructure, in this exercise you will make the data in from a small CIMI Schema XML for SPECTRUM file available via OAI-PMH.
Transform CIMI data into files
Open the file named water.xml in your favorite text editor, such as Notepad. The schema (CIMI Schema for SPECTRUM) used to define the contents of water.xml is designed to de- scribe, inventory, and chronical the items in museum collections. Notice the structure of the file as well as the elements used to mark-up its content.
Create a directory on your computer's desktop.
Copy all the *.dll files from the CD to your newly created directory.
Copy all the *.exe files from the CD to your newly created directory.
Copy cimi2oaidc.xsl and water.xml from the CD to your newly created directory.
Open a new terminal window by running cmd.exe from the Start menu's Run command.
Change directories to your newly created directory.
Transform water.xml into a set of XML files very easily read by OAI-PMH harvesters bye us- ing this command: xsltproc cimi2oaidc.xsl water.xml .
Open any of the newly created files in your favorite text editor and notice how it contains Dublin Core metadata transformed from the original CIMI data.
Install OAI scripts
Assuming that Perl, a scripting language, is already installed on your computer, copy the dir- ectory named oai from the CD to your newly created directory on the desktop.
Copy all the newly created XML files from the first part of this exercise into the directory named data found in the newly created oai directory.
Change directories to the newly created CIMI directory, open the file named config.xml in your text editor, change the value of adminEmail, and save the changes.