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

DIF10: Platform Characteristic Name Uniqueness Check Not Working #100

Closed svbagwell closed 2 years ago

svbagwell commented 3 years ago

Describe the bug When multiple platform characteristics are provided, pyQuARC is not flagging identical names. Path: /DIF/Platform/Characteristics/Name

To Reproduce Steps to reproduce the behavior:

  1. In the fake DIF10 metadata file, create two identical /DIF/Platform/Characteristics/Name elements
  2. Run python main.py --fake FAKE --format dif10

Expected behavior The identical names should be flagged by the script, and the following message should be printed as an output: "One or more characteristic names provided are repeated in this record. Names should be unique to each characteristic. Recommend updating the names to be unique to each characteristic."

Outputs Current output: No validation errors

Additional context N/A