X hits on this document

387 views

0 shares

1 downloads

0 comments

126 / 142

Harvesting metadata with OAI-PMH

echo '<identifier>'

. $r["filename"]

.

'</identifier>';

}

  • #

    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.

A.

Transform CIMI data into files

1.

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.

2.

Create a directory on your computer's desktop.

3.

Copy all the *.dll files from the CD to your newly created directory.

4.

Copy all the *.exe files from the CD to your newly created directory.

5.

Copy cimi2oaidc.xsl and water.xml from the CD to your newly created directory.

6.

Open a new terminal window by running cmd.exe from the Start menu's Run command.

7.

Change directories to your newly created directory.

8.

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 .

9.

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

1.

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.

2.

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.

3.

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.

B.

118

Document info
Document views387
Page views393
Page last viewedSun Dec 04 10:56:40 UTC 2016
Pages142
Paragraphs3126
Words34660

Comments