[Validation] Referential integrity between Datasets and WPC
Validation of referential integrity between Datasets and WPC.
Scope: Dataset, WPC
This step is needed to validate that we don’t ingest any WPCs with references to non-existing Datasets and we don’t ingest any orphan Datasets.
All Ids (surrogate or real ids) of the datasets specified in the WPC “Datasets” array should correspond to the ids (surrogate or real) of records in the Manifest “Datasets” array. WPC Resources that fail this validation should be rejected.
All Ids (surrogate or real ids) of the datasets specified in the Manifest “Datasets” array should be present in any WPC “Datasets” array of the WP. Dataset Resources that fail this validation should be rejected.