跳转至

Create a struct property type(创建结构体属性类型)

Create and configure a new struct property from the Object types page in Ontology Manager. For more information about struct properties, see the overview.

  1. In Ontology Manager, open the Object types tab in the left sidebar and select an existing object type.
  2. In the object type details page, open the Properties tab in the left sidebar, and select the Create property button on the top right of the Properties table.

The object type Properties table and 'Property editor' panel.

  1. In the Property editor panel, add a name and description, and select Struct from the Base type dropdown menu.

The Base type dropdown with 'Struct' selected.

  1. Scroll down to the Data section and select a Backing column from the dropdown.

Choose a backing column in the Data section of the Property editor.

  1. In the Struct fields section, select Add field, then New field.

Sample struct fields in a struct property type.

  1. Name the new struct field and optionally add a description.
  2. Lastly, map a column from a datasource to the new struct field.

中文翻译


创建结构体属性类型

在 Ontology Manager 的 Object types(对象类型)页面中创建并配置新的结构体属性。有关结构体属性的更多信息,请参阅概述

  1. 在 Ontology Manager 中,打开左侧边栏的 Object types(对象类型)选项卡,选择一个现有对象类型。
  2. 在对象类型详情页面,打开左侧边栏的 Properties(属性)选项卡,点击 Properties(属性)表格右上角的 Create property(创建属性)按钮。

对象类型属性表格与'属性编辑器'面板。

  1. Property editor(属性编辑器)面板中,添加名称和描述,然后从 Base type(基础类型)下拉菜单中选择 Struct(结构体)。

基础类型下拉菜单中已选择'结构体'。

  1. 向下滚动到 Data(数据)部分,从下拉菜单中选择一个 Backing column(支撑列)。

在属性编辑器的数据部分选择支撑列。

  1. Struct fields(结构体字段)部分,选择 Add field(添加字段),然后选择 New field(新建字段)。

结构体属性类型中的示例结构体字段。

  1. 为新的结构体字段命名,并可选择添加描述。
  2. 最后,将数据源中的列映射到新的结构体字段。