Adding a new dictionary-based semantic type through command line interface
You can create a semantic type based on a closed dictionary in Talend Dictionary Service and add it to the list of recognized data types in Talend Data Preparation.
In Talend Data Preparation, not every type of data can currently be matched with one of the predefined semantic types. The counties of United Kingdom for example, are currently not recognized as such.
Let's say that you work for a British company, with customers only residing in the United Kingdom. In this example, you need to clean some customer data, such as their names, email address, or the county they live in. The semantic type for the column containing the counties data will be set by default to city. Some of the data may actually match names of cities, but you want to add a semantic type that is more specific to your data: UK_counties semantic type in this case.

You will create this new semantic type in Talend Dictionary Service, and it will be automatically available in Talend Data Preparation so that your data can be matched with a proper type.
Procedure
Results
Your data is now matched with the UK_counties semantic type, that you manually created in Talend Dictionary Service. From now on, when importing new datasets containing names of British counties, they will automatically be matched with the proper type.
To display a list of all the available commands in Talend Dictionary Service, go to <Dictionary_Service_Path>/command-line and enter the following command according to your operating system:
- category_manager.bat -h command for Windows
- ./category_manager.sh -h for Linux