data schema in janusgraph using python


Real Life Adventure <srinu....@...>
 

what is the best way to create data schema in janusgraph using python? 


HadoopMarc <bi...@...>
 

Hi RLA,

gremlinpython is pure Apache TinkerPop package while the JanusGraph Management API is a pure JanusGraph endeavor. The simplest option is to create the schema from a simple groovy script in the Gremlin Console distributed with JanusGraph. This requires hardly any knowledge of groovy, because you can simply replay the examples from:


If you put all your commands from the Gremlin Console into a yourschema.groovy file, you can run it from the shell using:

bin/gremlin.sh --execute yourschema.groovy

If you want, you can run this shell command from python using the subprocess module from the standard library.

HTH,    Marc

Op vrijdag 15 mei 2020 14:14:05 UTC+2 schreef Real Life Adventure:

what is the best way to create data schema in janusgraph using python?