langchain_experimental.graph_transformers.diffbot.SimplifiedSchema

class langchain_experimental.graph_transformers.diffbot.SimplifiedSchema[source]

简化模式映射。

属性:

schema (Dict): 包含到简化模式类型的映射的字典。

根据预定义的列表初始化模式字典。

Methods

__init__()

根据预定义的列表初始化模式字典。

get_type(type)

获取给定原始类型的简化模式类型。

Return type

None

__init__() None[source]

根据预定义的列表初始化模式字典。

Return type

None

get_type(type: str) str[source]

获取给定原始类型的简化模式类型。

参数:

type(str):要查找简化类型的原始模式类型。

返回:
str:如果存在简化模式类型,则返回简化模式类型;

否则返回原始类型。

Parameters

type (str) –

Return type

str