Also from 2.2.2: "All metadata elements are optional and MAY be repeated."
Don't use
Source-Organization: nil
or
Source-Organization:
Simply omit any fields you don't wish to include in the bag. I believe the
python and ruby libraries both handle this correctly.
- Tom
On Wed, Aug 6, 2014 at 4:11 PM, Rosalyn Metz <[log in to unmask]> wrote:
> Hi all,
>
> Below is a question one of my colleagues posted to digital curation, but
> I'm also posting here (because the more info the merrier).
>
> Thanks!
> Rosy
>
> ------------------------
>
> Hi,
>
> I am working for the Digital Preservation Network and our current
> specification requires that we use baggit bags.
>
> Our current spec for bag-info.txt reads in part:
>
> "DPN requires the presence of the following fields, although they may be
> empty. Please note that the values of "null" and/or "nil" should not be
> used. The colon (:) should still be present."
>
>
> From my reading of the baggit spec, section 2.2.2:
>
> "A metadata element MUST consist of a label, a colon, and a value, each
> separated by optional whitespace. "
>
>
> 2.2.2 is for the bag-info.txt, but it seems that this is the general rule.
>
> Question: Are values required for all? Which below is correct or both? Ex:
>
> Source-Organization:
>
> or
>
>
> Source-Organization: nil
>
>
> I appreciate any clarification,
>
> Thanks
> James
> Stanford Digital Repository
>
|