Generating rules for data processing values of data fields from semantic labels of data fields
A data processing system analyzes data profiles and metadata to classify fields and generate rules based on semantic labels, addressing the challenge of applying rules to large datasets without manual labeling, enhancing efficiency and accuracy in data handling.
Patent Information
- Application Number
- JP2024102886
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2020-08-28
- Filing Date
- 2024-06-26
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2041-02-25
AI Technical Summary
Existing data processing systems struggle to automatically apply rules to data fields without manual labeling, particularly for large datasets, as field names do not reliably indicate content, and processing requirements depend on the semantic meaning of data values.
A data processing system that analyzes data profiles and metadata to classify data fields, generating rules based on semantic labels for data masking, data quality enforcement, schema determination, and test data selection, using classifiers and machine learning to determine relationships and dependencies between fields.
Enables automatic generation of rules for processing data fields, improving efficiency and accuracy in handling large datasets by understanding the semantic meaning of data, reducing manual effort, and ensuring compliance with security and quality standards.
Smart Images

Figure 2024144425000001_ABST
Abstract
Description
[Technical field]
[0001] (Priority Claim) This application claims priority to U.S. Patent Application No. 17 / 006,504, filed August 28, 2020, and U.S. Patent Application No. 62 / 981,646, filed February 26, 2020, the contents of both of which are incorporated herein in their entireties.
[0002] FIELD OF THEINVENTION The present disclosure relates to generating rules for processing data in a data field based on the results of a classification of values of the data field. More specifically, the present disclosure relates to classifying a data field by analyzing a data profile of the data and metadata of the data field, and generating one or more rules for processing the data in the data field. [Background technology]
[0003] A computer system may be used to transmit, receive, and / or process data. For example, a server computer system may be used to receive and store resources (e.g., web content such as web pages) and make the content available to one or more client computer systems. Upon receiving a request for content from a client computer system, the server computer system may retrieve the requested content and send the content to the client computer system to fulfill the request.
[0004] A set of data may include data values stored in a data field. A data field may include one or more of the data values. Many instances of a data field may exist in a data set (e.g., in different fields). Summary of the Invention
[0005] The system described herein is configured to generate one or more rules for processing the data from the semantic labels of the data being processed. The labels indicate the semantic meaning of the data being labeled. The semantic meaning of the data is what the data represents in actual terms. For example, the semantic meaning may indicate that a particular field represents a date, and that the data represented is the birth date of a user profile. The semantic meaning of the data may indicate how the data is to be processed by the data processing system. More specifically, the data processing system is configured to receive data values of a data field labeled with a semantic label. The data processing system is configured to generate one or more rules for processing the data values of the data field depending on what the label of the data field is. The rules may include data masking rules, data quality rules, rules for generating test data, rules for determining a schema, or other such rules. In general, the rules applied to the labeled data depend on the semantic meaning of the data, even if a global class of rules (e.g., data quality rules) is applied to all data. For example, a data quality rule for a birth date may differ from a data quality rule for an expiration date, even though both are dates and have a similar format. The data processing system determines the semantic meaning of the data, labels the data with a label indicative of the semantic meaning, and generates one or more rules for processing the data based on the label.
[0006] Implementations may include one or more of the following features.
[0007] In one aspect, a process is for determining data quality rules for values in fields of data records in a set of data records based on labels associated with the fields, the labels indicating characteristics of the values of the fields. The process is performed by a data processing system. The process includes retrieving a label index that associates labels with a set of one or more fields in the data records, the labels identifying a type of information expected in each field of the set of one or more fields. The process includes accessing a data dictionary that associates the type of information indicated by the label with a set of attribute values that represent requirements for values of the one or more fields associated with the label, the requirements including logical or syntactic characteristics of the values of the one or more fields. The process includes identifying, for a field of a particular data record, a particular label associated with the field of a particular data record by accessing a label index, and retrieving an attribute value for the particular label from the data dictionary, the attribute value specifying a particular requirement for the field. The process includes generating data quality rules, the data quality rules configured, when executed, to verify whether a value of the field meets a particular requirement represented by the attribute value and to generate output data indicating whether the particular requirement is met.
[0008] In some implementations, the data quality rules indicate one or more of an allowable deviation of a value in the field from a requirement, one or more allowable values in the field, and one or more prohibited values in the field. In some implementations, the one or more allowable or prohibited values in the field are associated with a field name of the field. In some implementations, the field is a first field, and the one or more allowable or prohibited values in the field are determined based on a value in a second field in a particular data record, the second field being tied to the first field of the particular data record. In some implementations, the one or more allowable or prohibited values are based on a combination of a value in the second field and a value in the first field. In some implementations, the one or more allowable values correspond to values that satisfy a numerical function, and the one or more prohibited values correspond to values that do not satisfy the numerical function.
[0009] In some implementations, the field is a first field, the data record includes a second field, and the data quality rule is a first data quality rule, and the method includes determining, based on an attribute value of a particular label, that a relationship exists between the first field and the second field, and generating a second data quality rule for the second field based on the relationship between the second field and the first field. In some implementations, the relationship indicates a dependency of a value of the second field on a value of the first field or a dependency of a value of the first field on a value of the second field. In some implementations, the relationship indicates a correlation between a value of the first field and a value of the second field. In some implementations, the process includes obtaining validation data that validates a relationship between respective values of the first field and the second field. In some implementations, the relationship is validated for a threshold number of values of the first field and the second field. In some implementations, the second data quality rule is configured to enforce a constraint on a value of the second field based on a value of the first field. In some implementations, determining that a relationship exists between the first field and the second field includes determining that a value of the second field includes a key value referenced by a value of the first field, and the data quality rule is configured to require that each value of the second field is a valid key value. In some implementations, the first field and the second field each include a numeric value, and determining that a relationship exists between the first field and the second field includes determining a numeric function that links values of the first field to values of the second field. In some implementations, determining that a relationship exists between the first field and the second field includes using at least one classifier configured by a machine learning process.
[0010] In some implementations, the process includes determining that an attribute value associated with a particular label indicates that the field contains a primary key value for a particular data record, hi some implementations, the process includes configuring a data quality rule to require that the primary key values be each unique within the field.
[0011] In some implementations, the attribute value of the particular label represents at least one of an average of values in the field, a maximum length of the values, a minimum length of the values, a data type of the values, and a format of the values. In some implementations, the particular data record is a first data record, and the method includes applying the data quality rule to another field associated with the particular label in a second data record different from the first data record. In some implementations, the method includes storing data associating the data quality rule and the particular label.
[0012] In some implementations, the process includes generating data for requesting approval of the data quality rule and approving the data quality rule in response to obtaining approval data indicating approval of the data quality rule.
[0013] In some implementations, generating the data quality rules includes determining a historical trend of values in the field and generating requirements based on the historical trend of values in the field.
[0014] In some implementations, generating a data quality rule for a field includes identifying a historical average of values in the field and generating requirements based on the historical average of values in the field.
[0015] Implementations may include one or more of the following features.
[0016] A process is executed by a data processing system for selecting test data for triggering execution of processing rules during testing of a data processing application. The process includes retrieving a label index that associates labels with a set of one or more fields in a data record, the labels identifying a type of information expected in each field of the set of one or more fields. The process includes accessing a data dictionary that associates the type of information indicated by the label with a set of attribute values that represent requirements for values of the one or more fields associated with the label, the requirements including logical or syntactic characteristics of the values of the one or more fields. The process includes identifying a specific label associated with a field of a specific data record by accessing the label index for the field of the specific data record, retrieving an attribute value for the specific label from the data dictionary, the attribute value specifying a specific requirement for the field, generating subsetting rules that, when executed, specify whether a value of the field includes the attribute value, selecting a subset of fields from the specific data record according to the subsetting rules, each selected field including a value having the attribute value, and providing the selected subset to the data processing application for testing the data processing application.
[0017] In some implementations, the process includes processing the first data record using a data processing application including a processing rule configured to operate on a value of a field of the first data record and generate at least one output value, the field being associated with a label. The process includes obtaining execution information indicative of a number of times the processing rule has been executed in association with the processing of the first data record, where whether the processing rule is executed by the data processing application during the processing of the first data record depends directly or indirectly on the value of the field associated with the label. In some implementations, the subsetting rule is determined based on the execution information indicative of a number of times the processing rule has been executed in association with the processing of the first data record, where the subsetting rule includes an identification of a field of the first data record.
[0018] In some implementations, the subsetting rules identify a field as a key field of the particular data record that includes at least one key value of a data element of the particular data record. In some implementations, the subset of the fields of the particular data record includes a field having a key value with a predetermined value. In some implementations, the subsetting rules identify a list of key field names that correspond to a label, and the subsetting rules identify a field as a key field by comparing an attribute value of the label to the list of key fields. In some implementations, the field of the particular data record includes personally identifying information (PII), and the method further includes selecting a subset of the fields of the particular data record that are free of fields that include PII information. In some implementations, the field of the particular data record includes personally identifying information (PII), and the method further includes applying a masking function to the PII to generate masked data and selecting a subset of the fields of the particular data record that include the masked data.
[0019] Implementations may include one or more of the following features.
[0020] In a general aspect, a process is performed by a data processing system configured to mask data of a data processing application. The process includes retrieving a label index that associates a label with a set of one or more fields in a data record, the label identifying a type of information expected in each field of the set of one or more fields. The process includes accessing a data dictionary that associates the type of information indicated by the label with a set of attribute values that represent requirements for values of the one or more fields associated with the label, the requirements including logical or syntactic characteristics of the values of the one or more fields. The process includes identifying a particular label associated with the particular data record field by accessing a label index for the particular data record field, retrieving an attribute value for the particular label from the data dictionary, the attribute value specifying a particular requirement for the field, and determining that the particular data record field represents sensitive data based on the attribute value. In response to the determination, the process includes performing a data masking function to convert a value of the field that includes sensitive data to a masked value.
[0021] In some implementations, the field is a first field and the label is a first label. The process includes determining that a relationship exists between a first field having a first label and a second field having a second label. In response to determining that the relationship exists, the process includes performing a data masking function to convert a value in the second field to a masked value. In some implementations, determining that the relationship exists includes determining that the first label and the second label are associated with a common data source. In some implementations, the common data source includes a user profile. In some implementations, the relationship indicates a dependency of a value of the second field on a value of the first field or a dependency of a value of the first field on a value of the second field. In some implementations, the relationship indicates a correlation between a first value of the first field and a second value of the second field. In some implementations, the relationship includes an arithmetic function. In some implementations, the process includes selecting a type of data masking function based on a type of the relationship.
[0022] In some implementations, the type of data masking function includes at least one of a shuffle function, data encryption, character scrambling, and data substitution. In some implementations, the process includes scanning the particular data record to determine whether one or more particular values of at least one other field are converted to a masked value. In some implementations, the process includes selecting a type of data masking function based on an attribute value of the label. In some implementations, a first data masking function is selected for a first field of the particular data record that includes a numeric value, and a second, different masking function is selected for a second field of the particular data record that includes a non-numeric value.
[0023] In some implementations, the process includes selecting a type of data masking function based on a label of another field bound to the field. In some implementations, the sensitive data includes personally identifiable information (PII).
[0024] Implementations may include one or more of the following features.
[0025] In a general aspect, a process is performed by a data processing system configured to determine a schema for a data record. The process includes retrieving a label index that associates labels with a set of one or more fields in the data record, the labels identifying a type of information expected in each field of the set of one or more fields. The process includes accessing a data dictionary that associates the type of information indicated by the label with a set of attribute values that represent requirements for values of the one or more fields associated with the label, the requirements including logical or syntactic characteristics of values of the one or more fields. The process includes identifying a particular label associated with a first field of a particular data record by accessing a label index for the first field of the particular data record; retrieving an attribute value for the particular label from a data dictionary, the attribute value specifying a particular requirement for the first field; determining that the attribute value represents a schema characteristic of values contained in the first field; determining based on the schema characteristic that the first field having the label includes a key value referenced by a value of a second field; and in response to this determination, updating schema data describing the particular data record to reference that the first field includes a key value referenced by the value of the second field.
[0026] In some implementations, the process includes generating a dataflow graph based on the schema data. In some implementations, the second field is in a second data record that is different from the particular data record.
[0027] In some implementations, the process includes generating a binding function configured to bind the particular data record to a second data record based on the key value. In some implementations, the second field is associated with a second label that is different from the label.
[0028] Implementations may include one or more of the following features.
[0029] In a general aspect, a process for determining data quality rules for values in one or more datasets is implemented by a data processing system and includes profiling, by the data processing system, values stored in a field included in data records of the one or more datasets. The process includes applying, by the data processing system, one or more classifiers to the profiled values. The process includes identifying one or more attributes indicative of logical or syntactic characteristics of the value of the field based on applying the one or more classifiers, each of the one or more attributes having a corresponding confidence level based on a respective output of the one or more classifiers. The process includes associating, with the field, one or more of the identified attributes whose confidence level meets a threshold level. The process includes determining, based on the one or more attributes associated with the field, one or more constraints on the value included in the field. The process includes determining a data quality rule for the field of the dataset based on the determined one or more constraints, the data quality rule indicating a relationship between the value of the field and the one or more constraints.
[0030] Any of these processes may be implemented as a system including one or more processing devices and a memory storing instructions that, when executed by the one or more processing devices, are configured to cause the one or more processing devices to perform operations of the process. In some implementations, one or more non-transitory computer-readable media may be configured to store instructions that, when executed by the one or more processing devices, cause the one or more processing devices to perform operations of the process.
[0031] Aspects may include one or more advantages. For example, the techniques described herein enable a data processing system to automatically generate one or more rules for processing data in a data field of a dataset. Once the semantic meaning of the data is recognized, the data processing system determines which data processing operations to apply to the data values to achieve a specified goal of the application. In this manner, the data processing system may automatically determine how to process different data fields of a dataset to achieve a goal across the dataset, such as masking data values, enforcing data quality rules, identifying a schema for the dataset, and / or selecting test data for testing another application. Automatically determining which data fields have which semantic meanings allows these rules to be applied to large datasets where it may be impractical or impossible for a user to manually label each field. For example, for datasets with hundreds, thousands, or millions of tables, it may be impractical to manually label each field to enforce rules, such as data masking rules. In another example, it may be useful to automatically mask sensitive data before any user sees it. In another example, the data processing system may mask sensitive data stored in data fields that are not intended to contain sensitive data.
[0032] The data processing system also determines, according to the data processing rules, which data fields do not need to be processed. For example, the data processing system may determine that a data field does not need to be masked. Determining which data fields do not need to be processed by a data processing operation reduces the processing time of the entire data set to ensure that the specified goals of the application (e.g., masking) are met.
[0033] The data processing system overcomes at least one or more of the following challenges for applying rules to a data set: Often, data fields of a data set are not named in a standardized manner such that the name of the data field is a reliable indicator of the contents of the data field. It is often important for a data processing system to know the meaning of data values of a data field of a data set because the processing requirements of the data field to achieve a specified goal of an application often depend on the meaning of the data values in the data field. For example, if a goal of an application is to mask personally identifiable information (PII), the data processing system determines which data of the data set contains PII and then applies a masking function to those data. In some implementations, a particular data field may require the application of a particular masking function (e.g., to meet a guarantee requirement for the data value of that data field). Furthermore, the data processing system is configured to determine the meaning of the data values of the data fields, which may be difficult because the meaning is not always apparent from the field name, the format of the data values of the field, or the data values themselves.
[0034] The details of one or more embodiments are set forth in the accompanying drawings and the description below. Other features and advantages will be apparent from the description and drawings, and from the claims. [Brief description of the drawings]
[0035] [Figure 1]FIG. 1 is a block diagram of a data processing system. [Figure 2A] 2 is a block diagram including the exemplary data processing modules of FIG. 1 for data quality rule processing, respectively. [Figure 2B] 2 is a block diagram including the exemplary data processing modules of FIG. 1 for data quality rule processing, respectively. [Figure 2C] 2 is a block diagram including the exemplary data processing modules of FIG. 1 for data quality rule processing, respectively. [Figure 3A] 2 is a block diagram including the exemplary data processing modules of FIG. 1 for data quality rule processing, respectively. [Figure 3B] 2 is a block diagram including the exemplary data processing modules of FIG. 1 for data quality rule processing, respectively. [Figure 3C] 2 is a block diagram including the exemplary data processing modules of FIG. 1 for data quality rule processing, respectively. [Figure 4A] 2 is a block diagram including the exemplary data processing modules of FIG. 1 for data quality rule processing, respectively. [Figure 4B] 2 is a block diagram including the exemplary data processing modules of FIG. 1 for data quality rule processing, respectively. [Figure 5A] 2 is a block diagram including the exemplary data processing modules of FIG. 1 for data quality rule processing, respectively. [Figure 5B] 2 is a block diagram including the exemplary data processing modules of FIG. 1 for data quality rule processing, respectively. [Figure 6A] 2 is a block diagram including the exemplary data processing modules of FIG. 1 for data quality rule processing, respectively. [Figure 6B] 2 is a block diagram including the exemplary data processing modules of FIG. 1 for data quality rule processing, respectively. [Figure 6C] 2 is a block diagram including the exemplary data processing modules of FIG. 1 for data quality rule processing, respectively. [Figure 7A]2 is a block diagram including the exemplary data processing modules of FIG. 1 for data quality rule processing, respectively. [Figure 7B] 2 is a block diagram including the exemplary data processing modules of FIG. 1 for data quality rule processing, respectively. [Figure 8] FIG. 1 is a block diagram of a data processing system. [Figure 9] 1A-1C are flow diagrams each including an exemplary process. [Figure 10] 1A-1C are flow diagrams each including an exemplary process. [Figure 11] 1A-1C are flow diagrams each including an exemplary process. [Figure 12] 1A-1C are flow diagrams each including an exemplary process. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0036] 1 is a block diagram of a data processing system 100. The data processing system 100 is configured to process data records from input data 112. The data processing system includes a semantic discovery system 602 and a data processing device 102. The semantic discovery system 602 is configured to determine the meaning (e.g., semantic meaning) of values of one or more fields of the data records. The semantic discovery system 602 may label each of the fields with a semantic label 118 selected from a data dictionary database 614. The semantic labels 118 (also referred to as labels) are associated with one or more attributes 120 in the data dictionary database 614. The attributes associated with the semantic labels 118 define the semantic meaning of the labels.
[0037] The data processing device 102 is configured to receive the label index 610 and the data dictionary database 614 from the semantic discovery system 602, as well as the input data 112. The data processing device 102 is configured to process the input data 112 based on the labels in the label index 614 and the labels and attributes 120 in the data dictionary database 614. The labels 118 and the label index 610 in the database 614 are generated by a semantic discovery process of the semantic discovery system 602.
[0038] The semantic discovery system 602 is configured to receive the input data 112 and determine the semantic meaning of the fields of the input data. The semantic meaning of a field is a description of the practical (e.g., business) meaning of the value of the field, which is described in more detail below. To determine the semantic meaning of the fields of the input data 112, the semantic discovery system 602 profiles the input data 112 and performs multiple classifications that analyze the profile data and the values of the fields. The classification of the profile data and the values of the fields allows the semantic discovery system 602 to determine which attributes are most associated with the field. The attributes 120 include metadata (or other data) that indicate characteristics of a given field. For example, the attributes 120 may indicate a particular format, a particular relationship of the field to another field(s), allowed or prohibited values of the field, associated key terms or business terms, statistical criteria of the value(s) of the associated field (either individually, with respect to other values of the field, or for the values of the field as a group), etc.
[0039] The semantic discovery system 602 is configured to generate a label index 610 that associates fields of data records in the input data 112 with labels 118 in the data dictionary database 614. When a field of a data record is being processed by the data processing device 102, the semantic label 118 (if any) associated with the field may be retrieved using the label index 610.
[0040] A semantic label (e.g., of label 118) includes a term or set of terms (typically a series of words or alphanumeric characters) that indicates the semantic meaning of the data in the field labeled with the semantic label. Semantic labels 118 are recognized terms or sets of terms that appear in a data dictionary associated with the data processing system. Each semantic label 1118 is associated with one or more fields of a dataset. For example, a table may associate a semantic label 118 with each field (or each instance of each field) in a dataset that has data values with the meaning of the semantic label.
[0041] In some implementations, the semantic discovery system 602 does not necessarily generate an actual label to identify the semantic meaning of the field, but rather associates the field with corresponding attributes 120 that indicate the semantic meaning. For example, the label index 610 may associate a field with an entry in the data dictionary database 614 that includes one or more attributes 120 without including a specified label for the field. In other implementations, the label is used as a shorthand for indicating one or more sets of attributes 120 in the data dictionary database 614 that represent the semantic meaning of the field.
[0042] In general, the semantic meaning of a field may correspond to the practical or contextual meaning of the value of the field. The practical (e.g., business) or contextual meaning represents one or more syntactic characteristics of a data value in a data record and / or a contextual indicator of the data value. The one or more syntactic characteristics, when interpreted together, convey how the value is processed by one or more modules of the data processing device 102 that are using the value of the data record for various applications. The syntactic characteristics are indicated by the attributes 120 associated with the respective labels 118 in the data dictionary database 614. For example, for a data value corresponding to a date, the semantic meaning may indicate that the date value represents a birth date (e.g., for a customer or user associated with the data record). In another example, the semantic meaning may indicate that a numeric identifier represents a social security number that is a particular type of numeric identifier and has particular properties that are specific to social security numbers. In another example, the semantic meaning may indicate that the values of two different fields, when grouped together, convey a business meaning. For example, if a number is identified as a zip code and is paired with other fields identified as representing a city and a state, the semantic discovery system 602 is configured to determine that the semantic meaning of all three fields taken together is an address, further examples of semantic meanings are described in more detail below.
[0043] In some implementations, the semantic meaning of a field includes the actual meaning of the data in the field (e.g., business meaning or real-world meaning). The semantic meaning may be more specific than indicating what type of data the field contains. For example, a field containing dates may be identified from a data profile. Data processing system 100 may determine that a field contains dates due to the length of the values in the field (e.g., the average length of the values). Data processing system 100 may determine that a field contains dates due to its format (e.g., the values are all numeric or fit the format ##¥##¥####, etc.). Other statistical data may indicate to data processing system 100 that a field contains dates. However, the semantic meaning of a field may indicate that the field represents the birth date of a user of an application, distinct from other dates associated with the user, such as the creation date of the user's profile.
[0044] As mentioned above, the semantic labels 118 are associated with one or more attributes 120 in the data dictionary database 116. The attributes 120 indicate the meaning of the data values in the data field. The attributes 120 may indicate that the data values have a particular property. For example, the attributes 120 may indicate that the data values include personally identifiable information (PII). The attributes 120 may indicate that the data values of the data field have a particular relationship to other data fields. For example, the attributes 120 may indicate that the data field includes a database key value. The attributes 120 may indicate a particular meaning of the data values in the field that is implied by the format of the data values, by the data values themselves, by the name of the data field, and by comparisons of the data values of the data field to other values of other data fields in the dataset. For example, the attributes 120 may indicate that the data values of the data field include a birth date (rather than simply a date(s) for some other purpose). The semantic discovery process of the semantic discovery system 602 is described in more detail below with respect to FIG. 8.
[0045] In some implementations, a semantic label (or an attribute 120 associated with the label) may be associated with a group of fields rather than a single field. For example, if the fields in a group of fields are determined to represent a street name, a house number, a zip code, and a city, respectively, the semantic discovery process may determine that the group of fields as a whole represents an address and associate an address attribute with the group of fields. For example, the attribute 120 may indicate that all of these fields should be included in a group in a given set of data (e.g., for data quality checks for missing parts of an address). In some implementations, the attribute 120 may indicate that the fields as a whole represent PII, but individually do not represent PII. This may be useful for data masking checks. For example, if all of the fields are included in the dataset, the data masking module 108 may determine that data masking is required, and if only one of the fields is included in the dataset, data masking is not required. This may also be useful for schema analysis, where the attribute indicates that each field in a group is correlated with the other fields. Other such examples are possible for multi-field analysis, which are described in more detail below.
[0046] As shown in FIG. 1, when the data processing system 100 labels a field with a semantic label 118, the field is associated with attributes 120 of the semantic label. The rule modules 104, 106, 108, and 110 of the data processing device 102 use the attributes 120 to determine what rule(s) to apply to a given field of the data set or what rules to generate for a given field of the data set. By applying different rules to each field, the data processing device 102 can automatically process the data of each field in a unique manner. The data processing device 102 can generate rules for processing a given field of the data set.
[0047] The modules 104, 106, 108, and 110 of the data processing device 102 are configured to process input data according to one or more processing rules. In general, a rule for processing a data value of a data set may include one or more data processing operations to be performed on a data value when the data value is in a field associated with a particular semantic label. A rule may include a single operation or a list of two or more operations. The semantic label 118 may indicate which rule(s) (e.g., of a library of rules) should be applied to a data value of a given data field of an application, or whether any rule should be applied to a data value of a given field. For example, the rules may include data quality rules that impose data requirements on each data value of a given field. The data requirements may be format requirements, value range requirements, etc. The rules may include data masking rules that require the data value to be converted into a different format before a downstream application can process the data value. Many other types of rules are possible, as described later.
[0048] The data processing device 102 is configured to receive data for processing the input data 112 from the data dictionary 614 and the label index 610. The data processing device 102 is configured to use the semantic labels 118 for one or more of several different applications. The data processing device 102 includes a data quality rules module 104 (also referred to as data quality rules module 104). The data quality rules module 104 is configured to generate data quality rules for fields of data records (e.g., of the input data 112) based on the semantic label(s) associated with each of the fields. In one example, a first set of data quality rules may be automatically generated for (and used to process) a first field having a first semantic label. For example, if the first field is labeled as a social security number, the data quality rules module 104 may be configured to generate a first set of data quality rules configured to test whether the value of the field is in fact a valid social security number. In another example, the second field may be labeled as a date of birth field. The data quality rules module 104 may be configured to generate a second, different set of data quality rules configured to test whether the value of the second field is in fact a valid birth date (as opposed to other dates or other types of data). The data quality rules module 104 is described in further detail in conjunction with Figures 2A-3C.
[0049] The data processing device 102 includes a test data set module 106. The test data set module 106 is configured to generate a test data set for testing a data processing application. Typically, realistic test data is used to test an application to ensure that all features of the application function as intended. Generating test data that tests all the functionality of an application can be difficult and time-consuming, since there may be many process permutations, case structures, etc. that need to be tested. Furthermore, the test data should behave similarly to the real data in terms of conforming to referential integrity and internal logical consistency. For example, links in the test data should point to valid data that is also testable. The test data set module 106 is configured to ensure that the test data meets these requirements. For example, the test data set module 106 is configured to generate test data where the test data meets referential integrity (e.g., pointers point to valid fields), where appropriate data is included (e.g., social security number fields are included in the test data, if necessary), where irrelevant data is not included (e.g., fields not required for the test data are excluded from the test data), etc. The test data set module 106 is described in further detail with respect to Figures 4A-5B.
[0050] The data masking module 108 is configured to generate rules for masking data fields in the input data 112. Data masking may be used to ensure that sensitive data, such as personally identifiable information (PII), is masked such that it no longer represents real people or authentic entries in the data records. For example, data masking may involve anonymizing values of fields of the data records. Data masking may include encrypting values of certain fields. Numerous other methods for masking data are also possible, as described below. The data masking module 106 is configured to mask fields using a specific masking function. The specific masking function for a field may be selected based on a semantic label of the field. For example, the semantic label associated with a field may specify how the data is masked (e.g., which masking function or masking technique should be used for that field). In this way, the semantic label may specify not only that the field should be masked, but how the field should be masked.
[0051] The dataset schema analysis module 110 is configured to identify relationships between fields of the input data 112 and determine a schema of the input data 112 from these relationships. The schema describes the structure of the input data 112. For example, the schema of the input data 112 may describe key-value relationships between fields, dependencies of fields on other fields, value correlations between fields, etc. One or more of the other modules 104, 106, 108 of the data processing device 102 process the input data 112 based on the identified schema, including generating or applying data quality rules, generating or applying data masking policies, and generating test datasets. In some implementations, the schema of the input data 112 is determined in parallel with the process of the semantic discovery system 602. In some implementations, the semantic labels generated by the semantic discovery system 602 are used by the dataset schema analysis module 110 to determine the schema of the input data 112.
[0052] Generally, the data processing device 102 receives a data set from an input data store 112 and outputs processed data to an output data store 114. In some implementations, the input data store 112 and the output data store 114 are included in the same data store. In some implementations, the input data store 112 and the output data store 114 are databases. The data set received by the data processing device 102 may include data records, data tables, or other data in which a group of one or more values is associated with a name or label. For example, the data set may include one or more fields, each of which includes one or more values. Each field may include a field name. The field name may be a technical name, a code name, a business term, a numeric value, or any other value. In some implementations, a field does not have a field name. Generally, one or more of the fields of the input data 112 are associated with a corresponding semantic label. Each semantic label indicates what the syntactic or semantic meaning of the field is, as described above.
[0053] The data processing system 100 includes a reference data store 116. The reference data store 116 stores data used by the data processing system 100 to operate the modules 104, 106, 108, and 110. For example, when a data quality rule from a data quality rule library is required by the data quality rule module 104, the data processing device 102 retrieves the data quality rule from the reference data store 116 based on criteria described below. The reference data store 116 stores information such as masking functions for use during the data masking process. The reference data store 116 may store data for the label index 610 and the data dictionary database 614. The reference data store 116 may include an in-memory data store or a persistent data store. The reference data store 116 may be a single data store or a distributed network of data stores. In essence, the reference data store 116 is a place to hold data for use in various processes of the data processing system 100.
[0054] 2A-7B are block diagrams illustrating data processing modules of the data processing device 102 of FIG. 1. With reference to FIG. 2A-3C, the data quality rule module 104 is configured to generate data quality rules for a dataset or apply data quality rules to a dataset (e.g., input data 112) using semantic meanings of fields of the dataset. The semantic meanings of the fields are determined by a semantic discovery system 602, as described above in connection with FIG. 1 and in more detail below in connection with FIG. 8.
[0055] 2A illustrates a process 200a performed by an attribute analysis module 204 of the data quality rules engine 104. The attribute analysis module 204 is configured to determine what attributes are associated with a field having a value processed by the data quality rules module 104 so that one or more data quality rules can be generated by the module 104 for that field. The attribute analysis module 204 receives a data set 201 including a field associated with an attribute of the data dictionary 614 by a label index 610. As mentioned above, a semantic label 228 may associate an attribute and a field, but an actual label is not required. For simplicity, the following examples include a semantic label for associating a semantic meaning indicated by an attribute with a field, but in each of the following examples, an actual label (e.g., a descriptive word or term) is not required.
[0056] The attribute analysis module 204 determines what the attributes of a given field are for which a data quality rule is generated or to which a data quality rule is applied. The attribute analysis module 204 is configured to receive (250) a dataset 201. The attribute analysis module selects (252) a field of the dataset 201. In the example of FIG. 2A, the selected field 218 is named "SSN," although a field name is not required. The value 220 of the field "SSN" is "55-555-5555."
[0057] Once a field is selected, the attribute analysis module uses the label index 610 to look up (254) the semantic label 228 in the label index 610. In some implementations, no label is received, but an entry identifier in the data dictionary database 614 (or some other indication of which attribute is associated with the selected field without the use of a label) is received. The attribute analysis module 204 performs (256) a lookup to determine which attribute is associated with the label 228a "Social Security Number". Here, the attribute 230 is associated with the label 228a in the data dictionary database 614. The attribute 230 is then stored (e.g., in memory) for generation or application of data quality rules by the rule creation module 206 or the rule application module 208 of the data quality rule creation module 104.
[0058] 2B, in process 200b, rule creation module 206 is configured to determine one or more data quality rules for a field based on the semantic meaning of the field (e.g., as indicated by attributes 230). For example, a particular attribute may indicate one or more rules that may be applied to a selected field. In this context, attributes 230 may indicate a set or range of allowed values, a relationship between the value of the field and the values of one or more other fields (e.g., always greater than, always less than, equal to, a function of, etc.), a data type, a length of an expected value, or other characteristics of the value of the field. For example, as described later, attributes may indicate what values are allowed in a field and what values are not allowed in a field. For example, a given range indicated in an attribute associated with a label of a field may also be a data quality rule for that field. However, attributes associated with a field and rules generated for the field do not necessarily coincide. For example, a data quality rule for a field may require that there are no duplicate values or no empty values, but attributes 230 need not indicate this rule. Conversely, an attribute may indicate that a selected field complies with a particular requirement, but the generated data quality rule need not enforce this requirement.
[0059] The rule creation module 206 is configured to receive 260 attributes 230 associated with the field. The rule creation is configured to generate 262 data quality rules for the selected field based on the attributes, as described above. Any number of data quality rules may be generated using any combination of attributes 230. A rule may enforce requirements for each value of a field, independent of any other fields or values of the dataset 201. For example, data quality rule 214a may require that the format of the value of a field associated with the label "social security number" has the format "XXX-XX-XXXX", where X can be any digit from 0 to 9. This requirement is based on each individual value and does not require further analysis to enforce. In another example, rule 214b may check the type of each character of the value to ensure that all X values are indeed digits from 0 to 9 and not other characters. In another example, a data quality rule may require a check against the entire selected field. For example, data quality rule 214c may require that each value in the selected field is unique. This requires checking the values in the selected fields in addition to the value currently being processed to determine if each value is unique.
[0060] Other examples of data quality rules are possible. In some examples, a rule used to characterize the quality of a set of data may indicate allowed or prohibited attributes of a profile of data records in a dataset. The attributes of the profile may be values or ranges of values. A rule indicating allowed attributes of a profile is satisfied when the profile includes allowed attributes. An example of an allowed attribute of a field may be the maximum and minimum allowable values of that field, and the rule is satisfied if the average value of the field falls between the maximum and minimum allowable values. A rule indicating prohibited attributes of a profile is satisfied as long as the profile does not include prohibited attributes. An example of a prohibited attribute of a field may be a list of prohibited values for that field, and the rule is not satisfied if the field includes any of the prohibited values.
[0061] A data quality rule may indicate an acceptable deviation between the value or values of a field and a profile of the field. A deviation between the profile and the value of the field that is greater than the acceptable deviation indicated by the corresponding rule may be an indication of a data quality problem in the dataset, and therefore an indication that the dataset is a possible root cause of existing or potential data quality problems in downstream sets of data. In some examples, the acceptable deviation may be specified as a range of values, such as a maximum acceptable value and a minimum acceptable value. In some examples, the acceptable deviation may be specified as a standard deviation from a single value, which may be a mean value (e.g., the average or median of values in historical datasets).
[0062] In some examples, a rule used to characterize the quality of a set of data may indicate allowed or prohibited characteristics of values in each of one or more fields of a data record, such as based on the validity of values in the field. A rule indicating allowed characteristics of a field is satisfied if a value in the field meets the allowed characteristics. A rule indicating prohibited characteristics of a field is satisfied as long as a value in the field does not meet the prohibited characteristics. A value that meets a rule may be referred to as a valid value, and a value that does not meet a rule may be referred to as an invalid value. Various characteristics of values in a field may be indicated as allowed or prohibited characteristics by a rule. An exemplary rule may indicate allowed or prohibited characteristics of the contents of a field, such as a range of allowed or prohibited values, a maximum allowable value, a minimum allowable value, or a list of one or more specific values that are allowed or prohibited. For example, a birth year field having a value less than 1900 or greater than 2016 may be considered invalid. An exemplary rule may indicate allowed or prohibited characteristics of a data type of a field. Exemplary rules may indicate whether the absence of a value (or the presence of a NULL) in a particular field is permitted or prohibited. For example, a last name field containing a string value (e.g., "Smith") may be considered valid, while a last name field that is blank or contains a numeric value may be considered invalid. Exemplary rules may indicate permitted or prohibited relationships between two or more fields within the same data record. For example, a rule may specify a list of values for a zip code field that correspond to each possible value of a state field, and may specify that any combination of values of the zip code field and the state field that is not supported by the list is invalid.
[0063] In some examples, rules may be generated based on an analysis of historical data. The rules generated by the rule generation module 206 may indicate allowable or prohibitive attributes of a profile of data records in a set of data. For example, a rule for a profile may indicate an allowable deviation between a profile of a field of a particular dataset and a determined historical profile of the field of that dataset. A historical profile of a dataset may be based on historical data, for example, the historical profile may be a profile of the same dataset from the previous day, an average profile of the same dataset from several days ago (e.g., over the past week or month), a lifetime average profile of the same dataset. More generally, the profile may hold a wide variety of reference information to utilize various types of statistical analysis. For example, the profile may include information about standard deviation or other indicators of the distribution of values. For purposes of the following example, and without limiting the generality of the application, the profile may include a conventional numerical average of a dataset, and possibly also a standard deviation.
[0064] The generated rules may indicate determined allowed or prohibited characteristics of values in a field of a data record. In one example, a rule generated for a field may indicate a maximum or minimum allowable value for the field based on an analysis of past maximum or minimum values for the field. In one example, a rule generated for a field may indicate a list of allowable values for the field based on an analysis of previously occurring values for the field.
[0065] In some examples, machine learning techniques are used to generate data quality rules. For example, data may be analyzed over a learning period for user settings or applications as to which characteristics affect the data quality of the application and therefore require data quality rules to enforce the characteristics. For example, if an application often fails because a field's value is in the wrong format, the rule generation module generates a rule to enforce a particular format. If an application fails because a numeric value is outside of an acceptable range, the rule generation module 206 generates a data quality rule to enforce a particular value range for the field. Other such examples are possible. The learning period may be a specific period of time or may be an amount of time until the average or expected value converges to a stable value.
[0066] The rule generation module 206 is configured to generate one or more data quality rules based on expected characteristics of the data records processed by the system. In a particular example, the source data is credit card transaction records for transactions occurring in the United States. The source data is streaming data processed in hourly increments. Based on the attributes 230 identified for the fields and data from the application indicating the actions to be performed when processing the credit card transaction records, the user may identify a transaction identifier field, a card identifier field, a status field, a date field, and a total amount field as important data elements to be profiled.
[0067] In a particular example where the source data are credit card transaction records, the rule creation module 206 may receive an attribute indicating that there are only 50 allowable values of the status field. The rule creation module 206 may create a rule that causes a warning flag to be used if the profile of the set of source data identifies more than 50 values in the status field, regardless of the standard deviation of the profile of the set of source data relative to the norm. The rule creation module 206 may receive an attribute that indicates only credit card transaction records for transactions that were completed on the same date that the transaction should be present in the set of source data. The rule creation module 206 may create a rule that causes a warning message to be sent if any source data records have a date that does not match the date of the transaction.
[0068] In some examples, the rule creation module 206 may specify one or more rules to be created through a user interface. Through the user interface, a user may provide feedback on the rules for one or more fields or may approve pre-populated default rules for the fields. Further description of the user interface may be found in U.S. Application No. 13 / 653,995, filed October 17, 2012, the contents of which are incorporated herein by reference in their entirety. Other implementations of the user interface are possible.
[0069] In some examples, when a possible data quality problem is detected in a dataset, such as in a new version of a set of reference data or in a set of source data, an identifier of the dataset having the possible data quality problem is placed in a list of root cause datasets stored in the database. When a data quality problem is later detected with a set of output data, the database may be queried to identify upstream data lineage elements of that set of output data and determine which of those upstream data lineage elements, if any, are included in the list of root cause datasets.
[0070] In some examples, if a possible data quality issue is detected in a dataset, such as a new version of a set of reference data or a set of source data, a user notification may be enabled. In some examples, a warning flag may be stored to indicate the data quality issue. For example, if a possible data quality issue is detected in a new version of a set of reference data, a warning flag may be stored in conjunction with the profile data of the new version of the reference data. If a possible data quality issue is detected in a set of source data, a warning flag may be stored in conjunction with the profile data of that set of source data. In some examples, a warning message may be communicated to a user to indicate the existence of a possible data quality issue. The warning message may be, for example, as a message, an icon, or a pop-up window on a user interface, as an email or a short message service (SMS) message, or in another form.
[0071] In some examples, the rules may specify one or more threshold deviations from the profile at which a warning flag or warning message is used. For example, if the deviation between the profile of the current dataset and the profile of that dataset is small, such as between 1 and 2 standard deviations, a warning flag may be stored and if the deviation exceeds 2, a warning message may be communicated. The threshold deviation may be specific to each set of source data and reference data.
[0072] In some examples, if the deviation is severe, e.g., more than three standard deviations from the profile, further processing by the data processing system may be halted until a user intervenes. For example, any further processing affected by source data or reference data with severe deviations is halted. The transformations that are halted may be identified by data that reference data lineage elements downstream of the affected source data or reference data.
[0073] In some examples, the profile data is determined automatically. For example, the profile data for a given dataset may be automatically updated, e.g., as a running historical average of past profile data for that dataset, e.g., by recalculating the profile data whenever new profile data for that dataset is determined. In some examples, a user may supply initial profile data, e.g., by profiling a dataset with desired characteristics.
[0074] 2B, data quality rules 214a-c may be generated once and associated with a particular semantic label for later reuse. Not all of the constraints indicated by attributes 230 need to be enforced as explicit data quality rules 214, although this may be done as needed. Rather, a set of data quality rules 214 may be generated that enforce the constraints as needed for a given application. For example, an attribute for a semantic label may indicate that all data in a field having the semantic label is length=9. A data quality rule associated with the attribute may require that the length of the data values in the field are each exactly 9. The length requirement may be specified in a profile 216. An associated data quality rule may be generated from this information. For example, data quality rules 214 may include a data quality rule that specifies a length requirement of 1. From this available rules, the rule generation module may generate a data quality rule that requires a length of exactly 9 digits after consulting the profile 216.
[0075] The rule creation module 206 creates at least one data quality rule for the field. The created data quality rule may be field specific or common to more than one field. The data quality rule may indicate one or more of an allowable deviation between a characteristic of a value in the field of the dataset and one or more characteristics included in the profile of the field, one or more allowable values in the field, and one or more prohibited values in the field.
[0076] As mentioned above, the data quality rule module 104 is configured to automatically generate data quality rules using the attribute(s) associated with the semantic labels 228. To do this, the rule creation module 206 converts one or more of the attributes into logical rules. For example, if an attribute indicates that all values of a field are between 1 and 100, a data quality rule may be generated that requires all values to be between 1 and 100. However, such a data quality rule need not necessarily be generated. For example, another attribute associated with the semantic labels 228 may indicate that the last digit of each value of the field ends with a 7. Thus, a data quality rule may be generated that requires the value to both be between 1 and 100 and end with a 7. These may also be expressed as two different rules. In another example, an attribute may indicate a particular format for the value, such as that the value have a format like ###-##-####, which is the format of a social security number. The data quality rule generator may generate a data quality rule that requires values to fit this exact format, a portion of it, or a common variant (e.g., 9 digits with no dashes).
[0077] The semantic label 228 may indicate a relationship between a value of the field and a value of another field. The rule creation module 206 may generate data quality rules based on these relationships. For example, if the field is a first field and the dataset includes a second field, the rule creation module may be configured to generate a data quality rule for the first field based on the relationship between the second field and the first field. For example, the second field may be associated with a semantic label indicating that the field contains a user name. The data quality rule may require that a valid name in the second field be associated with each value in the first field such that the first field passes the data quality test. A combination of rules 214a-c may be used. For example, a rule may be generated that specifies that for the field SSN, if the format=###-##-#### and each social security number 218 value in the SSN field 220 is unique, then the output of the data quality rule=PASS. This combines two of the three proposed rules (which may also be referred to as constraints), including constraints 214a and 214c.
[0078] In some implementations, the rules may be based on how the data values of a field change over time. For example, a profile for a field may be selected based on the historical trend of values in the field. In another example, a profile for a field is determined based on identifying a historical average of values in the field.
[0079] The rule creation module 206 may generate data to request approval of a data quality rule. For example, a user may approve or reject a rule in a user interface. The rule creation module 206 may approve a data quality rule for an application in response to obtaining approval data indicating approval of the data quality rule. In some implementations, approval data is not required to apply a rule. Once the rule creation module 206 generates a rule (e.g., rules 214a-c), the rule 214 is stored (264) in a data store, such as data quality rule data store 250.
[0080] Referring to FIG. 2C, in process 200c, the rule application module 208 is configured to apply the generated data quality rules 214 to any received data 112 based on semantic meaning associated with the received data, such as by attributes 230 associated with fields using semantic labels 228.
[0081] The rule application module 208 is configured to receive (270) the dataset 201. The rule application selects (272) a field of the dataset 201, such as a field 218 named “SSN” having a dataset location 221 of table 1, column 1. The rule application module 208 references (274) the label index 610 to find which rules are associated with the field of table 1, column 1 in the dataset 201. Here, the semantic label 228 “social security number” is used to represent the field. The rule application module 208 accesses (276) the data quality rules data store 250 and retrieves the data quality rule 214 for the field label “social security number”. The rule application module 208 applies (278) the data quality rule to the value of the field 218. In one example, the value 555-55-5555 passes through the formatting rule, the character restriction rule, and the unique value rule. A result of passing all of the rules 214a-c is a PASS. The application module 208 stores 280 the results 224 of the application of the data quality rules in the output data store 114.
[0082] Data quality rules generated for a field associated with label 228 may be applied to any field associated with the same label, either in the second instance of dataset 201 or in a new, different dataset. For example, label 228 social security number labels a field for which rule generation module 206 generated one or more data quality rules. Any fields with the same label 228 have the same semantic meaning, so the generated data quality rules may be applied to those fields. This may also be true for different fields labeled with label 228 across datasets. For example, if a new field in a new dataset has label 228 social security number, the data quality rules generated for data record 202 are still applicable to that new field in the new dataset.
[0083] The above examples show rules generated based on a single field analysis. It is also possible to generate rules based on a multi-table (e.g., multi-field) analysis. With reference to FIG. 3A, in one aspect, data quality rules can be generated based on relationships between multiple fields or data records, such as data records 202 and 203. The relationship between fields can indicate a dependency of a value of a second field on a value of a first field or a dependency of a value of a first field on a value of a second field. In one aspect, the relationship can indicate a correlation between a value of a first field and a value of a second field. In some examples, the data quality rule module 104 validates the relationship between two or more fields by obtaining validation data that confirms the relationship. The validation data can be user input or can be based on attributes of the semantic labels of the associated fields. For example, during rule generation, the relationship can be validated for a threshold number of values of the first field and the second field to test the generated rule. For example, if the first field and the second field each include a numeric value, determining that a relationship exists between the first field and the second field may include determining a numeric function that links values of the first field to values of the second field. In some implementations, the generated data quality rules may require that one or more allowed values correspond to values that satisfy the numeric function, and one or more prohibited values correspond to values that do not satisfy the numeric function.
[0084] In process 300a, similar to process 200a described with respect to FIG. 2A, an attribute analysis module 204 determines what the attributes are for a given field for which either a data quality rule is generated or to which a data quality rule is applied. The attribute analysis module 204 is configured to receive (282) a data set 201. The attribute analysis module selects (284) a field of the data set 201. In the example of FIG. 3A, the selected field 218 is named "SSN," although a field name is not required. The value 220 of the field "SSN" is "55-555-5555."
[0085] Once a field is selected, the attribute analysis module uses the label index 610 to look up (286) the semantic label 228 in the label index 610. In some implementations, a label is not received, but an entry identifier in the data dictionary database 614 (or some other indication of which attribute is associated with the selected field without the use of a label) is received. The attribute analysis module 204 performs a lookup (288) to determine which attribute is associated with the label 228a "Social Security Number". Here, the attribute 230 is associated with the label 228a in the data dictionary database 614. The attribute 231 is then stored (e.g., in memory) for data quality rule generation or application by the rule creation module 206 or the rule application module 208 of the data quality rule creation module 104. In this example, attribute 231 indicates that field 218 named "SSN" in table 1 (e.g., record 202) references a field named "User ID" in table 2 (in record 203). Data quality rule generation module 206 can use this information (which may be discovered during schema analysis as described in connection with FIGS. 7A-7B) to generate data quality rules based on relationships between the fields of records 202, 203.
[0086] 3B illustrates a process 300b for generating data quality rules by module 206, similar to process 200b of FIG. 2B. The data quality rules may be configured by rule generation module 206 to enforce constraints on values of a second field (e.g., of record 201) based on values of a first field (e.g., of record 203). For example, determining that a relationship exists between a first field and a second field may include determining that a value of the second field includes a key value referenced by a value of the first field. Data quality rule generation module 206 is configured to generate data quality rules configured to require that each value of the second field be a valid key value.
[0087] The rule creation module 206 may be configured to determine that a relationship exists between a first field and a second field by the output of a semantic discovery process performed by the system 602 or by a schema analysis as described in connection with FIGS. 7A-7B. In one example, the relationship between the fields of the records 202, 203 may be determined using at least one classifier configured by a machine learning process. For example, one or more tests (described later) used to determine the semantic labels of the fields may also determine the relationship between the fields. The relationship between the fields is included in an attribute 231 associated with the semantic labels of the fields. For example, the attribute may indicate that the semantic label of the field indicates that the field includes a primary key value of the dataset. In one example, the rule creation module 206 configures a data quality rule to require that each primary key value be unique within its field.
[0088] 3B, an exemplary data quality rule 233 generated by the rule creation module 206 using multi-table analysis is shown. As previously mentioned, the attribute 231 includes a multi-table constraint, unlike the single-field constraint described in connection with FIGS. 2A-2C. The multiple records 202 and 203 are analyzed by the attribute analysis module 204 to determine the multi-table attributes 231 associated with the records 202, 203. In some implementations, the schema analysis performed by the dataset schema analysis module 110 (described later in connection with FIGS. 7A-7B) is used to determine the multi-table attributes 231. Like the attribute 230, the multi-table attributes 231 may be determined during the semantic discovery process described in connection with FIG. 8. The rule creation module 206 uses the multi-table attributes 231 in a manner similar to how it uses the attribute 230 described above in connection with FIG. 2A.
[0089] The multi-table constraints (attributes 231 in this example) are found by the rule creation module 206. The multi-table constraints may include any constraints that apply to multiple fields. From the multi-table constraints determined from the multi-table attributes 231, the rule creation module 206 may be configured to generate data quality rules 233b that check the relationships between the fields. Here, the multi-table attributes 231 indicate that the SSN field references a user ID field. The rule creation module 206 generates the data quality rules 233b. For example, the data quality rule 233b checks to determine (for each value of the selected field) whether a corresponding value exists in the user ID field that is bound to the selected field. This data quality rule 233b requires that a corresponding user ID field is bound to the selected field and each value has a corresponding existing value in the user ID field. If no value exists in the user ID field, the data quality rule 233 for the SSN field fails.
[0090] This example rule only checks for the existence of a value in the associated field. However, more complex multi-table data quality rules are possible. For example, the rule creation module 206 may check to see if for each value in the SNN field, a valid corresponding user ID exists in the user ID field. This may be done by checking data quality rules associated with the user ID field, such as that the ID is unique, is within a given numeric range, etc. If any of the data quality rules applied to the user ID field fail, then in this example, the data quality rule for the SSN field will also fail.
[0091] In FIG. 3C, a process 300c for applying multi-file data quality rules 233b is shown. A check is performed by the rule application module 208 against the user ID field for values of the SSN field including 555-55-5555. The rule application module 208 is configured to receive (271) a record 202 including Table 1. The rule application selects (273) a field from the datasets 202-203, such as the field 218 named "SSN" having a location 221 in the dataset in Table 1, Column 1. The rule application module 208 references (275) the label index 610 to find which rules are associated with the field in Table 1, Column 1 in the dataset 201. Here, the semantic label 228 "social security number" is used to represent the field. The rule application module 208 accesses (277) the data quality rules data store 250 and retrieves the data quality rule 214 for the field label "social security number." The rule application module 208 applies 279 the data quality rules to the value of the field 218. In one example, the value 555-55-5555 passes the format rule 233a, the character restriction rule, and the unique value rule.
[0092] When applying a second data quality rule 233b that includes a multi-field field requirement, the rule application module 208 accesses the second field and checks it to apply the rule 233b. In this example, the rule 233b fails because the value of the corresponding user ID field in table 2 of the data record 203 is <empty>, indicating that no user ID exists. Thus, the field 202 has passed all the single-field data quality rules, failing the multi-table data quality rule 233b. This may indicate to the user more clearly how the system is failing the data quality check than simply checking each individual field. The result of passing all of the rules 233a, b, c is a FAIL. The application module 208 stores 281 the results 224 of the application of the data quality rules in the output data store 114.
[0093] Data quality rules generated for a field associated with a label 228 may be applied to any field associated with the same label, either in a second instance of the dataset 201 or in a new, different dataset. For example, the label 228 social security number labels a field for which the rule generation module 206 generated one or more data quality rules. Any fields with the same label 228 have the same semantic meaning, so the generated data quality rules may be applied to those fields. This may also be true for different fields labeled with label 228 across datasets. For example, if a new field in a new dataset has the label 228 social security number, the data quality rules generated for the data record 202 are still applicable to that new field in the new dataset.
[0094] As mentioned above, other data quality rules may be generated from attributes 231 associated with a field. For example, the attributes may indicate that the value is based on at least one of the average of values in the field, the maximum length of the values, the minimum length of the values, the data type of the values, and the format of the values. For example, one or more allowed or prohibited values in a field are associated with a field name that labels the field. For example, one or more allowed or prohibited values in a field are determined based on values in a second field in the dataset, the second field being linked to a first field of the dataset. For example, one or more allowed or prohibited values are based on a combination of values in the second field and values in the first field.
[0095] 4A-4B show processes 400a and 400b for generating test data using results of the semantic discovery process of the system 602. The test data is generated by the test data set module 106. The test data set module 106 includes the test processing module 304 and the test data generation module 306.
[0096] 4A illustrates a test processing module 405 configured to generate test data from a dataset (e.g., dataset 401) for testing the logic of an application using the semantic meaning of the fields of the dataset. The semantic meaning is represented by attributes 430 and in some aspects by semantic labels, as described above. The test dataset module 106 is configured to generate a set of test data for the application. The test data is generated to represent the actual data processed by the application, to test as many functions of the application as possible (e.g., all functions of the application), and to be valid (e.g., all keys are valid, fields contain valid values, etc.). Selection of fields to be included in the test data and validation of the test data may be performed based on the respective semantic meanings of the fields of dataset 401.
[0097] In general, to generate test data, the test data set module 106 receives (402) a data set 401 that includes fields labeled with semantic labels (or otherwise associated with attributes 430 that indicate the semantic meaning for each of the fields of the data set 401). In this example, the test processing module 405 selects (404) one or more fields of the data set 401, such as a field 418 named "SSN" that includes a value 420 of "12-22-1960". The test processing module 405 performs a lookup (406) of a semantic label 428 in the index 610. In response to retrieving the semantic label 428, a label 428a is found that labels the field 418. Attributes 430 of the label 428a are received (408) by the test processing module 405. The attributes 430 indicate that the field 418 includes a number including 10 digits and an MM / DD / YYYY format.
[0098] Once the attributes 430 are received, the test processing module 405 retrieves 410 the test configuration data 407 from the test configuration data store 403. The test configuration data store 403 may be associated with the application being tested. The test configuration 407 includes a specification of the requirements for the test data to be generated. For example, the test configuration 407 may include a list of fields to ignore. The fields to ignore may be based on the semantic meaning of the fields, since the application may not have data indicating the field names prior to receiving the dataset 401. For example, when generating the test configuration 407, the user may specify that the social security field should be ignored for the test. The test dataset module 106 may determine which fields represent social security numbers and remove them from the test data. This may reduce the data footprint of the test data and save storage space. In another example, the test configuration data 407 may indicate that social security numbers in the test data should be unique. The test data set module 106 may find which fields in the data set 401 represent social security numbers and remove duplicate entries in the fields to reduce the test data size. In another example, the test configuration data 407 may indicate which fields should be key values and what fields they should point to in other data sets. The test data set module 106 may enforce that structure in the generated test data, as described later. The test configuration data 407 may include any other similar requirements, such as schema requirements, data quality requirements, field inclusion requirements, etc.
[0099] After performing a lookup (410) of the test configuration data 407, the test processing module 405 enforces the requirements indicated in the test configuration data against the fields of the dataset 401 based on the semantic meaning identified for each of the fields. For example, requirement 412 in FIG. 4A includes a requirement to ignore birth dates and enforce unique social security numbers in the dataset 401. The test processing module 405 associates attributes 430 with the requirements 412 of the test configuration data 407.
[0100] In some implementations, attributes 430 of a semantic label 428 may include how a field with a semantic label should relate to another field with another particular semantic label. For example, attributes 430 of a field 418 labeled "Birth Date" may indicate that a birth date value for a given data entry should always be an earlier time than another value in a field labeled "Registration Date". Attributes 430 of a semantic label 428 may indicate what format the data value for the field is in and what values are allowed (e.g., the attributes may reference a lookup table that includes all possible values for the field). Attributes 430 may indicate how common the value for the field should be, the range of values expected for the field, and other such characteristics of the data value for the field. Attributes 430 are used during the test generation process 400b.
[0101] 4B illustrates a process 400b of generating test data 422 by the test data generation module 415. The test data generation module 415 receives 440 attributes 430 associated with the selected field. The test data generation module 415 may also determine how processing rules, if applicable, have processed the field in prior testing. For example, processing rule data may be received indicating how many times a processing rule has been executed on a field labeled with a semantic label 428. In some implementations, this data is shown in the test configuration data 407. In some implementations, for example, a field may be removed from the test data if the field has not been tested in a previous test.
[0102] The test data generation module 415 receives (442) the test configuration data 407 and generates (446) test data based on the requirements of the test configuration data 407 and the attributes 430. In one example, two values, each unique and conforming to the format requirements 412 of the test configuration data 407, are included in the SSN field 418. The values in the SSN field are "555-55-5555" associated with a first user ID value (value 1) and "666-66-6666" associated with a second user ID value (value 2). The test data generation module 415 stores (448) the test data 422 in the test data data store 450 for use by one or more applications.
[0103] In some implementations, the test configuration data 407 may indicate subsetting rules for the test data 422. In this example, once an attribute 430 is identified, the test data generation module 415 receives the attribute value and the processing rule data to determine which subsetting rule should be applied to the field. The test data generation module 415 determines the subsetting rule for the field based on the semantic label 428 of the field. The subsetting rule indicates whether all values or a portion of the values of the field should be included in the test data for testing the application. For example, a particular semantic label may be used to determine whether the value of the field is useful for testing in a given test or whether the field should be ignored during testing. For example, a field that is not of interest to a particular application may be ignored when testing the application. As previously mentioned, the semantic label is associated with one or more attributes in the data dictionary. The attribute indicates what the characteristics of the field should be. For example, the attributes together may indicate what the real-world meaning of the field is for the data. When configuring a test, a user may indicate what real-world data is relevant from a larger data set for testing. When a dataset is received, the test dataset module 106 may automatically select relevant fields and ignore non-relevant fields.
[0104] The test data generation module 415 selects subsetting rules based on attributes of the semantic labels 428. In some implementations, the subsetting rules may be directly associated with the semantic labels 428. For example, a subsetting rule may indicate whether a particular field should be included in the test data based on values included in the configuration data 407. For example, if the configuration data 407 indicates an execution count of operations on a field that is less than a threshold number, the field may be removed from the test data.
[0105] Other data may be included in configuration data 407. For example, data 407 may specify that a field may be removed from the test data if the field fails one or more data quality rule tests. For example, empty values in the field, values with data in an incorrect format, or other such data may be removed from the field. In another example, a field may be removed from the test data if attribute 430 indicates that the field contains PII. In another example, values that fall outside a particular range may be removed from the test data. In another example, if a field includes several categories that each have duplicate values, subsetting rules may extract a set of data records that have unique values. Ensuring that the test data has as few duplicate values as possible ensures that the footprint of the test data is as small as possible while still representing a complete selection of possible test inputs for the system.
[0106] In some implementations, the test data generation module 415 may select one or more of the subsetting rules to apply to the field. The selection of subsetting rules may be validated by a user (e.g., via a user interface). The selection of subsetting rules may be for any goal, but generally, the goal is to generate a test data set 422 that provides full operational coverage of the application being tested while having as small a data footprint as possible. In this manner, the subsetting rules are selected to remove irrelevant values from the data set, such as duplicate values, erroneous values, incorrectly formatted values, etc. In some implementations, a list of selected subsetting rules may be sent to the output database 114 or the test configuration data store 403.
[0107] In one aspect, the test data 422 may be sent to a data processing application including a processing rule configured to operate on a value of a field of the test data set and generate at least one output value, the field being labeled with a label suggestion. The test data set generation module is configured to obtain execution information indicating a number of times the processing rule has been executed in association with processing the first data set. Whether the processing rule is executed by the data processing application during processing of the first data set may depend directly or indirectly on the value of the field having the label suggestion. The subsetting rule may be determined based on the execution information indicating a number of times the processing rule has been executed in association with processing of the first data set. In this example, the subsetting rule includes an identification of a field of the data set. For example, the subsetting rule may identify a field as a key field of the data set that includes at least one key value of a data element of the data set. In some implementations, the subset of data records of the data set includes data records having a key value with a predetermined value. In some implementations, the subsetting rule identifies a list of key field names that correspond to the label suggestion. The subsetting rule identifies a field as a key field by comparing the label suggestion of the field to the list of key fields.
[0108] In one aspect, as discussed above, if a field of the dataset includes personally identifiable information (PII), the subsetting rule generation module may generate subsetting rules configured to select a subset of data records of the dataset that do not include PII information. Alternatively or additionally, if a field of the dataset includes personally identifiable information (PII), the test dataset generation module may be further configured to apply a masking function to the PII to generate masked data and select a subset of data records of the dataset that include the masked data.
[0109] 5A-5B show processes 500a and 500b in which the test data set module 106 is configured to verify that the test data 422 properly represents real data for testing a given system, which may include validating the schema of the test data 422. For example, an application may expect certain types of data during operation. Thus, the test data should approximate the real data processed by the application. To generate test data that approximates the real data, the test processing module 405 receives (452) the data set 401 and selects (454) a field 418 and a value 420 for the field. The field 418 is labeled with a semantic label 428 called Social Security Number. The module 405 receives (456) the label and retrieves (458) an attribute 430 that describes the field 418. From the semantic label 428, the test processing module 405 determines which attribute 430 the SSN field is associated with. The attribute 430 may characterize the field in the real data. For example, real social security numbers are linked to real people, which may be represented in a user ID table. In this particular case, all real social security numbers are associated with real people, but not all real people have social security numbers. Test data generation module 408 is configured to generate test data tables that meet these metrics.
[0110] The processing module 405 retrieves (460) the schema data 409 from the test configuration data store 403. The schema data 409 may be determined by the dataset schema analysis module 110 (described with reference to FIGS. 7A-7B) during or after a semantic discovery process (described with reference to FIG. 68). The schema data 409 may indicate which fields are join keys in the dataset, which fields are foreign keys, etc. For example, the schema data 409 may include names of fields that are keys. In this manner, the test dataset module 106 is configured to generate test data suitable for referencing, as expected, to properly reference other tables in the test data. More specifically, if in the real data, a table with social security numbers includes a reference to a user ID table, the test dataset generation module is configured to generate a table of social security numbers with a field that includes a key that properly references an existing user ID table in the test data. When the test data is used by an application, the test data will approximate the real data expected by the application. A user testing an application can be confident that any errors in the results of processing the test data are the result of errors in the application itself, rather than errors in the test data.
[0111] FIG. 5B illustrates a process 500b for test data validation by test data validation module 417. Validation module 417 verifies whether test data 423 satisfies schema rules 409. Test data 423 includes tables 411 and 413 that have been updated from tables 402 and 403 to remove duplicate or incorrect values and records in the tables. For example, table 402 includes entries 402a-c, each of which includes a foreign key that references the primary key of a corresponding entry 403a-c in table 403. However, as shown in FIG. 5A, the primary key of table 403 has a duplicate entry for key "BBB". In addition, there is a missing user ID in SSN 444-44-4444 of entry 402a / 403a. Test data generation module 415 removes entries 402a and 403a from tables 402, 403 and modifies the key value of entry 403c to "CCC" instead of "BBB" so that the primary key requirements of test configuration data 407 (e.g., each primary key is unique) are satisfied. When verified by module 417, the primary key of table 413 is verified as valid and all entries in tables 411 and 413 are verified as containing valid user ID values. The verified test data 423 is stored (470) in test dataset data store 450.
[0112] 6A-6C, processes 600a, 600b, and 600c are shown for masking data by the data masking module 108. The data masking module 108 is configured to determine which fields of a dataset 501 (e.g., from the input data 112) should be masked, and if so, which masking function to apply to those fields. The masking functions are associated with the fields by the data masking module 108 using attributes 530 and semantic labels 528 of the dataset 501.
[0113] Generally, to generate masked data, an attribute analysis module 504 of the data masking module 108 receives (550) a data set 501 that includes a field (e.g., field 518) having a value (e.g., value 520). The attribute analysis module 504 selects a given field, such as field 518. The attribute analysis module then retrieves (554) an associated semantic label in the index 610 and determines which attribute 530 to retrieve (556) from the data dictionary database 614.
[0114] The semantic labels 528 are stored in a data dictionary that associates each available semantic label with its attributes 530. If a field is labeled, a semantic label 528 is selected from the data dictionary and the field is associated with the semantic label's attributes 530. For each semantic label 528 in the data dictionary, an index is stored that indicates the field(s), if any, associated with that semantic label in the dataset processed by the data processing device 102.
[0115] Each semantic label 528 is associated with one or more attributes 530 that indicate the semantic meaning of the semantic label. The attributes 530 of a semantic label 528 may include how a field with the semantic label should relate to another field with another particular semantic label. For example, the attributes 530 of a field labeled "Birth Date" may indicate that the value of the birth date of a given data entry should always be earlier in time than another value in a field labeled "Registration Date". The attributes 530 of a semantic label 528 may indicate what format the data values of the field are in and what values are allowed (e.g., the attributes may reference a lookup table that includes all possible values of the field). The attributes 530 may indicate how common the values of the field should be, the range of values expected for the field, and other such characteristics of the data values of the field.
[0116] The attributes indicate what the characteristics of the masked field should be. For example, the attributes may together indicate what real-world meaning the field has for the data. When masking data, the user may indicate what real-world data is relevant for masking. When a data set is received, the data masking module 108 may automatically select the fields relevant for masking and ignore non-relevant fields.
[0117] The data masking module 108 determines a masking function for a field based on the attributes 530 of the field. The masking function indicates whether all values of the field or a portion of the values should be masked for a given application. For example, a particular semantic label may be used to determine whether the value of the field contains PII or whether the field should be ignored during masking. For example, values of a field that contains a name may be scrambled, mixed so that they are associated with different indexes, or otherwise anonymized for subsequent applications.
[0118] FIG. 6B illustrates a process 600b in which the masking module 506 applies a masking function to a field of the dataset 501. When the attribute 530 is received (560), the masking module 506 is configured to obtain (562) a masking function based on the attribute. The attribute 530 value may indicate that the field 518 should be masked and how the field should be masked. For example, a list of masking functions may be referenced by the attribute or a specific masking function may be indicated. In some implementations, the attribute 530 may simply indicate that the data of the selected field contains PII, and the masking module 506 determines how to mask the value of the field. In some implementations, the masking function may be based on a group of fields, such that the masking function is applied to one or more of the group of fields when the fields are presented together. This may occur when PII may be revealed only when the fields are presented together, and not when any of the fields are presented individually.
[0119] The data masking module 108 may use one or more masking functions 514 to mask the data. The masking functions 514a-c may include shuffling the values in the field, replacing the values in the field with alternate values, applying variance to the numeric values in the field, encryption functions, removing masked values, or other masking functions. In some implementations, the masking functions may be combined with the aforementioned test data set generation and / or data quality processes such that the masked data is valid test data and / or still complies with one or more data quality rules for the field. The different requirements for these processes may be tied together using the semantic label 528 of the field.
[0120] The masking module 506 determines which masking function(s), if any, should be applied to the field (564). The selected function 514a and the selected field are stored (566) in a masking function data store 590. Thus, when an instance of a field 518 is received for masking, the masking application module 508 may determine which masking function to use for masking, or which of the masking functions have been used to unmask the data (if applicable).
[0121] 6C illustrates a masking application module 508 configured to mask or unmask received data according to a masking function associated with a field of the received dataset 501 during process 600c. The masking application module 508 is configured to receive (570) the dataset 501. The masking module 508 selects (572) a field (e.g., field 518) by its location 520 in the dataset 510. The module 508 looks up (574) a semantic label in the index 610 to determine which attribute 530 is associated with the field 518. The attribute 530 indicates which masking function is used, as represented in a masking function data store 590. The module 508 retrieves (576) masking function data 516 from the data store 590 and applies (578) the masking function to the field value of the field 518. For example, a field value 521 that is "555-55-5555" is transformed by the function F(x) into a masked value 522 that is "W2YSQP4LKED" (or another value depending on the masking function used). The module 508 stores 580 the masked result 524 of the masking in the output data store 114.
[0122] In one aspect, the data masking module 108 is configured to determine that a relationship exists between a field having a semantic label and a second field having a different semantic label. In response to determining that a relationship exists, the rule application module 408 executes a data masking function to convert a value in the second field to a masked value. In some implementations, a different function may be used to mask the second field than that used to mask the first field.
[0123] In one aspect, determining that a relationship exists includes determining that the first label and the second label are associated with a common data source. For example, the common data source may include a user profile. The relationship may indicate a dependency of a value of the second field on a value of the first field or a dependency of a value of the first field on a value of the second field. In some implementations, the relationship indicates a correlation between a first value of the first field and a second value of the second field. In yet another example, the relationship includes an arithmetic function. The masking module 508 may be configured to select a type of data masking function based on the type of the relationship. As previously mentioned, the type of data masking function may include one or more of a shuffle function, a data encryption, a character scramble, and a data substitution.
[0124] In one aspect, the module 508 may be configured to scan the dataset 501 to determine whether one or more particular values of at least one other field are converted to a masked value. In some implementations, the module 508 may be configured to select a masking function for a first field of the dataset that includes numeric values, and a second, different masking function is selected for a second field of the dataset that includes non-numeric values.
[0125] 7A-7B show processes 700a-b for determining a schema of a dataset 701 based on semantic labels associated with fields of the dataset. The dataset schema analysis module 110 is configured to determine what the schema of the dataset is. For example, the dataset schema analysis module 110 is configured to determine which fields are key values or indexes, how fields reference each other, etc.
[0126] In general, to determine the schema of a dataset, the attribute analysis module 704 receives a dataset 701 that includes one or more tables 701a-b and fields labeled with semantic labels. The dataset schema analysis module 110 determines, based on the semantic labels of the fields of the tables 701a-b, such as SSN field and field_index, including relationships between values of the fields. The schema of the dataset 701 may indicate which fields are indexes and which values reference other values in the dataset. This information may be used in downstream applications to merge datasets, transform datasets for storage in a data warehouse, etc. As mentioned above, the semantic labels are associated with one or more attributes in the data dictionary 614. The attributes 730 indicate what the characteristics of the field should be. For example, the attributes 730 may together indicate what real-world meaning the field has for the data. When determining the schema of the dataset, the user may indicate what real-world data is related to the schema. When a dataset is received, the dataset schema analysis module 110 may automatically select relevant fields as indexes and ignore non-relevant fields.
[0127] In one aspect, an analysis module 705 receives (702) a data record 701 that includes fields of a dataset. Each field typically includes a field name and one or more data values. For a particular field 718, the module 705 selects (704) the field and determines (706) a semantic label 728 associated with the field. In the case of a dataset, values of different fields may be linked by being in a common data record. A data record may be a row of a table in the dataset, or may simply be a collection of data values from one or more of the fields. The steps for determining what the semantic label 728 for a field is are described below in connection with FIG. 8.
[0128] The module 705 determines 708 attributes 730 of the field 718. The attributes 730 may indicate a relationship between the social security number field and the user ID field. The module 705 sends the discovered relationships in the dataset to the schema update module 508.
[0129] FIG. 7B illustrates a process 700b for determining or updating a schema of a dataset using a schema update module 707. The module 707 may update the values of the dataset to conform to the schema referenced in the attribute 730. In some implementations, the module 707 updates the schema describing a particular dataset 701 to explicitly include relationships discovered between its fields. The module 707 receives (712) the attributes 730 of the dataset 701 and determines (714) the relationships by scanning the fields based on the information provided by the attribute 730. For example, the module 707 may determine that in the data 701, the field_key of table 1 points to the field_index of table 2. The module 707 updates (716) the schema describing the dataset 701 to include this relationship with the schema data 735. For example, the schema data may indicate that "field_index of table 2 is the primary key. For table 2, field_key is a foreign key of table 1." The generated schema 735 is stored 721 in a schema data store 750. Downstream applications may access the data store 750 to use the schema data 735.
[0130] In one aspect, the schema update module 707 is configured to generate a dataflow graph based on the schema data. The dataflow graph may operate on the datasets based on relationships in the schema data 735. For example, the schema update module may be configured to generate a join function configured to join a first dataset to a second dataset based on a key value.
[0131] Referring to FIG. 8, a networked system 600 for discovering, classifying, and labeling data fields by analyzing data profiles generated from data of the data fields is shown. The networked system 600 includes an execution system 602, one or more data sources 612, a reference database 216, a development environment 620, and a production environment 614. The execution system 602 is configured to receive source data from data sources 612a, 612b (collectively data sources 612) in the networked system 600. The execution system 602 is configured to profile the source data received from the data sources 612 to generate data profiles representative of the source data of the data sources 612. The execution system 602 is configured to analyze the profile data to discover, classify, and label portions of the source data. More specifically, the execution system 602 uses the profile data to classify the portions of the source data. Classifying the source data includes associating a probability with the portion of the source data. The probability specifies the likelihood that the portion of the source data corresponds to a label recognized by the execution system 602. The execution system 602 is configured to tag portions of the source data with one or more labels, either automatically or in response to user input. The discovery, classification, and labeling of the source data may be repeated to refine the classification of the source data and increase the accuracy of the source data labeling. The source data labels include metadata associated with the source data. Once the source data discovery, classification, and labeling are complete, the labels are loaded into the production environment 614 for use by one or more downstream applications. The semantic discovery process is described in detail in U.S. patent application Ser. No. 16 / 794,361, entitled “Discovering a Semantic Meaning of Data Fields From Profile Data of the Data Fields,” filed Feb. 19, 2020, which is incorporated herein by reference in its entirety.
[0132] The source data of the data source(s) 612 may include several different types of data. In one example, the source data of the data source(s) 612 includes tables having data fields. The execution system 602 is configured to discover, classify, and label the data fields of the tables. For example, the execution system 602 analyzes the data content of each discovered field of the source data to determine what the data content of the data field represents. The execution system 602 classifies each data field by associating the data field with a known label (e.g., by assigning a probability value). The labeled data of the table may be output to a data store 614 accessible by other applications and systems to operate on the labeled data. The process of discovering, classifying, and labeling the data fields of the data table is described in more detail below. The data source 612 may include any type of computing system. For example, the data source 612 may include a mainframe, a database, unstructured data sourced from a third party, a data lake, a personal computer, a high-scale network, and the like.
[0133] In this disclosure, the process for discovering, classifying, and labeling data fields of a data table is used as an example to explain the functionality of the execution system 602 and the networked system 600. However, while the data fields are an example of what the execution system 602 is configured to discover, classify, and detect, the execution system 602 may operate on other types of data. For example, the execution system 602 receives application data from an application. The execution system 602 is configured to discover, classify, and label different data for the application. The data may include different files that are stored and accessed to operate the application. The execution system 602 may be used to discover PII stored by the application, discover malware, changes to application files, and the like. In another example, the execution system 602 may analyze files stored in a file system (e.g., on a personal computer). The execution system 602 may scan the file system to identify a specific subset of files defined by the user. For example, a user may want to remove work files from a home computer before reformatting the home computer. The execution system 602 may be configured to scan the file system of a home computer and tag all work files. The execution system 602 may be configured to label data with respect to data subject rights such as right to forget, data erasure, subject access request, data correction request, data suspension, data portability, and consent. Many other applications are possible.
[0134] To discover, classify, and label portions of source data (such as data fields), the execution system 602 is configured to access the reference database 216 for one or more files 618. The files 618 provide the execution system 602 with a context for performing source data discovery, classification, and labeling. In some implementations, the reference database 216 may store lookup tables that store relationships between values found in entries of data fields. For example, the data storage may include lookup tables that match codes to a glossary that may be referenced by the execution system 602 during source data discovery, classification, and labeling. The files 618 of the reference database 216 may include weight values used in classification. For example, the weight values may indicate to the execution system 602 the probability that two terms (e.g., business terms) are linked to each other for the source data 612 being labeled. These values may be generated during initial iterations of source data 618 discovery, classification, and labeling and may be updated during subsequent iterations, either by a user or automatically.
[0135] The files 618 may be defined prior to, during, or after discovery, classification, and labeling of source data by the execution system 602 in an iterative process. The development environment 620 of the networked system 600 may provide a means for a user to write to the reference database 216 or update the data storage files 618. For example, the development environment 620 may include a user interface that provides feedback to a user of the execution system 602. For example, the user interface of the development environment 620 may display a report showing how the execution system 602 is performing, such as how data fields are being labeled and what the probability of each classification is by the execution system 602. Examples of feedback provided to the user and the user interface are described in more detail below.
[0136] In general, the execution system 602 includes one or more processors configured to execute the logic of the profile data module 604, the classification module 605, the test module 606, the result validation module 608, and the load data module 660. The operations of each of the profile data module 604, the classification module 605, the test module 606, the result validation module 608, and the load data module 610 may be performed either in batch or real-time. Additionally, the execution system 602 may perform the operations of each of the modules 604, 605, 606, 608, 610 either substantially simultaneously or during different time periods. For example, in some implementations, the profile data module 604 first generates profile data representing a profile of source data from the data source 612. Later, once all data from the data sources 612 for a given time period has been profiled by the profile data module 604, the classification module 605, the testing module 606, the results validation module 608, and the load data module 610 may analyze the profile data to discover, classify, and label data fields of the source data, as described above in connection with Figures 2A-7B, and load the data into the reference database 216 for one or more downstream applications.
[0137] The profile data module 604 is configured to receive source data (e.g., tables, files, etc.) and generate a data profile for the source data. The profile data module 604 discovers fields (e.g., one or more data sets) in the source data. The profile data module 604 may discover fields by identifying rows in tables in the source data, detecting field names, referencing fields, or using any similar process. The profile data module 604 determines statistical attribute(s) of the data fields and generates profile data including those statistical attributes. The profile data identifies patterns in the source data. More specifically, the profile data includes statistics about values of data fields in tables of the source data. For example, the profile data may include information specifying whether data values of the data fields include numeric data, strings, etc. For example, the statistics about the data values may include maximum, minimum, standard deviation, average, etc. of values included in each of the data fields (if the data is numeric). In some implementations, the statistics about the data may include how many numbers or letters are in each entry of the data value. For example, the data profile may indicate that each data value in a data field contains seven (or ten) digits, providing a contextual clue that the data field contains a phone number. For example, the data profile may indicate that each entry in a data field contains a value from a small set of values that may be used by the test module 606 to trigger a comparison to a lookup table.
[0138] The profile data module 604 data ingestion includes analyzing the field names of the fields, the location of the fields within the table (or file in the file system), and analyzing the schema of the data. In other words, data ingestion occurs at the field level, the dataset level, and the schema level.
[0139] For the field level, the profile data module 604 analyzes the values of the fields and the entries of the fields to generate the profile data. The profile data module 604 may determine whether the values of the field or its entries are null, blank, valid for a particular data type, etc. The profile data may include statistics on the percentage of nulls, the percentage of blanks, and the percentage of values per field. The profile data module 604 may also generate data indicating the change in these percentages from a baseline percentage (which may be specified by the user through the development environment or may be automatically generated). In another example, the profile data may include an indication of whether the data of the entry is valid for the implied data type. For example, if a data field is recognized as being a string field, but date data is found, the data may be inferred to be invalid for the entry. In another example, the profile data may include an indication that the data of the entry is valid for a specified format (e.g., two decimal places are required, but no explicit type is specified). In some implementations, some of this functionality is performed by the test module 606 after the profile data is generated.
[0140] At the dataset level, the profile data module 604 may provide statistics linking a portion of the source data to the entire dataset of source data. For example, the profile data module 604 includes measures of natural key uniqueness and key cardinality. The profile data module 604 indicates whether there are duplicates in key values in the source data. The profile data module 604 indicates whether there are duplicates in approximate natural key matches. The profile data module 604 indicates a count of records that have one or more of these characteristics. In some implementations, this information is determined by the result validation module 608, for example, after the fields have been determined to be key values.
[0141] At the schema level, the profile data module 604 is configured to determine statistics of data fields for the source data over time. For example, the profile data module 604 detects whether any columns have been added or removed in the new version of the source data. The profile data module 604 detects delimited fields. In some implementations, the profile data module 604 performs a lineage count to determine whether any records are missing from a previous version of the source data. Other schema evolutions may be detected. In some implementations, this function is performed by the result validation module 608 after the data fields are found in the profile data.
[0142] In some implementations, the profile data may be improved if contextual data is available in the reference database 216. For example, if a user specifies the format of one or more data fields of the source data, the profile data may generate additional statistical information about those data fields. This may be part of an iterative process. For example, if a data field is found in the first iteration (but classification fails for that iteration), the user may find the data content of the data field and provide additional information to the execution system 602 for analysis by the profile data module 604 (and other data modules). For example, if a user specifies that all data fields should contain only numeric data, the profile data module 604 may quickly determine which data is invalid and provide statistical measurements of that information in the data profile.
[0143] The profile data module 604 generates the profile data from the source data by scanning an entire dataset of the source data before generating the profile data. The profile data module 604 is not required to copy the entire dataset from the source data, although this may be performed to generate the profile data. Because the datasets can be large (e.g., many gigabytes in size, or even many terabytes in size), it may be impractical to extensively copy the data to a local system for analysis. Generally, the profile data module 604 scans the source data during periods of low activity to the data sources.
[0144] The classification module 605 is configured to receive the profile data and to receive source data that includes fields. For each field of the source data, the classification module 605 is configured to look up a label index that includes existing labels for the found fields in the source data (e.g., from the reference database 216). These labels may be from a previous iteration of the labeling process, or the label index (e.g., an initial label index) may be manually generated, imported, or otherwise obtained. However, the label index does not need to exist prior to running the labeling process.
[0145] For a field, the classification module determines whether the field is already associated with a label in the label index. If the field is not yet labeled or if no label index exists, the classification module 605 determines that no label was found for the field. If necessary, the classification module 605 generates a new label index to add to the semantic label. The classification module 605 performs a classification of the field data type. The classification may be based on the profile data of the field, the field name, and the value of the field. For example, the classification module 605 may determine that the field is a "date" field. In some implementations, the classification module 605 may determine that the field is a numeric field, a string field, or other such data type. Although the classification module 605 determines the data type of the field, the semantic meaning of the field (and therefore the semantic label) is determined by the testing module 606, as described below. For example, the classification module 605 may determine that the field is a date field, and the testing module 606 determines that the date in the date field is the customer's "birth date." In another example, the testing module 606 determines that a numeric field is a "user ID" field. Many other such examples are possible. The classification module 605 generates classified data that is sent to the testing module 606 as a classification output to find semantic meaning. The classified data is tagged with a data type determined by the classification module 605.
[0146] If a label is found, the classification module generates label data that may be passed to the testing module 606 and the results validation module 608. The label data informs the testing module 606 and the results validation module 608 that the field has already been labeled. This may be used to weight the classifiers applied to the field or suggest a label. However, the field may be reclassified by the classification module 605 and retested by the testing module 606 to verify that the label is accurate and potentially update the label attributes of that label in the data dictionary database 614. For example, if the testing module 606 finds that an existing label is not a match, a new label may be suggested. If the user selects an existing label (e.g., one presented by the results validation module 608), the label data where the label attributes of the label in the data dictionary database 614 do not represent the data value that is labeled by that label may be used as a flag to the execution system 602 and these attributes may be updated.
[0147] In some implementations, the classification module 605 may be updated through multiple iterations using machine learning approaches. For example, if a discovered field is already labeled, the classifier may determine that further classification may be avoided. In another example, the score applied to the field may be updated based on additional data received from the data source 612 or from user input. The classification module 605 may determine that a different test(s) should be performed by the test module 608 compared to a previous iteration. For example, if the fingerprint analysis was inconclusive in a previous iteration, the classifier may determine that this test should be avoided (or replaced with another test) in a subsequent iteration.
[0148] The testing module 606 is configured to classify the source data of the data set using statistics of the profile data and using additional context information provided in the reference database 216 (such as the lookup table 442). The classification output of the classification module 605 is used to provide a data type context for each field, and existing labels for the field (if any). The testing module 606 is configured to receive candidate labels 440 from the data dictionary database 614. The candidate labels are a library of existing labels, each associated with one or more attributes that identify the semantic meaning (e.g., to a downstream application or user) of the data field. As described above, the attributes associated with each label in the data dictionary database 614 provide the semantic meaning of the label. The testing module 606 determines which of those candidate labels is most closely associated with the attributes of the data field determined by the data profile, the field name, and the data value of the field.
[0149] The test module 606 includes multiple tests (or classifiers), each performed by a different test module, to associate one or more labels with each field being tested. For example, after the fields of a dataset are discovered by the profile data module 604, the test module determines how closely the attributes of the field correspond to the attributes of each of the candidate labels. Each test uses different data and approaches to propose one or more labels. Because different tests use different approaches to classification, the proposed labels from each test may not necessarily be the same. The proposed labels are validated in a result validation module 608, described later. Because there is no single factor (e.g., the field name or the inclusion of a particular value or set of values in a field) that is trusted as indicating the semantic meaning of a field, using different tests to identify the semantic meaning of a field results in a much more robust determination of the semantic meaning than using any single test.
[0150] Testing of the data in each data field may include determining one or more of the population level of the data in the dataset (how frequently a value occurs within the data field), the discovered data type (e.g., dates or numbers are kept as strings), the domain of the data field, finding key fields, determining whether a field is a single word or a descriptive field, etc. For example, categorizing the data may include date and time analysis. Thus, the testing module 606 receives the profile data from the profile data module 604 and performs a series of statistical-based functions to identify, classify, and test the details of the field against a set of known label types. The rules of testing vary depending on the data type that may be identified in the classification output by the classification module 605 or possibly included in the profile data generated by the profile data module 604.
[0151] The test module 606 is configured to perform a number of different classification tests on the field names and entries in the data fields to determine how to label the data fields. The test module 606 receives the classification output, the candidate labels, and any reference data from the reference database 216 and provides these data for testing. The tests include pattern analysis, business term analysis, fingerprint analysis, and keyword search. As mentioned above, a table with field names and field data is described as an example, but the tests of the test module 606 may be performed on other data types. Examples of classification tests performed on the data fields and data entries of the source data may include fuzzy matching schemes, column data schemes, business term matching schemes, keyword matching, fingerprinting schemes (e.g., context data lookup), pattern matching, and corroboration.
[0152] The fuzzy matching logic of the test module 606 includes logic for fuzzy matching of field names from a dictionary of terms. In general, fuzzy matching is configured to find matches between field names and terms in the dictionary if an exact match cannot be found. The system finds dictionary terms that are not exact. For example, if the test module 606 sets the fuzzy match threshold to a percentage value less than 100, the dictionary database (e.g., database 216) will return any matches in its memory that correspond to (e.g., are greater than) that percentage. In some implementations, a probability score is assigned to each match. The probability score can be presented to a user.
[0153] The business term analysis of the test module 606 includes logic to match data field names to known business terms in a glossary. In general, business terms may be placed into different contexts or business term groups. The test module 606 performs checks to find occurrences of a particular word or term within another word or term. This may include referencing a particular specification. For example, the test module 606 receives a specification indicating different abbreviations for a street name, such as "st", "ln", "ave", "pl", "ct", etc. The test module 606 performs checks to determine whether any of those abbreviations are included within the data field. If one or more of the data elements of the specification are included in the data field, the test module 606 determines that the data field contains a street name. This information may be used by itself, such as to determine that the data field contains a street name and therefore should be labeled as such. This information may also indicate that the data field contains other information, such as an address. The test module 606 uses the determination that a street name is present in the column in addition to other data to determine whether the data field contains an address, only a street name, or some other data. In another example, the phrase "date of birth" may be recognized and associated with such a label. Other matching strategies may include matching using fuzzy matching, synonyms, etc. In general, the test module 606 associates a probability score with each match. A user may generate a specification for configuring this logic, such as through a development environment.
[0154] The pattern matching analysis of the test module 606 uses the data content of the field (in addition to or instead of the field name). The type of pattern matching used for pattern matching may be determined by the test module 606 based on the results of the classification data. For example, the classification data may identify the data type of the field, such as that the data is numeric. In this example, the profile data also indicates that each entry in the data field is 13-18 characters in length. This may indicate to the test module 606 that the data field may be a credit card number data field. To confirm this, one or more pattern tests may be performed by the test module 606 on the data of the suspect data field. For example, the first 4-6 digits of each entry may be checked against a table of issuer codes. The final digit may include a check digit defined by the Luhn test. If a threshold percentage of the entries in the data field meet each of these patterns, the test module 606 may conclude that the field holds a credit card number and associate the field name with an appropriate label and probability. In the case of pattern matching logic, both the data of a given field itself and the patterns of data within the field (e.g., as identified in profile data) can be used to discern which pattern tests to perform and which labels to apply to a given data field.
[0155] The test module 606 determines whether to perform a pattern analysis test on the source data 612. This decision may be the result of classification data. Pattern match analysis uses profile data to determine whether the source data 612 fits a predefined pattern that indicates a candidate field label. For example, if the data of a field has a particular length and composition, the pattern match analysis identifies a corresponding candidate label. The pattern score applied to the label may be a function of how closely the identified pattern matches the predefined pattern, how distinctive the pattern is, or any number of factors. The weight may be adjusted as a function of the distinctiveness of the pattern. For example, a very rare pattern may correspond to a higher weight value. If the values of the discovered field closely match the pattern (over all or part of the values), the score may be higher than if only a few values match the pattern.
[0156] The test module 606 may include a keyword search test. Keyword tests (similar to business term matching tests) include data-based tests that include searching for specific keywords within a data field. For example, to find an address, the test module 606 searches for common address words such as "street," "road," and "boulevard." The tests may be extended by the user, who may add new keyword files to the reference database 216 specifications. Keyword tests may be used to find words or parts of words within phrases, such as addresses and company names, where there is a limited set of common words that may uniquely identify the data field.
[0157] The test module 606 may determine whether to perform keyword analysis on the field names. In this example, the test module 606 performs a keyword matching test if some fields are not yet associated with a label value. The field names (and possibly the field values) are checked to see if they contain one or more keywords from the table, which may help the test module 606 in associating a particular label with a field. The test module 606 performs a keyword search and generates a keyword search score.
[0158] The test module 606 may include fingerprint tests to analyze data values of the source data. Fingerprinting logic generally includes a data lookup across data fields. Fingerprinting logic includes tests based on data values. Fingerprinting logic for a data field includes comparing a known list (e.g., from the reference database 216) to the data of the data field to determine whether the data of the data field correlates with the data of the list. For example, data from a data field may be compared to a list of first names, a list of state names, a list of city names, etc. Fingerprints (known data lists) are generally representative rather than comprehensive. In other words, a fingerprint need not include an example of each and every value that is part of the set of fingerprints. In general, a fingerprint may include selected exemplary values that represent approximately the most common values that should appear in data entries for the data field. For example, a fingerprint does not require every possible first name in the United States for a table of first names, rather a selected group of the most common names may suffice. For example, the top 100 names generally yield enough data to show a correlation between the data fields and the data fingerprint. The data fingerprint may be generated from master data. For example, the system may include 50-100 of the most populous U.S. cities to check if the data fields correspond to the city names. Users may add new domains to the specification to increase the capabilities of the fingerprint test for a particular system.
[0159] The test module 606 determines whether to check a fingerprint table for the field. Fingerprinting can work well in situations where a field has a long list of possible values, but some of the values are expected to be more common than others. For example, city names, street names, and even first and last names are good candidates for fingerprint analysis. The test module 606 performs a fingerprint search and generates a fingerprint score.
[0160] The testing module 606 determines whether to perform a business term analysis. Business term analysis can be useful when there are many unique terms in the source data 612 that can correspond to the business terms for labeling the fields. If business analysis is to be performed, the testing module 606 performs the business term analysis by comparing the field names to the business terms to find matches and generate labels and their associated probabilities. The results of the business term analysis are associated with weights and scores, similar to the pattern matching analysis.
[0161] The test module 606 can be configured to compare results across tests and refine the results using validation logic. For example, validation logic can be used to verify a match of a business term with another classification test. For example, a test that specifies that a data field contains a maiden name value should also pass a classification test that is a last name field.
[0162] The testing module 606 is configured to execute machine learning logic that follows the classifications of previous data sets (e.g., from a particular source) or previous iterations of the same data set to govern which tests are selected for subsequent iterations and how probability values for those subsequent iterations are determined. The machine learning logic may be trained on the data set and apply weights developed using the training data to classify new data in the data set.
[0163] Each of the tests may output one or more proposed labels for the analyzed data field. The tests need not be a match. Each proposed label may be associated with a score (not shown) and a weight value (not shown). The score and weight of each label may be used by the result validation module 608 to suggest a particular one of the proposed labels as identifying the semantic meaning of the field, and to categorize the labels (or bucket the labels). The categories (described below) indicate how many matches there are between the tests, thus suggesting the reliability of the proposed label as identifying the semantic meaning of the data in the field.
[0164] To perform the tests, the test module 606 receives the profile data, classification data, and other reference data and determines whether each test is to be performed. For example, if the type of data being received is not formatted for a particular test, the test may not be performed. Any combination of tests may be performed. The test module determines whether to perform pattern analysis, whether to perform business term analysis, whether to perform fingerprint analysis, and whether to perform keyword search. Each test generates one or more suggested labels and outputs the suggested labels. The test results, including all the suggested labels, are combined and sent to the result validation module 608 as the test results.
[0165] In some implementations, subsequent testing may be performed if results have not yet been found from earlier testing. In some implementations, the testing module 606 prepares the reference data by retrieving data from the reference database 216 based on the source data 612 to be analyzed. For example, the testing module 606 may retrieve data from the reference database 216 based on the location of the source data 612, table names in the source data, user input, etc. The testing module 606 may determine which lookup tables are accessed and checked against the respective fields of the source data. The selection of the lookup may be performed based on the profile data received from the profile data module 604.
[0166] In some implementations, the testing module 606 determines whether to perform a schema analysis. Schema analysis can be used to analyze the source data 612 over time and as a whole. For example, if fields have been missing, added, removed, etc., the information can be used to label other data fields.
[0167] In some implementations, as each test is completed, the test module 606 combines the associated scores to generate a final score, which is displayed along with the associated proposed labels to which the scores apply. In some implementations, the upstream scores are not distinct from one another as they impact downstream scores, but represent scores that are updated each time an analysis is performed. In some implementations, each proposed label and its score are reported separately to the result validation module 608, which then determines how to classify the test results 306.
[0168] In some implementations, the ordering of the tests may be such that the more processing-intensive tests are scheduled last. The more time-intensive tests may be a last resort if other tests fail. Sequencing the tests in this manner may reduce processing time for the execution system 602 to label the source data 612.
[0169] Once the testing module 606 has performed a classification test of the source data and the probability values determined for the labels of the data fields of the source data, the result validation module 608 performs a check to determine whether the classified results indicate a high degree of confidence or whether further testing should be performed.
[0170] The result corroboration module 608 receives the test results of the different tests performed on the source data by the test module 606 and determines whether the results corroborate each other or contradict each other. The results of the tests of the test module 606 are divided into several classification categories by the result corroboration module 608. The categories include a match category, a recommendation category, a research category, and an ignore category. Each of the categories indicates the similarity between the label proposals in the test results. For example, if all the label proposals are identical, the test results have a high level of similarity. If the respective label proposals are different, the test results have a low level of similarity. The similarity may be more than just a voting mechanism by the respective tests. Each label proposal is associated with a weighted score value. If a label proposal of a test does not match the other label proposals, but is associated with a relatively high score value and a large weight compared to the other proposed labels of the other tests, the similarity may be identified as low even though three out of four tests match.
[0171] Depending on the identified category, the result validation module 608 may either automatically validate the label when identifying the semantic meaning of the field, or prompt the user to manually validate the label. As described later, validation may be performed via a client device in a user interface.
[0172] The match category indicates the highest confidence level for the labels (e.g., match 100). In some implementations, the matched labels are automatically included in the metadata associated with the source data. However, the result validation module 608 may still be configured to present the results to a user for manual verification. In general, the match category indicates that all tests performed proposed the same labels. In some implementations, the match category may be selected when all of the labels do not match, but any that do not match are below a score threshold, indicating a general agreement between the tests.
[0173] The recommended category generally indicates that at least one label has a high quality association with the data field. However, the recommended labels generally fall below a threshold level set for maximum confidence, and further validation is preferred. In some implementations, the recommended category indicates several high quality labels associated with the data field. In some implementations, the result validation module 608 ranks the recommended labels to create a list, each with a probability score, which may aid the user in selecting the best label(s) for the data field.
[0174] The Investigation category indicates values or data fields that have some interesting statistical properties that do not pass any particular test. For example, a data field may appear to be meaningful but none of the tests suggest a label, or they may suggest one but the suggested label scores below a given threshold. For example, a data field may include a profile attribute that indicates that the data field is an important domain or field in the source data, but no label is recommended (or is recommended above a threshold probability). In general, such results indicate that additional rules should be added to the test (e.g., the test should be expanded or modified in some way) and re-run.
[0175] The Ignored category indicates that the data field is either designated as not of interest or that the field does not trigger a test and does not display a profile attribute that suggests the data field is important. In general, the Ignored category is indicated when the received data has errors or does not have a recognizable pattern. The Ignored category generally indicates that the field contains miscellaneous data with no particular structure, and may also indicate that a new label should be defined.
[0176] In general, the result validation module 608 performs a process to categorize (e.g., bucket) the test results. The result validation module 608 compares the test results from the fields. For each field, the result validation module assigns the test results to a category based on the level of similarity.
[0177] In addition to generating a classification file that specifies the classification categories, the results validation module 608 is configured to generate other files, including a profile comments file, which is a file that describes the results of the classification analysis process, and a summary of discovery results, which describes the combined output from the business term matching process and the fingerprinting process.
[0178] The results validation module 608 is configured to determine whether an outlier of the data values exists based on the aggregation and ranges of the respective data fields. An outlier includes a data value that does not fit the identified relationships or format of the data fields. The results validation module 608 determines that the outlier is determined based on the clustering and prediction of relationships from the classification of the testing module 606.
[0179] The above process may be iterated to refine the classification and allow the user to update the classification tests to obtain better results. As mentioned above, in some implementations, machine learning logic may be used to train a classifier(s) during each iteration to facilitate this process. Generally, once profile data is generated by the profile data module 604, the process of the test module 606 and result validation module 608 is repeated, and new profile data does not need to be repeatedly generated unless the source data itself is updated.
[0180] Once the profile data module 604, classification module 605, test module 606, and result validation module 608 have generated labels for each of the data fields, the load data module 610 may load the metadata, including the label index, into the reference database 216. The load data module 610 executes a process to update the label index and load the data into the reference database 216. The load data module 610 receives the field names and proposed labels for the fields, verified either manually or automatically. The load data module 610 combines the field names and the proposed labels. The load data module updates the label index by associating the labels with the location of the fields in the dataset. The load data module combines the labels of the dataset being analyzed into a label index that can be referenced for the dataset by the execution system 602 and by downstream applications.
[0181] In general, the reference database 216 may be accessed by one or more downstream computing systems for a variety of applications. For example, the generated dataset labels may be used for data quality enforcement, personal data anonymization, data masking, (PII) reporting, study data management, dataset annotation, etc.
[0182] The load data module 610 is configured to package the metadata and source data into a package that can be used by one or more other computing systems. For example, once the profile data is generated, the operations of the classification module 605, the testing module 606, and the result validation module 608 can each be configured to run multiple instances of their processes in parallel on different partitions of the source data. For example, if the source data includes multiple tables, the source data can be partitioned by table. The testing module 606 and the result validation module 608 can run instances of their logical processes on multiple tables simultaneously to improve the throughput of the processes of the execution system 602. Once the source data is labeled, the load data module 610 can be configured to merge the partitions together and store the labeled source data in the reference database 216.
[0183] 9-12 show flow diagrams each including an exemplary process. FIG. 9 shows a process 900 for determining data quality rules for values in one or more datasets. The process 900 may be implemented by a data processing system as described above. The process 900 includes receiving, by the data processing system, one or more datasets (902), where the one or more datasets include fields, where the fields store values. The process 900 includes profiling, by the data processing system, values stored in the fields included in the one or more datasets (904). The process includes applying, by the data processing system, one or more classifiers to the profiled values (906). The process 900 includes identifying one or more label proposals that identify a semantic meaning of the field (908), where each of the one or more label proposals has a calculated confidence level. The process 900 includes labeling, by the field (910), where the label proposals have a calculated confidence level that meets a threshold level. The process 900 includes determining (912) a profile for the field based on the label proposals labeling the field, the profile representing one or more characteristics of values included in the field with the label proposals, and determining (914) a data quality rule for the field of the dataset based on the determined profile.
[0184] FIG. 10 illustrates a process 1000 for selecting test data to trigger execution of processing rules during testing of a data processing application. The process 1000 may be implemented by a data processing system as described above. The process 1000 includes receiving, by the data processing system, one or more data sets (1002), the one or more data sets including fields, the fields storing values. The process 1000 includes profiling, by the data processing system, values stored in the fields included in the one or more data sets (1004). The process includes applying, by the data processing system, one or more classifiers to the profiled values (1006). The process 1000 includes identifying (1008) one or more label proposals that identify a semantic meaning of the field, each of the one or more label proposals having a calculated confidence level, labeling the field with a label proposal having a calculated confidence level that meets a threshold level. The process 1000 includes determining (1010) a subsetting rule based on the label proposals labeling the field. The process 1000 includes selecting 1012 a subset of data records from the dataset according to subsetting rules, where the selection of the subset is based on label suggestions for labeling fields of the dataset, and providing 1014 the selected subset to a data processing application for testing of the data processing application.
[0185] FIG. 11 illustrates a process 1100 for masking data in a data processing application. The process 1100 may be implemented by a data processing system as described above. The process 1100 includes receiving, by the data processing system, one or more data sets (1102), the one or more data sets including fields, the fields storing values. The process 1100 includes profiling, by the data processing system, values stored in the fields included in the one or more data sets (1104). The process includes applying, by the data processing system, one or more classifiers to the profiled values (1106). The process 1100 includes identifying, by the data processing system, one or more label proposals that identify a semantic meaning of the field (1108), each of the one or more label proposals having a calculated confidence level, and labeling the field with a label proposal having a calculated confidence level that meets a threshold level. The process 1100 includes determining, based on the label proposals, that the field of the data set represents sensitive data (1110). In response to this determination, the process 1100 includes performing (1112) a data masking function to convert the value containing the sensitive data in the field into a masked value.
[0186] FIG. 12 illustrates a process 1200 for determining a schema of a dataset. The process 1200 may be implemented by a data processing system as described above. The process 1200 includes receiving, by the data processing system, one or more datasets (1202), the one or more datasets including fields, the fields storing values. The process 1200 includes profiling, by the data processing system, values stored in the fields included in the one or more datasets (1204). The process includes applying, by the data processing system, one or more classifiers to the profiled values (1206). The process 1200 includes identifying (1208) one or more label proposals that identify a semantic meaning of the field, each of the one or more label proposals having a calculated confidence level, and labeling the field with a label proposal having a calculated confidence level that meets a threshold level. The process 1200 includes determining (1210) one or more schema features of values included in the field having the label proposal based on the label proposals labeling the field. The process 1200 includes determining (1212) that a first field having a first label suggestion includes a key value that is referenced by a value of a second field having a second label suggestion based on the one or more schema features, and in response to the determination, updating (1214) schema data describing the dataset to reference that the first field includes a key value that is referenced by the value of the second field.
[0187] Some implementations of the subject matter and operations described herein can be implemented in digital electronic circuitry, including the structures disclosed herein and their structural equivalents, or in computer software, firmware, or hardware, or in one or more combinations thereof. For example, in some implementations, the modules of data processing device 102 can be implemented using digital electronic circuitry, or in computer software, firmware, or hardware, or in one or more combinations thereof. In another example, processes 900, 1000, 1100, and 1200 can be implemented using digital electronic circuitry, or in computer software, firmware, or hardware, or in one or more combinations thereof.
[0188] Some implementations described herein (e.g., data quality rules module 104, test data set module 106, data masking module 108, dataset schema analysis module 110, etc.) can be implemented as one or more groups or modules of digital electronic circuitry, computer software, firmware, or hardware, or in one or more combinations thereof. Although different modules can be used, each module need not be separate, and multiple modules can be implemented in the same digital electronic circuitry, computer software, firmware, or hardware, or in a combination thereof.
[0189] Some implementations described herein can be implemented as one or more computer programs, i.e., one or more modules of computer program instructions encoded on a computer storage medium for execution by or for controlling the operation of a data processing apparatus. A computer storage medium can be or be included in a computer-readable storage device, a computer-readable storage substrate, a random access or serial access memory array or device, or one or more combinations thereof. Furthermore, a computer storage medium is not a propagating signal, but a computer storage medium can be the source or target of computer program instructions encoded in an artificially generated propagating signal. A computer storage medium can also be or be included in one or more separate physical components or media (e.g., multiple CDs, disks, or other storage devices).
[0190] The term "data processing apparatus" encompasses all kinds of devices, devices, and machines for processing data, including, by way of example, a programmable processor, a computer, a system on a chip, or a plurality or combination of the above. In some implementations, the data quality rules module 104 and / or the data structure module 106 comprise a data processing apparatus as described herein. The apparatus may include special purpose logic circuitry, such as a field programmable gate array (FPGA) or an application specific integrated circuit (ASIC). In addition to hardware, the apparatus may also include code that creates an execution environment for the computer program in question, such as code that configures a processor firmware, a protocol stack, a database management system, an operating system, a cross-platform runtime environment, a virtual machine, or one or more combinations thereof. The apparatus and execution environment may implement a variety of different computing model infrastructures, such as web services, distributed computing, and grid computing infrastructures.
[0191] A computer program (also known as a program, software, software application, script, or code) can be written in any form of programming language, including compiled or interpreted languages, declarative or procedural languages. A computer program may or may not correspond to a file in a file system. A program can be stored in part of a file that holds other programs or data (e.g., one or more scripts stored in a markup language document), in a single file dedicated to the program in question, or in several cooperating files (e.g., files that store one or more modules, subprograms, or portions of code). A computer program can be deployed to run on one computer, or on several computers located at one site or distributed across several sites and interconnected by a communication network.
[0192] Some of the processes and logic flows described herein may be performed by one or more programmable processors executing one or more computer programs to perform operations by manipulating input data to generate output. The processes and logic flows may also be performed by, and an apparatus may be implemented as, special purpose logic circuitry, such as, for example, an FPGA (field programmable gate array) or an ASIC (application specific integrated circuit).
[0193] Processors suitable for executing computer programs include, for example, both general purpose and special purpose microprocessors, as well as processors of any kind of digital computer. Typically, a processor will receive instructions and data from a read-only memory or a random access memory, or both. A computer includes a processor for performing operations according to the instructions, and one or more memory devices for storing instructions and data. A computer may also include, or be operatively coupled to receive data from, transfer data to, or both of, one or more mass storage devices, such as magnetic, magneto-optical, or optical disks, for storing data. However, a computer need not have such devices. Apparatuses suitable for storing computer program instructions and data include all forms of non-volatile memory, media, and memory devices, including, by way of example, semiconductor memory devices (e.g., EPROM, EEPROM, flash memory devices, etc.), magnetic disks (e.g., internal hard disks, removable disks, etc.), magneto-optical disks, and CD-ROM and DVD-ROM disks. The processor and memory may be supplemented by, or incorporated in, special purpose logic circuitry.
[0194] To provide for interaction with a user, operations may be performed on a computer having a display device (e.g., a monitor or another type of display device) for displaying information to the user, and a keyboard and pointing device (e.g., a mouse, trackball, tablet, touch-sensitive screen, or another type of pointing device) by which the user can provide input to the computer. Other types of devices may also be used to provide interaction with the user. For example, feedback provided to the user may be any form of sensory feedback, such as visual feedback, auditory feedback, or haptic feedback, and input from the user may be received in any form, including acoustic, speech, or tactile input. Additionally, the computer may interact with the user by sending documents to and receiving documents from a device used by the user, e.g., by sending a web page to a web browser on the user's client device in response to a request received from the web browser.
[0195] A computer system may include a single computing device or multiple computers operating in close proximity or generally remotely from each other and typically interacting through a communications network. Examples of communications networks include local area networks ("LANs") and wide area networks ("WANs"), internetworks (e.g., the Internet), networks including satellite links, and peer-to-peer networks (e.g., ad hoc peer-to-peer networks). The relationship of client and server may arise by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
[0196] An exemplary computer system includes a processor, memory, storage devices, and input / output devices. Each of the components may be interconnected, for example, by a system bus. The processor may process instructions for execution within the system. In some implementations, the processor is a single-threaded processor, a multi-threaded processor, or another type of processor. The processor may process instructions stored in the memory or storage devices. The memory and storage devices may store information within the system.
[0197] The input / output devices provide input / output operations to the system. In some implementations, the input / output devices may include one or more of a network interface device, such as an Ethernet card, a serial communication device, such as an RS-232 port, and / or a wireless interface device, such as an 802.11 card, a 3G wireless modem, a 4G wireless modem, a 5G wireless modem, etc. In some implementations, the input / output devices may include a driver device configured to receive input data and send output data to other input / output devices, such as keyboards, printers, and display devices. In some implementations, mobile computing devices, mobile communication devices, and other devices may be used.
[0198] Although this specification contains many details, these should not be construed as limitations on the scope of what may be claimed, but rather as descriptions of features specific to particular examples. Certain features described in this specification in the context of separate embodiments may also be combined. Conversely, various features that are described in the context of a single embodiment may also be implemented in multiple embodiments separately or in any suitable subcombination.
[0199] Although several embodiments have been described, it will be understood that various modifications can be made without departing from the spirit and scope of the data processing system described herein. Accordingly, other embodiments are within the scope of the following claims.
Claims
1. 1. A method for determining data quality rules for values in a field of a data record in a set of data records based on a label associated with the field, the label indicating a characteristic of the value of the field, the method being implemented by a data processing system, comprising: deriving a label index that associates labels with a set of one or more fields in a data record, the labels identifying a type of information expected in each field of the set of one or more fields; accessing a data dictionary that associates the type of information indicated by the label with a set of attribute values that represent requirements for values of the one or more fields associated with the label, the requirements including logical or syntactic characteristics of the values of the one or more fields; For a particular data record field, identifying a particular label associated with the field of the particular data record by accessing the label index; retrieving an attribute value for the particular label from the data dictionary, the attribute value specifying a particular requirement for the field; generating data quality rules, the data quality rules, when executed, Verifying whether the value of the field satisfies the specific requirement represented by the attribute value; and configured to generate output data indicative of whether the particular requirement has been met.
2. The data quality rules include: the allowable deviation of the value in the field from the requirement; One or more of the permitted values in said field; and The method of claim 1 , further comprising indicating one or more of one or more prohibited values in the field.
3. The method of claim 2 , wherein the one or more allowed values or the one or more forbidden values in the field are associated with a field name of the field.
4. 4. The method of claim 2 or 3, wherein the field is a first field, and the one or more allowed values or the one or more forbidden values in the field are determined based on a value in a second field in the particular data record, the second field being linked to the first field of the particular data record.
5. The method of any one of claims 2 to 4, wherein the one or more allowed values or the one or more forbidden values are based on a combination of the value in the second field and the value in the first field.
6. The method of any one of claims 2 to 5, wherein the one or more allowed values correspond to values that satisfy a numerical function, and the one or more forbidden values correspond to values that do not satisfy the numerical function.
7. the field is a first field, the data record includes a second field, the data quality rule is a first data quality rule, and the method further comprises: determining that a relationship exists between the first field and the second field based on the attribute value of the particular label; and generating a second data quality rule for the second field based on the relationship between the second field and the first field.
8. The method of claim 7 , wherein the relationship indicates a dependency of a value of the second field on a value of the first field or a dependency of the value of the first field on the value of the second field.
9. The method of claim 7 or 8, wherein the relationship indicates a correlation between values of the first field and values of the second field.
10. The method of any one of claims 7 to 9, further comprising obtaining validation data for validating said relationship between the respective values of said first field and said second field.
11. The method according to any one of claims 7 to 10, wherein the relationship is verified for a threshold number of values of the first field and the second field.
12. The method of any one of claims 7 to 11, wherein the second data quality rule is configured to enforce a constraint on a value of the second field based on a value of the first field.
13. 13. The method of claim 7, wherein determining that the relationship exists between the first field and the second field comprises determining that a value of the second field comprises a key value referenced by a value of the first field, and the data quality rules are configured to require that each value of the second field is a valid key value.
14. 14. The method of claim 7, wherein the first field and the second field each contain a numerical value, and determining that the relationship exists between the first field and the second field comprises determining a numerical function that links values of the first field to values of the second field.
15. 15. The method of claim 7, wherein determining that the relationship exists between the first field and the second field comprises using at least one classifier constructed by a machine learning process.
16. determining that the attribute value associated with the particular label indicates that the field contains a primary key value for the particular data record; and configuring a data quality rule to require that said primary key values are each unique within said field.
17. 17. The method of claim 1, wherein the attribute value of the particular label represents at least one of the average of the values in the field, the maximum length of the values, the minimum length of the values, the data type of the values, and the format of the values.
18. 18. The method of any one of claims 1 to 17, wherein the particular data record is a first data record, and the method comprises applying the data quality rule to another field associated with the particular label in a second data record that is different from the first data record.
19. The method according to any one of claims 1 to 18, wherein the method comprises storing data associating the data quality rule and the particular label.
20. generating data for requesting approval of said data quality rules; The method of any preceding claim, further comprising: approving the data quality rule in response to obtaining approval data indicating approval of the data quality rule.
21. Generating the data quality rules includes: determining a historical trend of values in the field; and generating requirements based on the historical trends of the values in the field.
22. Generating the data quality rules for the fields includes: identifying a historical average of values in the field; and generating requirements based on the historical average of the values in the field.
23. 1. A method for selecting test data to trigger execution of a processing rule during testing of a data processing application, the method comprising: deriving a label index that associates labels with a set of one or more fields in a data record, the labels identifying a type of information expected in each field of the set of one or more fields; accessing a data dictionary that associates the type of information indicated by the label with a set of attribute values that represent requirements for values of the one or more fields associated with the label, the requirements including logical or syntactic characteristics of the values of the one or more fields; For a particular data record field, identifying a particular label associated with the field of the particular data record by accessing the label index; retrieving an attribute value for the particular label from the data dictionary, the attribute value specifying a particular requirement for the field; generating a subsetting rule that, when executed, specifies whether a value of the field includes the attribute value; selecting a subset of fields from the particular data record according to the subsetting rules, each selected field including a value having the attribute value; providing the selected subset to a data processing application for testing of the data processing application.
24. 1. A method for masking data of a data processing application, the method comprising: deriving a label index that associates labels with a set of one or more fields in a data record, the labels identifying a type of information expected in each field of the set of one or more fields; accessing a data dictionary that associates the type of information indicated by the label with a set of attribute values that represent requirements for values of the one or more fields associated with the label, the requirements including logical or syntactic characteristics of the values of the one or more fields; For a particular data record field, identifying a particular label associated with the field of the particular data record by accessing the label index; retrieving an attribute value for the particular label from the data dictionary, the attribute value specifying a particular requirement for the field; determining that the field of the particular data record represents sensitive data based on the attribute value; and in response to said determining, performing a data masking function to convert values in said field that include said sensitive data to masked values.
25. 1. A method for determining a schema of a data record, the method comprising: deriving a label index that associates labels with a set of one or more fields in a data record, the labels identifying a type of information expected in each field of the set of one or more fields; accessing a data dictionary that associates a type of information indicated by the label with a set of attribute values that represent requirements for values of the one or more fields associated with the label, the requirements including logical or syntactic characteristics of the values of the one or more fields; For the first field of a particular data record: identifying a particular label associated with the first field of the particular data record by accessing the label index; retrieving an attribute value for the particular label from the data dictionary, the attribute value specifying a particular requirement for the first field; determining that the attribute value represents a schema characteristic of a value contained in the first field; determining, based on the schema characteristics, that the first field having the label contains a key value that is referenced by a value of a second field; and in response to the determination, updating schema data describing the particular data record to reference the first field containing the key value referenced by the value of the second field.
26. 1. A method for determining data quality rules for values in one or more data sets, the method being implemented by a data processing system, comprising: profiling, by the data processing system, values stored in fields contained in data records of one or more data sets; applying, by the data processing system, one or more classifiers to the profiled values; identifying one or more attributes indicative of logical or syntactic characteristics of the value of the field based on applying the one or more classifiers, each of the one or more attributes having a corresponding confidence level based on a respective output of the one or more classifiers; associating one or more of the identified attributes with the field, the confidence level of which meets a threshold level; determining one or more constraints on values to be included in the field based on the one or more attributes associated with the field; determining a data quality rule for the field of the dataset based on the determined one or more constraints, the data quality rule indicating a relationship between a value of the field and the one or more constraints.
27. 1. A data processing system for determining data quality rules for values in a field of a data record in a set of data records based on a label associated with the field, the label indicating a characteristic of the value of the field, the data processing system comprising: at least one processing device; at least one memory in communication with the at least one processing device, the at least one memory storing instructions that, when executed by the at least one processing device, cause the at least one processing device to: deriving a label index that associates labels with a set of one or more fields in a data record, the labels identifying a type of information expected in each field of the set of one or more fields; accessing a data dictionary that associates the type of information indicated by the label with a set of attribute values that represent requirements for values of the one or more fields associated with the label, the requirements including logical or syntactic characteristics of the values of the one or more fields; For a particular data record field, identifying a particular label associated with the field of the particular data record by accessing the label index; retrieving an attribute value for the particular label from the data dictionary, the attribute value specifying a particular requirement for the field; generating data quality rules, the data quality rules, when executed, Verifying whether the value of the field satisfies the specific requirement represented by the attribute value; and at least one memory configured to perform operations including: generating output data indicative of whether the particular requirement is met.
28. One or more non-transitory computer-readable media storing instructions for determining data quality rules for values in a field of a data record in a set of data records based on a label associated with the field, the label indicating a characteristic of the value of the field, the instructions, when executed by at least one processing device, causing the at least one processing device to: deriving a label index that associates labels with a set of one or more fields in a data record, the labels identifying a type of information expected in each field of the set of one or more fields; accessing a data dictionary that associates the type of information indicated by the label with a set of attribute values that represent requirements for values of the one or more fields associated with the label, the requirements including logical or syntactic characteristics of the values of the one or more fields; For a particular data record field, identifying a particular label associated with the field of the particular data record by accessing the label index; retrieving an attribute value for the particular label from the data dictionary, the attribute value specifying a particular requirement for the field; generating data quality rules, the data quality rules, when executed, Verifying whether the value of the field satisfies the specific requirement represented by the attribute value; and generating output data indicative of whether the particular requirement is met.
Citation Information
Patent Citations
Correlation of data sets using determined data types
US20150032609A1
Refactoring of databases to include soft type information
US20150169715A1
