Cleanse Data Using Reference Data (External) Knowledge
This topic describes how to cleanse data using knowledge from the reference data providers. While all the steps of running a cleansing activity remains the same for cleansing your data using knowledge from the reference data providers as explained in the Cleanse Data Using DQS (Internal) Knowledge, this topic provides information specific to data cleansing using reference data service in Data Quality Services (DQS).
When you use the reference data service feature in DQS to cleanse your data, the DQS cleansing process sends the mapped domain values to the reference data service provider as a batch request. The reference data service responds with the following information:
Additional information about the mapped domain. Reference data can also standardize, parse, or enrich the source with additional data. This information is provided in additional fields in the response.
After getting the response from reference data service, the following happens in DQS during the cleansing activity:
Based on the Auto Correction Threshold and Min Confidence values specified during mapping of the domains with reference data service, domain values are automatically corrected or suggested based on the confidence level.
The threshold values that you specify during mapping a domain to a reference data service are applied while cleansing data using the knowledge in reference data service, and not the ones that are specified in the General Settings tab in the Configuration section. For information about specifying threshold values for reference data cleansing, see step 9 in Attach Domain/Composite Domain to Reference Data.
Domain values are categorized into the following: Suggested, New, Invalid, Corrected, and Correct.
Additional data is appended to the source, and the information is available along with the cleansed data for exporting.
You must have mapped required domains in a DQS knowledge base to the appropriate reference data service. Additionally, the knowledge base must contain knowledge about the type of data that you want to cleanse. For example, if you want to cleanse your source data that contains US addresses, you must map your domains to a reference data service provider that provides high-quality” data for US addresses. For more information, see Attach Domain/Composite Domain to Reference Data.
We will continue with the same example of using the domains that we mapped in the previous topic, Attach Domain/Composite Domain to Reference Data, with the Melissa Data service in Windows Azure Marketplace. Now, we will use the same domains to cleanse some sample US addresses. The steps to cleanse data are the same as described in Cleanse Data Using DQS (Internal) Knowledge. However, we will draw you attention wherever necessary during the process.
Create a data quality project, and select the Cleansing activity. See Create a Data Quality Project.
On the Map page, map the following 4 domains with appropriate columns in your source data: Address Line, City, State, and Zip. Click Next.
As you have mapped all the 4 domains within the Address Verification composite domain, the data cleansing will now be done at the composite domain level, and not at the individual domain level.
On the Cleanse page, run the computer-assisted cleansing process by clicking Start. After the cleansing process is over, click Next.
On the Cleanse page, DQS displays information about the domains that are attached to reference data service in the following two ways:
A message is displayed below the Start button: “Domains <Domain1>, <Domain2>,… <DomainN> are cleansed using reference data service provider.” In this example, the following message will be displayed: “Domain Address Verification is cleansed using reference data service provider.”
An icon, , is displayed in the Profiler area against the domains attached to reference data service provider. In this example, the icon will be displayed against the Address Verification composite domain.
On the Manage and view results page, review your domain values. The reference data service can display more than one suggestion, if available, for a value depending upon the maximum number of suggestions specified in the Suggested Candidates box during the mapping of the domain to the reference data service. For example, two suggestions are displayed for the following US address:
1 msft way
1 Microsoft Way
PO Box 1
For composite domains, DQS also highlights the individual domains in a different color that were corrected during the computer-assisted cleansing process. For example, in this case, the Address Line and State domains were corrected, and therefore highlighted in cyan.
After you are done with reviewing all the domain values, click Next to export the data.
On the Export page, you will notice that apart from the regular information about the cleansing activity for each domain (Source, Reason, Confidence, and Status), there is additional information provided by the Melissa Data reference data service about your address data, such as latitude and longitude of your address, county name, address type (highrise, street, etc.), and so on.
Export your data to the required destination (SQL Server, CSV, or Excel), and click Finish to close the project.
If you are using 64-bit version of Excel, you cannot export the cleansed data to an Excel file; you can export only to a SQL Server database or to a .csv file.