Toggle Menu
Prev Up Next

# `langchain_experimental.graph_transformers.diffbot`.SimplifiedSchema

class langchain_experimental.graph_transformers.diffbot.SimplifiedSchema

  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

    Initializes the schema dictionary based on the predefined list.

    Return type

      None

  get_type(type: str) → str

    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