Creating data types

Data types are used in attributes and define the kind of data that an attribute represents.

Before you begin

You must have the Configuration Lead role or higher, or Create and modify type definitions privilege for the project area.

You cannot modify system-defined data types, except for Branch values.

About this task

Use data types to define attributes.

For example, a data type of Style is defined with an enumerated list of values, including Economy, Sport, Utility, and Luxury. You can define an attribute with the Style data type.

Additionally, you can create and modify branch values for your team to set on global configurations. See Creating branch values.

Procedure

  1. Open the Manage Type Definitions page. Click Administration Shows the Administration icon > Manage Type Definitions.
  2. Create a data type. Select the Data Types tab and click Add.

    To modify a custom data type, select it and then edit the properties. To remove a custom data type, select it and then click the X. Data types are used by attributes. Learn about adopting data type changes in attributes after they were added to a global configuration in Tags, attribute values, and links.

  3. Enter the name and an optional description for your data type.
  4. Enter a URI.

    If you don't provide a URI, the system assigns a project-specific URI, which makes querying, reporting, and sharing (exporting) difficult. When you share type definitions by importing them from other project areas, you might end up with inconsistencies such as unintended duplication of data types. See the related topic.

  5. Select the Kind of Value for this data type and provide the information about the data type.
    • Bounded range of values enables you to define a minimum and a maximum value.
      1. Select a Base Data Type. (If you are only defining branch attribute values, skip this step.)
      2. Enter minimum and maximum values.
    • Enumerated list of values enables you to define one or more values and their sort order.
      • Click Add Value to define the enumeration values.
        • Label denotes the label that users see when they set an attribute for a global configuration.
        • Value denotes the order that values are presented when users select the attribute value in the tree view. If order is important, create the values in the order that you want them displayed, where 0 is first in the list. You can sort the values into the correct order later by using the up and down arrow buttons.
        • URI denotes the value of a specific enumeration member. Within a project area, give each enumeration member a unique URI to facilitate sharing type definitions and reporting.
        • Example

          A data type of seats has member values of cloth (rdfs:label of cloth ) with URI http://example.com/seat/cloth, vinyl (rdfs:label of vinyl ) with URI http://example.com/seat/vinyl, and leather (rdfs:label of leather ) with URI http://example.com/seat/leather.

          See Linked Data Web (enumerated data types).

What to do next

On the Attributes tab, you can define attributes of this data type.


video icon Video

Jazz.net channel
Software Education channel

learn icon Courses

IoT Academy
Skills Gateway

ask icon Community

Jazz.net
Jazz.net forums
Jazz.net library

support icon Support

IBM Support Community
Deployment wiki