From 8abc2ac1cb5829a2716c09e39cb239af524fa783 Mon Sep 17 00:00:00 2001 From: Sleeep <91170291+sleeepyin@users.noreply.github.com> Date: Thu, 13 Nov 2025 15:52:14 +0800 Subject: [PATCH] Update edge keywords extraction in graph visualization MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 构建neo4j时候 关键字的取值默认为d7 应该为修改后的d9 --- examples/graph_visual_with_neo4j.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/graph_visual_with_neo4j.py b/examples/graph_visual_with_neo4j.py index 1cd2e7a3..b1fc9438 100644 --- a/examples/graph_visual_with_neo4j.py +++ b/examples/graph_visual_with_neo4j.py @@ -53,8 +53,8 @@ def xml_to_json(xml_file): "description": edge.find("./data[@key='d6']", namespace).text if edge.find("./data[@key='d6']", namespace) is not None else "", - "keywords": edge.find("./data[@key='d7']", namespace).text - if edge.find("./data[@key='d7']", namespace) is not None + "keywords": edge.find("./data[@key='d9']", namespace).text + if edge.find("./data[@key='d9']", namespace) is not None else "", "source_id": edge.find("./data[@key='d8']", namespace).text if edge.find("./data[@key='d8']", namespace) is not None