About Validate Tool

The Validate Tool project contains software for validating PDS4 product labels and product data. The associated specific schema for the product label specifies syntactic and semantic constraints. The product label itself specifies the constraints for the data.

The Validate Tool currently supports the following features:

  • Validation against a Schema and Schematron through the following means:
    -Ones supplied with the tool.
    -Ones specified by the user.
    -the label itself.
    -An XML Catalog.

  • Validation against file references in the product label:
    -Check that file references do exist.
    -Casing of file references match their physical files on the file system.
    -Checksum validation against the actual checksum and a Manifest file (if supplied).

  • Validation at the Bundle level, including, but not limited to:
    -Referential integrity.
    -Names of files and directories adhere to the PDS4 Standards.

Additionally, the tool performs data content validation of tables and arrays.

The features that the tool supports with regards to table content validation are:

  • For all tables, field values are checked for the following:
    -Values match their defined data type.
    -Values match their defined field format, if specified.
    -Values are within the defined min and max values of the field, if specified.

  • Specifically for binary tables, fields are checked for the following:
    -Fields that are packed match the defined number of bit-fields.
    -Bit-field values that match their defined data type.

  • Specifically for character and delimited tables, records are checked for the following:
    -Records in the data file end in CRLF.
    -The length of a record does not exceed the defined length (or defined maximum length in the case of delimited tables).
    -Number of records match the defined number in the label.

With respect to array content validation, the tool checks the following:

  • The size of the array object is equal to the element size times the product of the sizes of all axes.
  • Array elements have values which conform to their data type.
  • Verify that the elements match the object statistics defined within their associated label, if they exist

Please send comments, change requests and bug reports to the PDS Operator at pds_operator@jpl.nasa.gov.