| 12345678910111213141516171819202122 |
- #!/usr/bin/env python3
- """检查 BusinessDomain ID=241 的名称"""
- from app import create_app
- from app.core.graph.graph_operations import connect_graph
- app = create_app()
- with app.app_context():
- with connect_graph().session() as session:
- query = """
- MATCH (bd:BusinessDomain)
- WHERE id(bd) = 241
- RETURN bd.name_zh as name_zh, bd.name_en as name_en, bd.describe as describe
- """
- result = session.run(query).single()
-
- if result:
- print(f'BusinessDomain ID=241:')
- print(f' name_zh: {result["name_zh"]}')
- print(f' name_en: {result["name_en"]}')
- print(f' describe: {result["describe"]}')
- else:
- print('未找到 BusinessDomain ID=241')
|