NASA-IMPACT / pyQuARC

The pyQuARC tool reads and evaluates metadata records with a focus on the consistency and robustness of the metadata. pyQuARC flags opportunities to improve or add to contextual metadata information in order to help the user connect to relevant data products. pyQuARC also ensures that information common to both the data product and the file-level metadata are consistent and compatible. pyQuARC frees up human evaluators to make more sophisticated assessments such as whether an abstract accurately describes the data and provides the correct contextual information. The base pyQuARC package assesses descriptive metadata used to catalog Earth observation data products and files. As open source software, pyQuARC can be adapted and customized by data providers to allow for quality checks that evolve with their needs, including checking metadata not covered in base package.
Apache License 2.0
19 stars 0 forks source link

BUG: Whitespace error for 'Access_Constraints' in DIF records #234

Closed svbagwell closed 1 year ago

svbagwell commented 1 year ago

Describe the bug Sometimes pyQuARC provides an error message regarding how the "Access_Constraints" field should be only whitespace as it is "element-only".

To Reproduce Steps to reproduce the behavior:

  1. Run pyQuARC against this CMR record: C1236350906-GES_DISC
  2. See error

Expected behavior Theoretically there should be no error?

Outputs image

Additional context This particular file is a DIF 10.2 record, and access constraints was a text field in 10.2. It did not become a hierarchy until DIF 10.3 Wiki page for access constraints

svbagwell commented 1 year ago

the updated 10.2 schema also has this field as a hierarchy. Because of this, any old DIF 10.2 metadata will need to comply, and cannot use this field as a free text field