现在我正在使用 neo4jrestclient python 包来列出扩展:
from neo4jrestclient.client import GraphDatabase
gdb = GraphDatabase("http://localhost:7474/db/data/")
ext = gdb.extensions
有没有我可以使用的直接 shell 命令来执行此操作?我在网络界面上也看不到任何东西。我用的是1.8。
谢谢!
现在我正在使用 neo4jrestclient python 包来列出扩展:
from neo4jrestclient.client import GraphDatabase
gdb = GraphDatabase("http://localhost:7474/db/data/")
ext = gdb.extensions
有没有我可以使用的直接 shell 命令来执行此操作?我在网络界面上也看不到任何东西。我用的是1.8。
谢谢!
由于这是 Google 中的最佳答案,并且接受的答案对于 v3.0+ 已过时,因此这里有一个新答案。
在此页面上,它们显示了许多新程序,其中一个获取数据库中所有程序(包括插件)列表的问题是“dmbs.procedures()”,我发现拥有签名最有用程序以及名称。查询是:
CALL dbms.procedures() YIELD name, signature RETURN name, signature
跑
curl -v http://localhost:7474/db/data/
从命令行。扩展在 Web 界面上不可用。
您有以下扩展文档neo4j-rest-client
:
>>> gdb.extensions
{u'GetAll': <Neo4j ExtensionModule: [u'get_all_nodes', u'getAllRelationships']>}
>>> gdb.extensions.GetAll
<Neo4j ExtensionModule: [u'get_all_nodes', u'getAllRelationships']>
>>> gdb.extensions.GetAll.getAllRelationships()[:]
[<Neo4j Relationship: http://localhost:7474/db/data/relationship/0>,
<Neo4j Relationship: http://localhost:7474/db/data/relationship/1>,
<Neo4j Relationship: http://localhost:7474/db/data/relationship/2>,
<Neo4j Relationship: http://localhost:7474/db/data/relationship/3>]