Validations
Validations on SDMXthon are applied to the data in a Dataset and the metadata (only on parsing).
Data validations
- sdmxthon.parsers.data_validations.validate_data()
Data validations stands for the next schema:
Code
Description
SS01
Check if all dimensions of the DSD exist in the dataframe
SS02
Check if the measure code exists in the dataframe
SS03
Check if all mandatory attributes exist in the dataframe
SS04
Check if an attribute/dimension value that is associated to a Codelist is valid
SS05
Check that all dimensions have values for every record of a dataframe
SS06
Check that all mandatory attributes have values for every record of a dataset
SS07
Check if two datapoints have the same values
SS08
Check that the value inputted is compliant with Facets for the referred Representation
SS09
Check if the value is compliant with the desired Time Format
SS10
Check if an attribute/dimension value associated to a Cube Region Constraint is valid
SS11
Check if each row is compliant with the Series Constraints
Metadata validations
- sdmxthon.parsers.metadata_read.create_metadata()
Metadata validations stands for the next schema:
Code
Description
MS01
Check that the metadata file contains at least one DSD
MS02
Check that the metadata file contains related codelists
MS03
Check if the DSD metadata file contains the concepts needed for each DSD
MS04
Check if the dimensions in Attribute Relationship are in DimensionList in DSD file
MS05
Check if the primary measure in Attribute Relationship is in MeasureList in DSD file
MS06
Check if all DSDs present in the metadata file are unique
MS07
Check if all Concept Scheme needed are present
MX01
Check if minimum structural requirements for DSD xml are satisfied
MX02
Check if every DSD has primary measure defined