X hits on this document

432 views

0 shares

1 downloads

0 comments

127 / 142

Harvesting metadata with OAI-PMH

    • 4.

      Run the Perl script named oai.pl and give the script input such as verb=Identify, verb=ListSets, verb=GetRecord&identifier=oai:water:brides-bay&metadataPrefix=oai_dc, or verb=ListRecords&metadataPrefix=oai_dc. The output should be standard OAI-PMH XML streams. You're more than half way there.

  • C.

    Make scripts available via the Web

1.

Assuming a Web server is installed on your computer, copy the oai directory to a place where its contents can be read by the server.

2.

Open your Web browser and try opening a connection to the oai.pl script. The URL will look something like this: http://www.example.edu/cgi-bin/oai/oai.pl.

3.

Try additional URLs but this time include the verbs from the second part of this exercise,

above. You should see good o' XML streams in the form of OAI-PMH responses.

4.

Use the Open Archives Initiative - Repository Explorer

at

ht-

tp://oai.dlib.vt.edu/cgi-bin/Explorer/oai2.0/testoai to test your newly created OAI repository, and congratulations, you have made a set of data available via OAI-PMH.

Exercise - Making MARCXML data available via OAI

As an extra exercise transform MARCXML data into simple OAI files and make them available via the OAI protocol. This exercise is based on the previous exercise.

  • 1.

    Use your text editor to open xslt/MARC21slim2OAIDC.xsl. This stylesheet was created by the good folks at the Library of Congress.

  • 2.

    Use xsltproc to use the stylesheet to transform a previously created MARCXML file: xsltproc xslt/ MARC21slim2OAIDC.xsl xml-data/marc/many/milne-when-1071456632.xml . The output will be a simple OAI stream in Dublin Core data.

3.

Use xsltproc to save a number of file transformations to the data directory of the oai directory of the previous exercise. For example:

xsltproc xslt/MARC21slim2OAIDC.xsl xml- data/marc/many/feiler-making-1074959890.xml > /oai/data/feiler-making-1074959890.xml

xsltproc xslt/MARC21slim2OAIDC.xsl xml- data/marc/many/willinger-red-1072543737.xml > /oai/data/willinger-red-1072543737.xml

  • xsltproc xslt/MARC21slim2OAIDC.xsl xml-data/marc/many/milne-when-1071456632.xml

    • >

      /oai/data/milne-when-1071456632.xml

xml- /

  • xsltproc xslt/MARC21slim2OAIDC.xsl data/marc/many/mumford-herman-1072061308.xml oai/data/mumford-herman-1072061308.xml

>

119

Document info
Document views432
Page views438
Page last viewedThu Dec 08 00:30:17 UTC 2016
Pages142
Paragraphs3126
Words34660

Comments