def refresh_schema(query: str, summary: Dict) -> None:
    """Refreshes the Neptune graph schema information."""
    types = {
        "str": "STRING",
        "float": "DOUBLE",
        "int": "INTEGER",
        "list": "LIST",
        "dict": "MAP",
        "bool": "BOOLEAN",
        "datetime": "DATETIME",
    }
    n_labels = summary["nodeLabels"]
    e_labels = summary["edgeLabels"]
    triple_schema = _get_triples(query, e_labels)
    node_properties = _get_node_properties(query, n_labels, types)
    edge_properties = _get_edge_properties(query, e_labels, types)
    structured_schema = {
        "node_labels": n_labels,
        "edge_labels": e_labels,
        "node_properties": node_properties,
        "edge_properties": edge_properties,
        "triples": triple_schema,
    }

    return {
        "schema_str": f"""
        Node properties are the following:
        {node_properties}
        Relationship properties are the following:
        {edge_properties}
        The relationships are the following:
        {triple_schema}
        """,
        "structured_schema": structured_schema,
    }
Refreshes the Neptune graph schema information.
llama-index-integrations/graph_stores/llama-index-graph-stores-neptune/llama_index/graph_stores/neptune/neptune.py