Hello,
I'm a bit of a newbie to TinkerPop3 so please excuse any silliness on my part.
TL;DR: I can open a graphml file I previously wrote in my Java app but not in the Gremlin console. Why?
I have a Java program that is creating a graph and writing it to a local file using the following code:
private static TinkerGraph tg = TinkerGraph.open();
<code creating tg graph>
tg.io(IoCore.graphml()).writeGraph("query-result.xml");
I am then able to launch the program again and load the data using:
tg.io(IoCore.graphml()).readGraph("query-result.xml");
If it makes a difference, the file is a bit weird and quite big; I've got 224,000 nodes and 0 edges, mostly because edge creation has been too time-intensive so far. The file is about 142 megabytes.
The problem is, I would like to be able to load this xml file into the TinkerGraph console. I moved this xml file to the data file in tinkergraph console. Yet, when I run
graph = TinkerGraph.open()
graph.io(IoCore.graphml()).readGraph("data/query-results.xml")
I get the message back that there is "No such file or directory", even though the file exists and I can print it out. Whereas, trying to load any of the pre-provided data in the data package works just fine for me.
Any ideas as to why this is happening?
Cheers,
Rowan