langchain_community.graphs.graph_store.GraphStore¶

class langchain_community.graphs.graph_store.GraphStore[source]¶

An abstract class wrapper for graph operations.

Attributes

get_schema

Returns the schema of the Graph database

get_structured_schema

Returns the schema of the Graph database

Methods

__init__()

add_graph_documents(graph_documents[, ...])

Take GraphDocument as input as uses it to construct a graph.

query(query[, params])

Query the graph.

refresh_schema()

Refreshes the graph schema information.

__init__()¶
abstract add_graph_documents(graph_documents: List[GraphDocument], include_source: bool = False) None[source]¶

Take GraphDocument as input as uses it to construct a graph.

abstract query(query: str, params: dict = {}) List[Dict[str, Any]][source]¶

Query the graph.

abstract refresh_schema() None[source]¶

Refreshes the graph schema information.