All Products
Search
Document Center

DataWorks:Relationship diagram

Last Updated:Jan 05, 2026

The relationship diagram in DataWorks intelligent data modeling provides a visual canvas to design, build, and display the model architecture of a data warehouse. This architecture includes dimensions, dimension tables, fact tables, aggregate tables, and application tables. Each relationship diagram represents a data warehouse model, and you can create multiple relationship diagrams within a single account.

Preparations

The models required for the relationship graph have been created. DataWorks intelligent data modeling supports various types of models. You need to perform data warehouse planning and dimensional modeling as needed.

  1. Data Warehouse Planning

    Before you perform data modeling, the data warehouse architect must collaborate with the data development and model design teams to survey business requirements and data sources. This process clarifies the overall data structure and finalizes the design of modules such as data layers, business categories, data domains, business processes, data marts, and subject areas. For more information, see Data Warehouse Planning.

  2. Dimensional Modeling

    • Conceptual model - dimension: A dimension is a perspective for observing your business. You can plan and create dimensions in Dimensional Modeling and then associate them with dimension tables during creation. This lets you analyze business data from different perspectives.

    • Logical model - dimension table: Based on your data domain plan, you can extract potential dimensions for data analysis. These dimensions and their attributes are stored in dimension tables.

    • Logical model - fact table: Based on your business process plan, you can analyze the actual data that may be generated. This data is then stored as fields in fact tables.

    • Logical model - aggregate table: An aggregate table stores statistical data for multiple derived metrics within a data domain that share the same period and dimensions. It is the result of high-level business abstraction and provides a basis for business queries, online analytical processing (OLAP), and data distribution.

    • Logical model - application table: An application table is used for specific business scenarios. It organizes statistical data for multiple atomic and derived metrics that share the same period and dimensions, or data of specific granularities. It provides a basis for business queries, OLAP, and data distribution.

Go to the entry points for creating a relationship diagram

  1. Go to the Data Modeling page.

    Log on to the DataWorks console. In the top navigation bar, select the desired region. In the left-side navigation pane, choose Data Development and O&M > Data Modeling. On the page that appears, select the desired workspace from the drop-down list and click Go to Data Modeling.

  2. Navigate to the relationship diagram page.

    On the intelligent data modeling page, click Relationship Diagrams in the top menu bar.

    You can create your first graph from the following entry points.

    PixPin_2026-01-04_17-06-06

Use a relationship diagram to build a data warehouse model architecture

On the relationship diagram page, you can perform the following model building operations:

  1. Add a model: The To-Be-Added Objects panel on the left side of the page lists all models that are created in Data Modeling. Find the model that you want to add in the directory tree and drag it to the canvas on the right.

  2. Build relationships: You can use the connection line tool from the toolbar to create associations between models. These associations represent data flows or logical dependencies. You can double-click a connection line to add a description.

  3. Enrich the diagram: You can use tools such as notes, text boxes, and groups to add annotations and explanations to the model architecture diagram.

  4. Save and Export: The content on the canvas is automatically saved. You can click Export to download the model architecture diagram as an image.

The following figure shows a sample data warehouse model architecture.

Note

After a model is added to the canvas, click the image.png icon on the model. Then, click the image.png icon that appears above the model to open the model details page. For more information about the icons on the canvas, see Canvas feature reference.

Canvas feature reference

The icons on the relationship diagram canvas are divided into object icons and function icons.

  • Object icons

    Element

    Description

    image.png

    Represents a conceptual model dimension.

    image.png

    Represents a logical model fact table.

    image.png

    Represents a logical model dimension table.

    image.png

    Represents a logical model application table.

    image.png

    Represents a logical model aggregate table.

    image.png

    Represents a note. Use notes to record information about the data warehouse model for easy reference and use. For example, you can record the method used to create the model architecture.

  • Function icons

    Icon

    Description

    image.png

    Select: Selects elements such as models and notes on the canvas to move, edit, or delete them.

    移动画布.png

    Move Canvas: Press and hold the mouse to move the entire canvas.

    image.png

    Add Text: Click anywhere on the canvas to add a text box and enter a description.

    image.png

    Add Note: Click anywhere on the canvas to add a note.

    image.png

    Connection Line: Connects two models to establish an association. The arrow indicates the direction of the association. Double-click the line to add a description.

    image.png

    Group: Select multiple elements to create a group. You can customize the group name and background color. Groups are usually placed at the bottom layer of the canvas.

    image.png

    Keyboard Shortcuts: View supported keyboard shortcuts. For example, use Ctrl + Z to undo the last operation.

    编辑.png

    Edit: After you select a text box or note, use this icon to edit its content.

    删除项.png

    Delete: Deletes the selected elements from the canvas.

    Important

    Deleting an element also deletes all other elements connected to it by lines.

    视图-刷新.png

    Refresh:

    • On the To Add list on the left: After you add or modify a model in another module, such as Dimensional Modeling, click this icon to refresh the To Add list. This operation does not affect the content on the canvas.

    • On the canvas toolbar on the right: Refreshes the entire canvas.

    视图-搜索.png

    Search: Locates elements on the canvas. Supports fuzzy search by the Chinese name, English name, Code, and UUID of an element, and by the content in text boxes and notes.