跳转至

Edit-only properties(仅编辑属性 (Edit-only properties))

Edit-only properties allow you to define Ontology properties that are not directly mapped to a column in the backing dataset of the object type. This is particularly useful for situations where you may want to store additional information alongside your object types without modifying the underlying dataset.

Summary of edit-only properties

When working with edit-only properties, keep the following in mind:

  • No mapping to a column in the backing dataset: Edit-only properties are not required to be mapped to a specific column in the backing dataset. This allows you to easily create new properties before the backing column exists, or create properties that will only be edited through the ontology.
  • Permissioned to one of the datasets backing the object type: To ensure data consistency and security, edit-only properties must be permissioned to one of the datasets backing the object type.
  • Available only in Object Storage V2: Edit-only properties are a feature that is exclusively available for object types leveraging Object Storage V2.

Creating edit-only properties

  1. Navigate to the Ontology Manager.
  2. Choose the object type to which you want to add an edit-only property.
  3. Select Create Property and fill in the required details, including the property name, type, and description.
  4. Under the Data section, toggle on the Edit-only property toggle and choose a dataset to permission to (if you have more than one dataset backing the object type).
  5. Save your changes to create the edit-only property.

Edit-only property

Mapping edit-only properties to dataset columns

If you later decide to add a column to your backing dataset that corresponds to a property that is currently edit-only, you can easily map that property to the new column.

  1. Navigate to the Ontology Manager.
  2. Choose the object type with the edit-only property you want to map.
  3. Select the edit-only property to open its details.
  4. Under the Data section, untoggle the edit-only property and choose a column from one of the backing datasets.
  5. Save your changes.

中文翻译


仅编辑属性 (Edit-only properties)

仅编辑属性允许您定义本体 (Ontology) 中不直接映射到对象类型 (object type) 后端数据集 (backing dataset) 中某一列的属性。 这在您希望在不修改底层数据集的情况下,为对象类型存储额外信息时尤为有用。

仅编辑属性概述

使用仅编辑属性时,请注意以下几点:

  • 无需映射到后端数据集中的列: 仅编辑属性不需要映射到后端数据集中的特定列。这使得您可以在后端列存在之前轻松创建新属性,或者创建仅能通过本体进行编辑的属性。
  • 权限关联至对象类型的某个后端数据集: 为确保数据一致性和安全性,仅编辑属性必须将其权限关联至对象类型的某个后端数据集。
  • 仅在对象存储 V2 (Object Storage V2) 中可用: 仅编辑属性是专为使用对象存储 V2 的对象类型提供的功能。

创建仅编辑属性

  1. 导航至 本体管理器 (Ontology Manager)
  2. 选择您要添加仅编辑属性的对象类型。
  3. 选择 创建属性 (Create Property),并填写所需详细信息,包括属性名称、类型和描述。
  4. 数据 (Data) 部分,打开 仅编辑属性 (Edit-only property) 开关,并选择一个数据集以关联其权限(如果您的对象类型有多个后端数据集)。
  5. 保存 (Save) 您的更改以创建仅编辑属性。

仅编辑属性

将仅编辑属性映射到数据集列

如果您后续决定在后端数据集中添加一列,该列与当前为仅编辑状态的属性相对应,您可以轻松地将该属性映射到新列。

  1. 导航至 本体管理器 (Ontology Manager)
  2. 选择包含您要映射的仅编辑属性的对象类型。
  3. 选择该仅编辑属性以打开其详细信息。
  4. 数据 (Data) 部分,关闭仅编辑属性开关,并从某个后端数据集中选择一列。
  5. 保存 (Save) 您的更改。