我想使用gremlin-server部署orientDB圖形,并使用gremlin_python庫將其與python連接。我下載了orientDB with gremlin server - zip社區(qū)版我可以通過運行來部署orientDB bin\server.bat,但是沒有gremlin-server.bat(或.sh)可用于通過gremlin-server部署orientDB。我以前下載過tinkerpop gremlin-server,并嘗試使用orientDB中可用的gremlin-server.yaml文件運行它。一些版本信息:OrientDB : orientdb-tp3-3.0.2Tinkerpop : apache-tinkerpop-gremlin-server-3.3.1Gremlin_python : gremlinpython==3.3.2版本控制可能是個問題。但是我也想知道如何設置它。我的能力夠嗎,我只需要更正版本?
2 回答

翻閱古今
TA貢獻1780條經驗 獲得超5個贊
from gremlin_python.process.anonymous_traversal import traversal
from gremlin_python.driver.driver_remote_connection import DriverRemoteConnection
from gremlin_python.structure.graph import Graph
graph = Graph()
g = graph.traversal().withRemote(DriverRemoteConnection('ws://localhost:8182/gremlin','g', username = "root",password="root_password"))
為我工作
添加回答
舉報
0/150
提交
取消