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.
However I can't find any information online which shows how to do this so I'm thinking maybe I've misunderstood something.
- a) Can I use gremlin python directly with a neo4j db instance?
- b) If yes to (a) then how?
Thanks
Alex
You can not connect
gremlin-python
to Neo4j Server.gremlin-python
contains drivers that connect to Gremlin Server so you must have that installed forgremlin-python
to work. Given that you need Gremlin Server you must choose one of the following options all of which are just Gremlin Server configurations:gremlin.graph
tocom.steelbridgelabs.oss.neo4j.structure.Neo4JGraph
and that you would discern Bolt configuration options from this class (which instantiates that graph instance).Once you've chosen one of those configuration options you can then use
gremlin-python
to work with Neo4j.