[OAI-implementers] Is this a valid OAI-PMH response?

Michael Nelson mln at cs.odu.edu
Mon Jul 20 19:04:39 EDT 2009


Stuart,

Here's the short version: you're correct and your vendor is wrong.  The 
inner <record> in the example below should be <oai_dc:dc> as you correctly 
surmised in your email.

Regardless of what the validators say, tell them a quick inspection of:

http://www.openarchives.org/OAI/openarchivesprotocol.html#Record
http://www.openarchives.org/OAI/openarchivesprotocol.html#ListRecords

should make the intent clear.

regards,

Michael

On Tue, 21 Jul 2009, Stuart Lewis wrote:

> Hi,
>
> We have a vendor provided system with an OAI-PMH interface. When issuing
> a ListRecords command, it returns (edited for brevity):
>
> <?xml version="1.0" encoding="UTF-8" ?>
>
> <OAI-PMH xmlns="http://www.openarchives.org/OAI/2.0/"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/
> http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd">
>
>   <responseDate>2009-07-20T21:05:43Z</responseDate>
>
>   <request verb="ListRecords" metadataPrefix="oai_dc" set="SET1">
>       http://www.example.com/oai
>   </request>
>
>   <ListRecords>
>
>      <record>
>         <header>
>            <identifier>oai:record:1</identifier>
>            <datestamp>2009-06-30T11:29:18Z</datestamp>
>            <setSpec>SET1</setSpec>
>         </header>
>
>         <metadata>
>            <record
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:dcterms="http://purl.org/dc/terms/"
> xmlns:dc="http://purl.org/dc/elements/1.1/">
>               <dc:title>Title</dc:title>
>               <dc:creator>Creator</dc:creator>
>               <dc:description>Description </dc:description>
>               ...
>            </record>
>         </metadata>
>
>      </ListRecords>
>
>   </record>
>
> </OAI-PMH>
>
> To me this looks invalid - the <record> element within the metadata is
> not expected to be there (a <record> is defined as being the top level
> of a record, and thus contains a header and metadata). Most OAI-PMH
> interfaces I have seen put an <oai_dc:dc> wrapper around the metadata.
>
> The http://www.validome.org/ validator backs this up, and reports that:
>
> Invalid content found starting with element 'record'. One of
> '{WC[##other:"http://www.openarchives.org/OAI/2.0/"]}' is expected
>
> However our vendor is sure that this valid output, and when we checked
> it, the site passed the OAI-PMH registration validation system OK.
>
> Any advice appreciated! :)
>
> Thanks,
>
>
> Stuart Lewis
> IT Innovations Analyst and Developer
> Te Tumu Herenga The University of Auckland Library
> Auckland Mail Centre, Private Bag 92019, Auckland 1142, New Zealand
> Ph: 64 9 373-7599 x81928
> http://www.library.auckland.ac.nz/
>
>
>
> _______________________________________________
> OAI-implementers mailing list
> List information, archives, preferences and to unsubscribe:
> http://www.openarchives.org/mailman/listinfo/oai-implementers
>

----
Michael L. Nelson mln at cs.odu.edu http://www.cs.odu.edu/~mln/
Dept of Computer Science, Old Dominion University, Norfolk VA 23529
+1 757 683 6393 +1 757 683 4900 (f)



More information about the OAI-implementers mailing list