I want to run some queries in TinkerGraph, but I need to read them from an external text file, instead of performing Java calls:
TinkerGraph graph = TinkerGraph.open();
GraphTraversalSource g = graph.traversal();
InputStream input = new FileInputStream("graph.json");
GraphSONReader reader = GraphSONReader.build().create();
reader.readGraph(input, graph);
// Something like
run("g.V().hasLabel("foo").."
I've checked this question but the answers show some solutions using ConcurrentBindings that are not very clear to me.