Reputation: 837
I found a guide for creating a graph using csv data files using groovy. (https://github.com/vsantosu/gremlin-importer/wiki/CSV-import-guide)
Say I want to create this marvel superheroes graph (or any graph for the matter) on gremlin-server using gremlin-python. How can I do this?
I can't think of anything and didn't find anything useful too. So I am almost blank with this question
Upvotes: 5
Views: 6592
Reputation: 46226
TinkerPop does not really provide bulk-loading tools and relies on the native features of the graph databases to expose such functionality. The only bulk-loading tool TinkerPop does have is the BulkLoaderVertexProgram which you can use to load massive graphs in a parallel distributed fashion. Other than that (especially if you don't have a large graph) you would simply write a Gremlin script to read your source data and then using Gremlin mutation steps (i.e. addV()
and addE()
) load data into your graph. If you are loading in one time fashion, I would just execute such a script from the Gremlin Console and generate your graph.
So, again, three options:
BulkLoaderVertexProgram
and Hadoop/SparkWhichever choice you make, do the load first and then connect that graph to Gremlin Server. At that point you can query your loaded data with gremlin-python.
You might find this slide deck helpful from Jason Plurad's talk: "Powers of Ten Redux" which builds on the original work I did with Daniel Kuppitz on the "Powers of Ten" blog post series for data loading.
Upvotes: 8