Adding external synonym directories in Talend Studio - Cloud

Talend Cloud API Services Platform Studio User Guide

author
Talend Documentation Team
EnrichVersion
Cloud
EnrichProdName
Talend Cloud
task
Design and Development
EnrichPlatform
Talend Management Console
Talend Studio
This functionality is mandatory for Artifacts that need the content of some external directories to be executed.

Before you begin

  • The Artifact is open in the Studio and the Contexts tab below the design workspace is selected.

    If this tab does not show in the Studio, click Window > Show view > Talend, and select Contexts.

About this task

As an example, we are creating a Artifact that standardizes the country name and returns the full English version of the country. In such a case, you must use the tSynonymSearch data quality component that reads input data and searches for reference entries defined in a given synonym index file.

Procedure

  1. Click the [+] button at the bottom of the Contexts to add a line in the table.
  2. Define the context parameter following the pattern resource_directory_<parameter_name>, all in lower case.
    Use resource_directory_synonym in this example as you want to set the path to the synonym index directory.
  3. Set the type of the parameter to String.
  4. In the Value field, set the path to the synonym directory which is stored in the Studio folder <Studio>/addons/data/synonym/.
  5. Select the first tSynonymSearch component in the Artifact, and in the Component view set the context of the relative path to the index file in the synonym directory.
  6. Do the same and set the context of the relative path to the idx_ISO3_country_name file in the second tSynonymSearch component, and to idx_ISO2_country_name in the third tSynonymSearch component.
  7. Publish the Artifact to the web application.
    The values of the resource parameters are not published to the cloud with the Artifact.

Results