问题描述
我看到了几个打开neo4j驱动程序的示例(来自python
):
from neo4j import GraphDatabase
uri = "neo4j://localhost:7687"
driver = GraphDatabase.driver(uri,auth=("neo4j","password"))
或
uri = "bolt://localhost:7687"
driver = GraphDatabase.driver(uri,"password"))
- 在
bolt
之前的neo4j
或::/localhost:7687
是什么? - 我需要提前创建它们吗?
解决方法
bolt
和neo4j
只是URI schemes,它们可以由neo4j自动理解,而无需您费力。