跳转至

Use value types(使用值类型(Value Type))

Once you have created a value type, you can use it in as a data type across Foundry. Value types can be supported for the use cases listed below.

  • Assigning a value type to an object type property.
  • Assigning a value type to a shared property.
  • Assigning a value type to a Pipeline Builder pipeline property as a logical type using the logical type cast expression and selecting the value type on the property when you write to the objects target.

To assign a value type to a property, select the value type from the dropdown menu during property configuration.

Constraint update warning

:::callout{theme="warning"} If you apply a value type to an object property that contains property values that fail validation, that object type will fail to index. You can view such index failures in the object type health status in Ontology Manager, where you can correct your data or update your value type to fix the issue. :::


中文翻译

使用值类型(Value Type)

一旦你创建了值类型,就可以在Foundry中将其作为数据类型使用。值类型可用于以下列出的用例场景。

  • 为对象类型属性(Object Type Property)分配值类型。
  • 为共享属性(Shared Property)分配值类型。
  • 为Pipeline Builder管道属性分配值类型作为逻辑类型(Logical Type),具体方法是使用逻辑类型转换(logical type cast)表达式,并在写入对象目标时选择该属性对应的值类型。

要为属性分配值类型,请在属性配置期间从下拉菜单中选择该值类型。

约束更新警告

:::callout{theme="warning"} 如果将值类型应用于包含验证失败属性值的对象属性,则该对象类型将无法建立索引。你可以在本体管理器(Ontology Manager)的对象类型健康状态中查看此类索引失败情况,并在此处修正数据或更新值类型以解决问题。 :::