SimplifiedSchema#

class langchain_experimental.graph_transformers.diffbot.SimplifiedSchema[source]#

Simplified schema mapping.

schema#

A dictionary containing the mapping to simplified schema types.

Type:

Dict

Initializes the schema dictionary based on the predefined list.

Methods

__init__()

Initializes the schema dictionary based on the predefined list.

get_type(type)

Retrieves the simplified schema type for a given original type.

__init__() None[source]#

Initializes the schema dictionary based on the predefined list.

Return type:

None

get_type(type: str) str[source]#

Retrieves the simplified schema type for a given original type.

Parameters:

type (str) – The original schema type to find the simplified type for.

Returns:

The simplified schema type if it exists;

otherwise, returns the original type.

Return type:

str