def test_15_refresh_schema(neo4j_store):
    """
    Test explicit refresh of the schema.
    """
    # Insert data
    e1 = EntityNode(label="PERSON", name="Alice", properties={"age": 30})
    neo4j_store.upsert_nodes([e1])

    # Refresh schema
    neo4j_store.refresh_schema()
    schema = neo4j_store.structured_schema
    assert "node_props" in schema
    person_props = schema["node_props"].get("PERSON", [])
    prop_names = {prop["property"] for prop in person_props}
    assert "age" in prop_names, "Expected 'age' property in PERSON schema."

    Test explicit refresh of the schema.
    
llama-index-integrations/graph_stores/llama-index-graph-stores-neo4j/tests/test_pg_stores_neo4j.py