I receive the following error when trying to add an edge:
BaseConfiguration conf = new BaseConfiguration();
conf.setProperty("storage.backend", "cassandra");
conf.setProperty("storage.hostname", "127.0.0.1");
TitanGraph g = TitanFactory.open(conf);
Vertex v = g.getVertex(536);
System.out.println(v);
Vertex u = g.getVertex(524);
System.out.println(u);
g.addEdge(null, v, u, "type");
Exception in thread "main" java.lang.IllegalArgumentException: The type of given name is not a label: type
at com.thinkaurelius.titan.graphdb.transaction.StandardTitanTx.getEdgeLabel(StandardTitanTx.java:618)
at com.thinkaurelius.titan.graphdb.blueprints.TitanBlueprintsTransaction.addEdge(TitanBlueprintsTransaction.java:104)
at com.thinkaurelius.titan.graphdb.blueprints.TitanBlueprintsTransaction.addEdge(TitanBlueprintsTransaction.java:96)
at com.thinkaurelius.titan.graphdb.blueprints.TitanBlueprintsGraph.addEdge(TitanBlueprintsGraph.java:205)
at com.ibm.research.titan.Main.main(Main.java:23)
Is "type" some sort of reserved word that cannot be used for a label? Are there any workarounds?
Thanks,
JT