Hi,
The creation of graph is not consistent across Blueprints implementations:
Neo4jGraph() create directories and graph file
OrientGraph() create directories and graph file
TinkerGraph() create graph file at shutdown() time
DexGraph() create graph file
When trying to create a TinkerGraph() in an inexistent directory:
gremlin> g = new TinkerGraph('../data/tg/tinkergraph')
==>tinkergraph[vertices:0 edges:0]
gremlin> g.loadGraphML('data/graph-example-1.xml')
==>null
gremlin> g.shutdown()
../data/tg/tinkergraph/tinkergraph.dat (No such file or directory)
Data is lost...
For consistency, directories and graph file should be created within the constructor,
not at shutdown() time.
When trying to create a DexGraph() in an inexistent directory:
gremlin> g = new DexGraph('../data/dex/tinkergraph')
[DEX: 3] Cannot open file
For consistency, directories and graph file should be created.
Thanks,
Pierre