1. Introduction
Data curation is the process of collecting, organizing, and preserving data for future use. It is essential for ensuring the quality and usability of data, and it is becoming increasingly important as the volume and complexity of data continues to grow.
In the context of a data ocean, data curation is even more critical. A data ocean is a vast repository of data that is collected from a variety of sources. This data can be structured, unstructured, or semi-structured, and it can be of varying quality.
The goal of data curation in a data ocean is to ensure that the data is:
- Accurate: The data must be free of errors and omissions.
- Complete: The data must be comprehensive and cover all aspects of the domain of interest.
- Consistent: The data must be formatted and organized in a consistent manner.
- Reliable: The data must be trustworthy and reliable.
- Usable: The data must be easy to find, access, and understand.
Data curation in a data ocean can be challenging, but it is essential for making the data valuable and accessible to users.
2. Data Normalization
2.1. Definition
Data Normalization involves transforming data into a common format to enable seamless integration and analysis.
Data normalization is the process of organizing data in a consistent manner. This involves standardizing the data format, removing duplicate data, and identifying and correcting errors.
2.2. Importance
When data from various sources is aggregated, there's often a mismatch in formats, units, or encoding. Normalization resolves these disparities, ensuring consistency and reducing redundancy, making data integration and analytics more efficient, ensuring a single version of truth exists within the Data Ocean.
Data normalization can improve the efficiency of data processing and analysis, and it can also help to improve the quality of data.
2.3. Typical Rules and Actions
Capitalization: Uniformly capitalize textual data.
Date Formatting: Standardize date formats to YYYY-MM-DD UDT.
Currency Conversion: Convert all currency to a standard unit.
Measurement Unit Standardization: Convert all measurements to a standard unit (e.g., kilometers, USD).
2.4. Metrics and KPIs
Some relevant metrics to implement in a monitoring Data Quality Dashboard:
Data Consistency Ratio: the level of uniformity in the dataset after normalization procedures have been applied
Efficiency Gained Post-Normalization: measures the improvement in data processing and management tasks after normalization has been implemented.
- Typically, it might involve measuring the time saved in data processing, the reduction in errors due to standardization, or the improvement in speed of data retrieval.
Data Redundancy Factor: Measure of duplicate data before and after normalization.
Normalization Time: Time required to normalize a dataset.
Normality Score: A composite score representing how well the data conforms to normalization rules.
2.5. Data Ocean Enforced Rules
Data normalization is currently carried out via the ETL (Extract, Transform, Load) tool, tailored individually to the requirements of each case.
The specific normalization procedures are outlined within the mapping rules established for every Business Entity pertinent to a particular Domain (see Data Mapping Rules in each Domain).
Standard data normalization practices currently in operation include:
- Cast or Data Type Conversion: Essential for normalizing Codes and IDs across varying source systems to ensure uniformity.
- Date Format Normalization:
- Dates should be consistently formatted to UTC, adhering to the international standard of YYYY-MM-DD UDT.
- If necessary, maintain an additional column for the date in the original source system format.
- Text Case Standardization: By default, convert text to lowercase with the initial letter capitalized, unless specific business requirements dictate otherwise.
- Whitespace Trimming: Remove leading and trailing spaces from all string data not utilized as Primary or Foreign Keys (PK/FK).
- Surrogate Key (SGK) Generation: Each table will be equipped with a nonsensical, unique technical key to ensure a consistent method of record identification (see Table creation and definition).
- "Ghost" Record Insertion: All tables serving as Dimensions will include "Ghost" records to accommodate exceptions and guarantee Referential Integrity (as detailed in the Dimension and SCD definitions).
- Derived Column Creation: Implement derived columns as necessary for enhanced data analysis and reporting.
- Handling NULL Values: Substitute NULLs with a default value for all columns acting as Primary or Foreign Keys (PK/FK) (as outlined in the Table definition and Default Value documentation).
A comprehensive list of over 20 potential rules is identified, with their implementation definitions outlined; ready to be used.
3. Data Validation
3.1. Definition
Data Validation (DV) is the process that ensures the data complies with the defined formats, rules, standards and business-specific constraints. It is the process of checking data for errors and omissions, of ensuring that the data is accurate, complete, and consistent.
This process is more concerned with validating data against specific criteria, such as format checks, value constraints, and relationships.
Data Validation can be achieved following several approaches:
Data Profiling: by profiling the incoming data to understand its structure, patterns, and anomalies. This includes examining data types, values, and ranges.
- Analyzing incoming customer data to understand its structure. For instance, identifying find fields like 'Name,' 'Email,' 'Address,' and 'Phone.'
- Identifying patterns, such as email addresses should contain "@" and have a valid domain.
Rule-Based Validation: Defining and implement validation rules that data should adhere to. These rules can include format checks, value constraints, and referential integrity.
- Defining validation rules, e.g., 'Email' must follow a valid email format, 'Phone' should consist of only numbers, and 'Customer ID' must be unique.
For example, ensuring that dates are in the correct format or that numeric values fall within specific ranges.
Statistical Analysis: Utilizing statistical methods to identify outliers and unusual data patterns. This can help in detecting potential issues.
- Using statistical methods to detect anomalies. For example, you detecting an unusually high number of customers with the same 'Phone' number.
Data Schema Validation: Ensuring that the incoming data aligns with the predefined schema and metadata. Any variances should be flagged.
- Ensuring that the incoming data aligns with the predefined schema. If a new field, like 'Birthday,' is introduced, ensuring that the schema is updated.
Automated Testing: Implementing automated testing processes to continuously validate data as it enters the DW. Automated tests can run regularly to detect issues promptly.
- Implementing automated tests that run upon data arrival. If any data violates the predefined rules, generate alerts or logs for further investigation.
3.2. Importance
It's crucial for building trust and reliability in data.
Unverified or incorrect data can lead to erroneous conclusions, and misleading insights, which in turn can have a significant adverse impact on business decisions.
It involves validating the data against quality standards and identifying any errors or inconsistencies.
This can be done manually or automatically using a variety of tools and techniques.
3.3. Typical Rules and Actions
Type Checks: Validate the data type (text, integer, float, etc.).
Format Checks and Validation:
- The data must match a specific format.
Validate text patterns like email, phone numbers, and dates.
Range Checks: Verify that numerical data lies within defined ranges.
- The data must be within a specified range.
- Boundary Values Validation
Completeness Checks: Ensure all mandatory fields are filled.
- Uniqueness Check: Verify that primary keys or unique identifiers do not have duplicates.
- Consistency Check
- The data must be consistent with other data.
- Cross-Field Checks: It verifies the relationships between different data fields. For example, ensuring that an order's shipping date is not earlier than the order date.
- Data Integrity: Validating that data relationships and constraints are maintained. This includes checking that primary keys and foreign keys in a database are correctly linked.
Domain Checks: Ensure data belongs to a defined set of permissible values.
Rules and metrics that can be used for data validation include:
- Completeness: Ensure that all required data fields are present and contain valid values.
- Consistency: Ensure that the data is consistent across all sources and that there are no conflicting values.
- Accuracy: Ensure that the data is accurate and reflects the real-world values it represents.
- Timeliness: Ensure that the data is up-to-date and reflects the latest information.
Data Validation practices in terms of Data Management:
Detection: DV focuses on detecting data anomalies, errors, and issues.
The goal of DV rules is to detect errors, anomalies, and inconsistencies in the data.
Detected issues are typically related to non-compliance with specific data standards and rules.
Compliance: It ensures that data adheres to defined rules and constraints, such as referential integrity checks.
- DV rules are primarily concerned with ensuring the correctness and integrity of the data.
- DV focus on validating data against predefined criteria and constraints, often related to data structure and integrity.
DV rules include checks like format validation (e.g., email format), uniqueness validation (e.g., unique IDs), and structure validation (e.g., address format).
Immediate Feedback: When issues are detected, the primary action is to raise alerts or notifications and possibly reject or flag the non-compliant data.
When DV rules detect violations, the primary action is to provide immediate feedback, such as alerts or data rejection.
- The validation results should also be recorded in some table for later analysis. This table can have columns to capture information such as the rule name, record details, and the date and time of the validation.
- Alternatively, the ETL tool log can be used to log validation rules messages
Data Cleansing: DV may involve basic data cleansing steps to make the data conform to standards.
DV rules are often applied during data ingestion and initial processing phases to prevent incorrect data from entering the system.
3.4. Metrics and KPIs
Some relevant metrics to implement in a monitoring Data Quality Dashboard:
Data Validation Success Rate or Validation Accuracy: The percentage of records that have been validated correctly (that meet all validation rules) out of the total records processed.
Data Rejection Rate: The percentage of records that were rejected during validation due to errors or not meeting predefined criteria.
Time Taken for Validation: The total duration required to complete the validation process for a batch of data or a single record.
Number of Manual Interventions Required: The count of instances where human input or correction was necessary during the data validation process.
Field-Level Compliance Rate: The proportion of individual data fields across all records that pass validation checks.
Failed Validation Alerts: The total number of automated notifications generated when data does not pass the validation process.
2.5. Data Ocean Enforced Rules
Data validation is an important part of data curation, as it helps to ensure that the data is accurate and complete.
Presently, it primarily relies on the ETL (Extract, Transform, Load) tool for real-time execution. In this approach, data validation checks are seamlessly integrated into the ETL pipeline. This ensures that data quality issues are promptly detected and addressed during data ingestion and transformation. Real-time data validation enables immediate feedback and corrective actions, mitigating the impact of poor-quality data on downstream processes.
Furthermore, the approach is tailored to the specific needs of each case. Detailed validation procedures are delineated within the mapping rules established for each Business Entity associated with a specific Domain. For more information on validation within a particular Domain (refer to the corresponding Data Mapping Rules Document).
Standard data validation practices currently in operation include:
- Data Profiling
- To understand data structure, patterns, and anomalies.
- This procedure is also being used to drive the Data Model implementation
- Two methods are available: ETL feature and Python script
- Schema validation for files with a control and logging mechanism is in place
- Needs to be enhanced with the implementation of an automatic alert mechanism to notify senders.
- Schema validation and error prevention for tables are directly facilitated by followed approach, which mandates the explicit identification of source columns.
- This approach ensures that the process will not be halted unless an existing column is intentionally removed
- Completeness Checks for mandatory fields and default values generation.
- Uniqueness Check with primary keys verification.
- Data Integrity and Referential Integrity checks
- Performing direct ETL lookups with the identification of exceptions.
- Needs to be enhanced with the implementation of an automatic "ghost" record insertion
This process must be optimized, promoted and shared among peers. An extensive list of more than 20 potential rules is available, along with clear implementation definitions, that are ready to be applied to various data patterns, including emails, phone numbers, dates, and more.
2.5.1. New Developments
Data validation within the Data Ocean framework is still an ongoing area of research.
An extra approach under consideration involves the use of a Batch Data Validation (Scheduled Moment in Time), where data undergoes scheduled checks outside the ETL process, typically on a weekly, or monthly basis, depending on the organization's needs. Rather than presenting an alternative, this approach is viewed as an additional layer of validation, providing a double-check to ensure thorough data validation. This process is likely to be integrated into the Data Quality process.
It's worth noting that a comprehensive implementation proposal has already been developed, which includes design and architectural considerations.
In addition to this implementation proposal, another avenue being explored is the utilization of Open-Source tools like "Great Expectations" and "Google Data Validation Tool (DVT)". While these tools offer robust capabilities, they do require a certain level of effort for learning and implementation. Nevertheless, their potential to significantly enhance data validation processes is acknowledged
A comprehensive list of over 20 potential rules is identified, with their implementation definitions outlined; ready to be used.
4. Data Quality
4.1. Definition
Data Quality is a broader evaluation of the overall health and fitness of the data, measuring the fitness of data for its intended uses in operations, decision-making, and analytics.
4.2. Existing Initiatives
A current production-level product already covers Data Quality in some of the company’s operational domains. This product includes KPIs, visualized through a dashboard, and triggers corrective actions.
4.3. Importance
Data quality is a measure of the accuracy, completeness, and consistency of data.
High-quality data is essential for making informed decisions, and it is also important for ensuring the reliability of data-driven systems.
There are a number of factors that can affect data quality, including:
- The quality of the data collection process
- The quality of the data storage and processing systems
- The quality of the data governance processes
Data quality can be improved through a variety of measures, including:
- Implementing data validation and normalization procedures
- Enforcing data quality policies and standards
- Educating users about data quality
- Using data quality tools and techniques
4.3.1. Importance of Integration with Data Ocean
At this point, Data Quality validation is not an immediate focus. It's important to highlight that a dedicated project is already in production, addressing this specific aspect. However, the plan is to eventually incorporate these improvements into the Data Curation layer in upcoming phases.
While the current initiatives are beneficial, their integration into the Data Ocean will establish a centralized control system for data quality, offering significant value for overall data governance and analytics.
Data Quality is a broader evaluation of the overall health and fitness of the data.
Referential integrity checks in the Data Quality phase are part of a holistic assessment that examines data for issues like completeness, accuracy, consistency, and relationships.
This phase considers the quality of data in a more comprehensive manner, looking at not just specific rules but the impact of relationships on the data's usefulness and reliability.
In essence, while Data Validation checks specifically ensure that relationships between data elements are maintained according to predefined constraints, Data Quality assessments examine these relationships as one aspect of a more comprehensive evaluation of data's overall quality.
Absolutely, you can think of it in those terms. Data Validation (DV) is primarily about the detection of issues, ensuring that data meets predefined criteria and standards, while Data Quality (DQ) extends beyond detection to taking actions to maintain and improve the overall quality of the data. Your interpretation aligns with the common practices in data management:
- Data quality is a measure of the accuracy, completeness, and consistency of data.
- High-quality data is essential for making informed decisions, and it is also important for ensuring the reliability of data-driven systems.
- There are a number of factors that can affect data quality, including:
- The quality of the data collection process
- The quality of the data storage and processing systems
- The quality of the data governance processes
- Data quality can be improved through a variety of measures, including:
- Implementing data validation and normalization procedures
- Enforcing data quality policies and standards
- Educating users about data quality
- Using data quality tools and techniques
- At this stage, the validation of Data Quality is not currently within the immediate scope. Nonetheless, the intent remains to integrate these enhancements into the Data Curation layer in the forthcoming phases. It is noteworthy to emphasize that a separate project is already underway, actively tackling this particular aspect.
- A comprehensive list of over 20 potential rules is identified, with their implementation definitions outlined; however, they have not been put into practice yet.
- For more in-depth information on existing solution, please refer to the link Data Quality dashboard.
- For more information on subject, please refer to the link Data Quality.
Data Quality Assessment:
Make referential integrity checks a key component of your overall data quality assessment within the Data Curation Engine.
Evaluate the correctness of relationships as one aspect of data quality.
Pre-Ingestion Checks:
- Consider implementing pre-ingestion checks that examine data for referential integrity before it enters the Data Warehouse. This can help prevent violations from entering the system.
Alerts and Notifications:
Set up alerts and notifications within the Data Curation Engine to trigger when referential integrity violations are detected.
Notify relevant stakeholders, including data stewards and source system owners, about issues in real-time.
Scheduled Integrity Scans:
- Plan for regular batch jobs or scheduled processes that specifically focus on referential integrity checks within the Data Curation Engine.
Logging and Reporting:
- Maintain logs and reports that provide insights into the results of referential integrity checks. This information can be valuable for auditing and tracking the health of your data relationships.
Error Handling and Recovery:
- Develop error-handling mechanisms that can automatically or semi-automatically correct certain types of referential integrity issues or provide guidance on resolution.
- 5. Future Actions
- Some proposed actions.
- Implement Data Quality within the Data Ocean ecosystem
- Taking a cue from the Data Quality KPI Dashboard, a potential step forward to enhance data curation within the Data Ocean context is the introduction of a centralized data quality initiative. This initiative would have the responsibility of overseeing data quality throughout the entire Data Ocean ecosystem. Its primary role would involve identifying and promptly alerting stakeholders about any data quality concerns.
A comprehensive list of over 20 potential rules is identified, with their implementation definitions outlined; however, they have not been put into practice yet.
For more in-depth information on existing solution, please refer to the link Data Quality dashboard.
For more information on subject, please refer to the link Data Quality.
5. Future Actions
Some proposed actions.
5.1. Implement Data Quality within the Data Ocean ecosystem
Taking a cue from the Data Quality KPI Dashboard, a potential step forward to enhance data curation within the Data Ocean context is the introduction of a centralized data quality initiative. This initiative would have the responsibility of overseeing data quality throughout the entire Data Ocean ecosystem. Its primary role would involve identifying and promptly alerting stakeholders about any data quality concerns.
5.2. Establishment of a data quality initiative at the operational level
Another prospective strategy to consider is the establishment of a data quality initiative at the operational level, geared towards real-time data analysis and rectification. This approach reveals its significance in addressing data anomalies and discrepancies promptly, thereby maintaining the integrity of the information ecosystem.
This operational-level data quality initiative would involve deploying advanced algorithms and automated processes that continuously monitor incoming data streams. By leveraging real-time analytics, this system can instantaneously identify deviations from predefined data quality benchmarks. In the event of discrepancies, automated corrective measures can be applied, ranging from data enrichment through external sources to flagging erroneous entries for manual review.
A critical aspect of this initiative would be its proactive nature. Instead of relying solely on retrospective audits, it would function in an anticipatory mode, precluding the propagation of erroneous data into downstream processes. Timely alerts would be generated for immediate corrective actions, minimizing the risk of inaccurate insights, faulty decision-making, or downstream process disruptions.
Furthermore, such an operational-level data quality initiative would synergize with the existing data curation practices, forming a robust defense against data inconsistencies. This approach not only aligns with best practices in data governance but also positions the Data Ocean architecture for greater reliability and value generation.
To execute this initiative effectively, collaboration across cross-functional teams, including data engineers, analysts, and domain experts, is crucial. Additionally, the establishment of clear workflows, data quality metrics, and continuous performance monitoring mechanisms will be pivotal to ensure its success. By integrating real-time data quality assurance into the Data Ocean, this initiative can significantly elevate the overall data ecosystem's reliability and usability.
Existing SAP Info Steward could be used.
5.3. Select and implement a Data Validation Tool
Conclude the thorough analysis of the identified tools and choose one for conducting a Proof of Concept (POC).
6. References
- Data Curation: https://en.wikipedia.org/wiki/Data_curation
- Data Validation: https://en.wikipedia.org/wiki/Data_validation
- Data Normalization: https://en.wikipedia.org/wiki/Data_normalization
- Data Quality: https://en.wikipedia.org/wiki/Data_quality
- "Great Expectations": https://greatexpectations.io/
- "Google Data Validation Tool (DVT)": https://cloud.google.com/blog/products/databases/automate-data-validation-with-dvt