File "main.py", line 66, in <module> create_kg_by_neo4j(entity_json['N_RPA_PROJECT'][0]['ABSOLUTE_PATH'], is_create_neo4j) File "D:\IdeaProjects\domain-asset-management-platform\Asset_import_code\neo4j_kg.py", line 64, in create_kg_by_neo4j set_node(absolute_path) File "D:\IdeaProjects\domain-asset-management-platform\Asset_import_code\neo4j_kg.py", line 90, in set_node results_hp = session_hp.run(query[:-3]) File "D:\Program Files\Python38\lib\site-packages\neo4j\_sync\work\session.py", line 311, in run self._auto_result._run( File "D:\Program Files\Python38\lib\site-packages\neo4j\_sync\work\result.py", line 166, in _run self._attach() File "D:\Program Files\Python38\lib\site-packages\neo4j\_sync\work\result.py", line 274, in _attach self._connection.fetch_message() File "D:\Program Files\Python38\lib\site-packages\neo4j\_sync\io\_common.py", line 180, in inner func(*args, **kwargs) File "D:\Program Files\Python38\lib\site-packages\neo4j\_sync\io\_bolt.py", line 808, in fetch_message res = self._process_message(tag, fields) File "D:\Program Files\Python38\lib\site-packages\neo4j\_sync\io\_bolt3.py", line 412, in _process_message response.on_failure(summary_metadata or {}) File "D:\Program Files\Python38\lib\site-packages\neo4j\_sync\io\_common.py", line 247, in on_failure raise Neo4jError.hydrate(**metadata) neo4j.exceptions.CypherSyntaxError: {code: Neo.ClientError.Statement.SyntaxError} {message: Invalid input 'I': expected '\', ''', '"', 'b', 'f', 'n', 'r', 't', UTF16 or UTF32 (line 1, column 113 (offset: 112))
时间: 2023-08-22 19:05:36 浏览: 200
教师节主题班会.pptx
根据你提供的错误信息来看,这是一个 Neo4j 数据库操作的错误,具体原因是 Cypher 语句中存在语法错误。根据错误信息中的提示,可能是在 Cypher 语句中出现了非法的字符 'I',而 Cypher 语句中只允许使用 '\'、'''、'"'、'b'、'f'、'n'、'r'、't'、UTF16 或 UTF32 等字符。你需要检查 Cypher 语句是否有语法错误,尤其是在第 1 行第 113 列(偏移量为 112)处是否存在非法字符。如果有,你需要将其修改为合法字符。
阅读全文