Skip to main content Skip to complementary content

Defining a data model for the Resolution campaign

Create a data model to determine the structure of the data to be managed in the Product Catalog campaign which you create to allow data stewards to curate any anomalies in the data listed in the enterprise catalog.

Talend Data Stewardship has data model awareness which makes possible the syntactic and semantic validation of data. You can define the attributes in the data model and select their types out of a predefined standard or semantic types.

Procedure

  1. Select Data models > Add data model.
  2. Enter a name and a description for the new model in the Name and Description fields respectively. Optional fields are marked with * next to their names.
  3. In the Attributes section, define the columns you want to have in the data model as the following:
    1. In the Identifier field, enter the technical identifier for the first column.
    2. Enter a name and a description for the column in the corresponding fields, if needed.
      What you set in the Name field is the name displayed in the task list. If no name is set, the technical identifier will be displayed.
    3. From the attribute type list, select the type of the column.

      Standard and semantic types are integrated in the application by default.

      • For the standard types, additional fields are displayed according to the type you select. These fields are optional and they enable you to define some constraints on the attribute you define such as defining a minimum and/or maximum length or defining a pattern against which to validate the attribute.

        To make sure the entire value matches your validation pattern, it is best practice to surround the validation pattern with ^ and $.

        Some examples:
        • [A-Z] matches A and ABC.
        • ^[A-Z]$ matches A but does not match ABC.

        For Date and Timestamp columns, you have access to a date and time picker which helps you set the date and time automatically in the right format.

      • For the semantic types, you can use the Talend Dictionary Service to manage the semantic types. However, the availability of this service depends on the license you have.
  4. Optionally, toggle the Allow empty values option to disable the upload of empty fields. This option is enabled by default.
  5. Click Add attribute and repeat the above steps to create all the columns you need in the data model.
    The columns defined for the Product Catalog campaign include the description of each product item, a picture of the item , its size and price as shown in the capture.
  6. To display the product URL as hyperlinks in the task list, set the semantic type for the Product_URL column to URL.
    This enables you to click the URL directly from the task list to open a picture of the product item and see if it matches the information in the product catalog.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!