[docs]@runtime_checkableclassGraphStore(Protocol):"""Abstract class for graph operations."""@propertydefget_schema(self)->str:"""Return the schema of the Graph database"""...@propertydefget_structured_schema(self)->Dict[str,Any]:"""Return the schema of the Graph database"""...
[docs]defquery(self,query:str,params:dict={})->List[Dict[str,Any]]:"""Query the graph."""...
[docs]defrefresh_schema(self)->None:"""Refresh the graph schema information."""...
[docs]defadd_graph_documents(self,graph_documents:List[GraphDocument],include_source:bool=False)->None:"""Take GraphDocument as input as uses it to construct a graph."""...