<<

NAME

ProductOpener::DataQualityDimensions - compute score for each dimensions

DESCRIPTION

ProductOpener::DataQualityDimensions is a submodule of ProductOpener::DataQuality.

It compute score for each dimensions.

FUNCTIONS

compute_accuracy_score

This function computes the accuracy score of the product data. It checks if the product has a name, brand, quantity, packaging, and image. It calculates the accuracy score as a percentage of the total number of fields checked.

Arguments

$product_ref

A hash reference to the product data.

Return value

Returns nothing.

FUNCTIONS

compute_completeness_score

This function computes the completeness score of the product data. It checks if the product has a name, brand, quantity, packaging, and image. It calculates the completeness score as a percentage of the total number of fields checked.

Arguments

$product_ref

A hash reference to the product data.

Return value

Returns nothing.

FUNCTIONS

compute_dimensions_score

This function computes the score for each dimension of the product data quality. It calculates scores for accuracy, completeness, uniqueness, consistency, timeliness, and validity.

Arguments

$product_ref

A hash reference to the product data.

Return value

Returns nothing.

<<