uri驱动程序中的前缀名称是什么

问题描述

我看到了几个打开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"))
  1. bolt之前的neo4j::/localhost:7687是什么?
  2. 我需要提前创建它们吗?

解决方法

boltneo4j只是URI schemes,它们可以由neo4j自动理解,而无需您费力。