Adding a new compound semantic type
You can create a compound semantic to group other semantic types that are published on the Talend Dictionary Service server and add it to the list of recognized data types in Talend Data Preparation.
You can mix all semantic types when creating a compound type, and a compound semantic type can reference other compound types on the condition that all children types are already published.
In this example you need to prepare a file containing information about customers from the United States, the United Kingdom, Germany and France. One of the columns in this dataset contains postal codes from these different countries, and as a consequence, with different formats. In this case, Talend Data Preparation will apply the semantic type that matches the most with the values in the column, US Postal code for example. This will cause the rest of the data, German, French and British postal codes, to be considered invalid.
To make Talend Data Preparation more adapted to this situation, you will create a compound type, regrouping the several semantic types used to validate postal codes.
Before you begin
All the semantic types that you want to group under the compound type have been published.
Procedure
Results
Your data is now matched with the Postal code compound type, that you manually created in Talend Dictionary Service. From now on, when importing new datasets containing postal codes, they will automatically be matched with the proper type.