|
|
@ -35,6 +35,8 @@ if __name__ == '__main__':
|
|
|
|
print("-" * 50)
|
|
|
|
print("-" * 50)
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
kg = KnowledgeGraph(block)
|
|
|
|
kg = KnowledgeGraph(block)
|
|
|
|
|
|
|
|
# 替换一些特殊符号
|
|
|
|
|
|
|
|
block = block.replace('```neo4j', '').replace('```', '')
|
|
|
|
success, cypher = kg.run()
|
|
|
|
success, cypher = kg.run()
|
|
|
|
print(cypher)
|
|
|
|
print(cypher)
|
|
|
|
res = executor.execute_cypher_text(cypher)
|
|
|
|
res = executor.execute_cypher_text(cypher)
|
|
|
|