Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

All data in the DPLA repository are available for download as gzipped JSON files. These include the standard DPLA fields, as well as the complete record received from the partner.

File format

Files are formatted as JSON, and have the following structure:

{
    "total_rows": <number>,
    "rows": [
                {
                    "doc": {
                               ... record ...
                    }
                },
                ... more rows ...
            ]
}

 

The "doc" property of each object in "rows" is the same JSON object that you would get back from our API for an individual record.

New file format

We will be changing the structure of our export files' JSON, at a date still to be determined.  The existing format is a legacy of the way we used to export the direct output of CouchDB views, where each element of "rows" had a "doc" property.  The new format will be more simple, and will result in lower file sizes, especially for the larger files.  The format that we are currently considering is as follows:

[
    {  ... record ... },
    ... more records ...
]

 

 

  • No labels