[英]How do I connect to a remote Neo4j database using gremlin python?
From what I've read Neo4j implements apache tinkerpop which leads me to think I can use gremlin python and rather than connect to a gremlin server I can point the python code at a neo4j server and treat it like a gremlin server. 从我看过的文章中,Neo4j实现了apache tinkerpop,这使我认为我可以使用gremlin python,而不是连接到gremlin服务器,我可以将python代码指向neo4j服务器,并将其视为gremlin服务器。
However I can't find any information online which shows how to do this so I'm thinking maybe I've misunderstood something. 但是,我在网上找不到任何信息来显示如何执行此操作,因此我认为我可能误解了一些信息。
Thanks 谢谢
Alex 亚历克斯
You can not connect gremlin-python
to Neo4j Server. 您无法将
gremlin-python
连接到Neo4j Server。 gremlin-python
contains drivers that connect to Gremlin Server so you must have that installed for gremlin-python
to work. gremlin-python
包含连接到Gremlin Server的驱动程序,因此必须安装该驱动程序才能使gremlin-python
正常工作。 Given that you need Gremlin Server you must choose one of the following options all of which are just Gremlin Server configurations: 考虑到您需要Gremlin Server,您必须选择以下选项之一,所有这些只是Gremlin Server配置:
gremlin.graph
to com.steelbridgelabs.oss.neo4j.structure.Neo4JGraph
and that you would discern Bolt configuration options from this class (which instantiates that graph instance). gremlin.graph
到com.steelbridgelabs.oss.neo4j.structure.Neo4JGraph
从和你会看出博尔特的配置选项这一类 (其实例化图实例)。 Once you've chosen one of those configuration options you can then use gremlin-python
to work with Neo4j. 选择这些配置选项之一后,即可使用
gremlin-python
与Neo4j配合使用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.