Thanks for your answer. The missing .json filetype was a typo, I'm sorry for that. When executing the loadGraphSON function with the proper file path, the JSON-file containing the Graph of the Gods is still not loaded into Gremlin (e.g. g.V returns no nodes).
gremlin> g.loadGraphSON("examples/graph-of-the-gods.json")
==>null
gremlin> g.V
13:40:57 WARN com.thinkaurelius.titan.graphdb.transaction.StandardTitanTx - Query requires iterating over all vertices [()]. For better performance, use indexes
I'm aware of the fact that I can use the built-in GraphofTheGodsFactory in this specific case (and this indeeds loads the Graph of the Gods successfully), but my final goal is to load a custom .json-file of a custom graph into Gremlin (or Rexster), in order to create and load a new Titan graph. Then, I would like to store this custom graph using the Cassandra storage backend.
My custom .json-file has the following syntax. I think this is the right way to represent a Titan graph in JSON, but please correct me if I'm wrong.
{"username": "AntonioAquino", "first_name": "Antonio", "last_name": "Aquino", "_outE": [{"_label": "knows", "_id": 16767, "_inV": 2199023293923}, ...], "creation_date": "2010-04-16T00:43:28.313+0000", "_inE": [{"_label": "hasCreator", "_id": 72, "_outV": 34359738458}, ...], "_id": 1099511693994, "type": "person"}
Regards,
Yordi
Op maandag 20 april 2015 11:50:09 UTC+2 schreef Daniel Kuppitz: