GraphStore#

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

Abstract class for graph operations.

Attributes

get_schema

Return the schema of the Graph database

get_structured_schema

Return the schema of the Graph database

Methods

add_graph_documents(graph_documents[, ...])

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

query(query[, params])

Query the graph.

refresh_schema()

Refresh the graph schema information.

abstractmethod add_graph_documents(graph_documents: List[GraphDocument], include_source: bool = False) None[source]#

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

Parameters:
Return type:

None

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

Query the graph.

Parameters:
  • query (str)

  • params (dict)

Return type:

List[Dict[str, Any]]

abstractmethod refresh_schema() None[source]#

Refresh the graph schema information.

Return type:

None