Filling Out the File Area Inventory Classes

From The SBN Wiki
Revision as of 01:12, 22 March 2013 by Raugh (talk | contribs) (: sorted field attributes to labels order)
Jump to navigation Jump to search

The <File_Area_Inventory> contains a reference to a single physical file, and an Inventory description detailing the structure in the file. An Inventory object is a specific form of delimited table, with predefined columns.

For additional explanation, see the PDS4 Standards Reference, or contact your PDS node consultant.

Following are the attributes and subclasses you'll find in the File_Area_Inventory, in label order.

Note that in the PDS4 master schema, all classes have capitalized names; attributes never do.



This class is handled identically in all File_Area_* classes. It is described in detail on the Filling_Out_the_File_Class page.



This is a special form of a Table_Delimited data structure. Start by creating a Table_Delimited data structure as described in Filling_Out_the_Table_Delimited_Data_Structure, but using these modifications and constraints:

  1. Use <Inventory> and </Inventory> in place of <Table_Delimiter> and <Table_Delimited>.
  2. There must be exactly two <Field_Delimiter> subclasses.
  3. The first Field_Delimited class must have:
    1. <name> of "Member_Status"
    2. <field_number> present and set to "1"
    3. <data_type> of "ASCII_String"
    4. <maximum_field_length> of 1 byte
  4. The second Field_Delimited class must have:
    1. <name> of "LIDVID_LID"
    2. <field_number> present and equal to "2"
    3. <data_type> of "ASCII_LIDVID_LID"

In the corresponding data file there must be two columns following the PDS/DSV table standard (still in development as of this writing). The first column must contain either 'P' or 'S', to indicate whether the product is a primary or secondary member, respectively, of the collection. The second column contains the LID or LIDVID of the product to be included in the collection (using only a LID means that all versions of that product are considered to be members of the given type).

A secondary member is any product that has (or will be) archived as the primary member of another collection. A product must be a primary member of exactly collection - the one that has the same LID as found in the product's LID. A product may be a secondary member of many collections. No product may be both a primary and a secondary member of the same collection.



This attribute must follow the <Record_Delimited> class, and must have the value inventory_has_member_product.