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.
- In Ontology Manager, open the Object types tab in the left sidebar and select an existing object type.
- 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.

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

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

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

- Name the new struct field and optionally add a description.
- Lastly, map a column from a datasource to the new struct field.
中文翻译¶
创建结构体属性类型¶
在 Ontology Manager 的 Object types(对象类型)页面中创建并配置新的结构体属性。有关结构体属性的更多信息,请参阅概述。
- 在 Ontology Manager 中,打开左侧边栏的 Object types(对象类型)选项卡,选择一个现有对象类型。
- 在对象类型详情页面,打开左侧边栏的 Properties(属性)选项卡,点击 Properties(属性)表格右上角的 Create property(创建属性)按钮。

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

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

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

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