X hits on this document

411 views

0 shares

1 downloads

0 comments

124 / 142

Harvesting metadata with OAI-PMH

</metadataFormat> </ListMetadataFormats>

About the simplest example can be illustrated with the ListIdentifiers verb. A response to this command might look something like this where, besides the standard output, there is a single additional XML ele- ment, identifier:

<?xml version="1.0" encoding="UTF-8" ?> <ListIdentifiers xmlns="http://www.openarchives.org/OAI/1.0/OAI_ListIdentifiers" xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance" xsi:schemaLocation="http://www.openarchives.org/OAI/1.0/OAI_ListIdentifiers http://www.openarchives.org/OAI/1.0/OAI_ListIdentifiers.xsd">

<responseDate>2002-02-16T10:03:09-7:00</responseDate> <requestURL>http://www.infomotions.com/alex/oai/index.php?verb=ListIdentifiers</r

<!-- ListIdentifiers-specific content --> <identifier>twain-30-44</identifier> <identifier>twain-adventures-27</identifier> <identifier>twain-adventures-28</identifier> <identifier>twain-connecticut-31</identifier> <identifier>twain-extracts-32</identifier> </ListIdentifiers>

The last example shows a response to the GetRecord verb. It includes much more information than the previous examples, because it represents the real meat of the matter. XML elements include the record element and all the necessary children of a record as specified by the meta data format:

<?xml version="1.0" encoding="UTF-8" ?> <GetRecord xmlns="http://www.openarchives.org/OAI/1.0/OAI_GetRecord" xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance" xsi:schemaLocation="http://www.openarchives.org/OAI/1.0/OAI GetRecord http://www.openarchives.org/OAI/1.0/OAI_GetRecord.xsd"> _

<responseDate>2002-02-16T10:09:35-7:00</responseDate> <requestURL>http://www.infomotions.com/alex/oai/index.php?verb=GetRecord&metadata

<!-- GetRecord-specific content --> <record>

<header>

<identifier>twain-tom-40</identifier> <datestamp>1999</datestamp> </header>

<metadata>

<!-- Dublin Core metadata --> <dc xmlns="http://purl.org/dc/elements/1.1/" xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance"

116

Document info
Document views411
Page views417
Page last viewedTue Dec 06 08:24:19 UTC 2016
Pages142
Paragraphs3126
Words34660

Comments