[openbiblio-dev] Some updates
mark.macgillivray at okfn.org
Tue Oct 4 01:28:19 UTC 2011
Hi Jim, I have a fairly large response to the metadata point, so I
have added it as one section to the start of your google doc. I hope
that is OK.
Sorry I do not yet agree with the list representation, and apologies
that this discussion is taking so long. However I would ask you to
consider the points I have made once more.
On Mon, Oct 3, 2011 at 8:31 PM, Jim Pitman <pitman at stat.berkeley.edu> wrote:
> Mark MacGillivray <mark.macgillivray at okfn.org> wrote:
>> We made some biggish changes to the BibServer code last week, here is
>> an update:
> Two things caught my eye:
>>Collection records separated from actual records
>>Every collection has a metadata record which were previously all stored in the same index with the collection records. These have now been separated out, so that collection records do not appear in normal search results. Collection metadata is still shown on result pages, and is available in the JSON responses.
> This is good. It is important to stick to the notion that collection records are just biblio records, describing a collection, and not in any sense
> containers of biblio records.
>>Collection metadata in the JSON responses
>>A request for a JSON response will now include metadata, such as information about the collection the records belong to, where such metadata is available. This means the returned value will be a JSON object with various metadata keys, and the records will be available as objects in a list identified by the “records” key.
> This goes against what we decided before. We agreed before that a BibJSON dataset is *always* a JSON array, and not a JSON object, and that optionally a BibJSON dataset may contain a metadata record describing it as a first record.
> There are several reasons for doing it this way.
> 1) If the JSON dataset is a big one, you have to ingest the whole file to parse the metadata information, because it might come after the entire record set.
> JSON objects do not have any order associated with their keys, so there is no way (that I am aware of) to insist in JSON that the meta info about the size of the array comes before the arrary of records.
> 2) For simplicity, a BibJSON dataset should always be the same kind of JSON structure. Either always an array, or always a list. Else any consumer of bibjson datasets must start by deciding which.
> I have a Google Doc with further discussions of this issue. Anyone interested
> in contributing to this discussion please let me know and I can add you to
> the participant list there.
> many thanks
More information about the openbiblio-dev