Model release and version history

Updated at:

This feature allows you to release multiple model versions. Each release records the time, publisher, number of entity and relationship types, and a version description. The version list provides a clear overview of the structural scale and change notes for each version, ensuring a clear, orderly, and traceable model iteration process.

Permissions

  • In the current workspace, administrators and modelers can create and manage entity types and relationship types, and release models.

  • In the current workspace, administrators, modelers, business experts, and analysts can view model details and the version list.

Limitations

Only full releases of an entire graph space are supported. Incremental or independent releases for specific entity types or relationship types are not currently supported.

Model release

During a model release, the system applies changes to each entity type and relationship type sequentially. Failure to apply changes to a single type does not trigger a roll back; any successfully applied changes are retained. After all changes are applied, a new model version is generated. The system then automatically synchronizes the model with the graph engine configured for the knowledge graph and updates the associated knowledge. The three-layer change architecture is detailed below.

Layer

Description

Storage location

Example changes

1

Ontology model

The product-level model definition, including entity types, relationship types, attribute definitions, and constraint rules.

Product metadatabase

Add an entity type, modify an attribute name or type, or delete a relationship type.

2

graph schema

The schema structure at the graph engine level, such as labels, property keys, and indexes.

graph database

Create a label, add a property key, or create or delete an index.

3

graph data

The actual node and edge data stored in the database.

graph database

Convert node property values, backfill default values, or delete nodes and edges.

After a model release, a new version is automatically generated. The version can have one of the following statuses: Draft, Publishing, Published, Partially Published, or Failed. The scenarios and handling procedures for the Partially Published and Failed statuses are described below.

System status

Failure scenario

Handling procedure

Failed

All changes to entity types and relationship types fail to apply.

No new version is generated, and the release status is set to Failed. After you fix the issues, you can retry the release.

The release task fails to start, preventing sub-task execution. This can happen, for example, if the graph engine connection is incorrect.

No new version is generated, and the draft remains unchanged. Check the graph engine status and retry the release.

Partially Published

Changes for some entity types or relationship types fail to apply.

The release is not rolled back. Successfully applied changes are retained, and the new version includes only these changes.

  • Republish: After fixing the configurations for the failed items, you can republish. This attempt applies only the changes that previously failed.

  • Accept the partial release: You can accept the partial release by taking no action. The version status remains Partially Published, and the successfully released entity types and relationship types can be used normally. This approach is suitable if you can temporarily accept data inconsistency and plan to resolve it manually later.

  • Retain draft modifications: Changes that failed to apply are not included in the new version. These modifications are kept in the draft.

    Note

    Even if a deletion fails to execute, the object is still removed from the new version's definition. The only exception is when the entity type is still referenced by other relationships.

Some steps for an entity type or relationship type fail. For example, the graph schema is updated, but the backfilling of default values is not completed.

Procedure

  1. In the top navigation bar of the Dataphin home page, choose Knowledge Graph > Model Design.

  2. In the top navigation bar, select a workspace. The last released version of the model for the selected workspace is displayed below. You can edit this version. For more information about modifications and their impacts, see Entity Types and Relationship Types.

  3. When you finish editing, click Publish to release the model to the production environment. The release process is as follows.

    Parameter

    Description

    ① Change Overview

    • Change Summary: Displays all breaking and non-breaking changes.

      Note

      If your release includes significant breaking changes, we recommend that you perform a data backup beforehand to ensure you can recover quickly in case of an issue.

    • Version: The system automatically increments the version number. You cannot modify it.

    • Version Description: A brief description of this version, limited to 128 characters.

    ② Release Check

    The draft model must pass all checks before it can be released to the production environment.

    schema compatibility check: Compares the draft with the previous production version to identify breaking changes.

  4. Click Confirm Publication to release the current version of the model.

    If the release check identifies breaking changes, you must select the I am aware of the data risks and want to publish the model checkbox before clicking Confirm Publication.

View model version history

  1. Click Versions in the upper-right corner of the canvas to open the Versions panel, which displays all released versions of the model.

  2. For each version, the version list shows the release time, publisher, number of entity and relationship types, and the version description.