Hi All,
I'm still in the early stages of getting started, so I'm sure I'm doing something ridiculous. I'm following the documentation in the README to figure out how to add an edge, and it oddly works in a few cases, but in some cases it throws a weird exception. Here's what I'm trying to do:
G.create_edge(nil, action, product, :product)
And here's the stack trace I get:
#<NativeException: java.lang.IllegalArgumentException: The type of given name is not a label: product> with backtrace:
# com/thinkaurelius/titan/graphdb/transaction/AbstractTitanTx.java:287:in `getEdgeLabel'
# com/thinkaurelius/titan/graphdb/transaction/AbstractTitanTx.java:230:in `addEdge'
# com/thinkaurelius/titan/graphdb/blueprints/TitanBlueprintsTransaction.java:93:in `addEdge'
# sun/reflect/NativeMethodAccessorImpl.java:-2:in `invoke0'
# sun/reflect/NativeMethodAccessorImpl.java:57:in `invoke'
# sun/reflect/DelegatingMethodAccessorImpl.java:43:in `invoke'
# java/lang/reflect/Method.java:601:in `invoke'
# com/thinkaurelius/titan/graphdb/transaction/AbstractTitanTx.java:287:in `getEdgeLabel'
# com/thinkaurelius/titan/graphdb/transaction/AbstractTitanTx.java:230:in `addEdge'
# com/thinkaurelius/titan/graphdb/blueprints/TitanBlueprintsTransaction.java:93:in `addEdge'
# java/lang/reflect/Method.java:601:in `invoke'
# ./app/titan/action.rb:38:in `add_product_from_data'
This seems like a very simple thing to want to do, but apparently titan needs some special handling for labels? I can't explain what this works for some vertices and not others though. Does anybody have ideas about what might be going wrong?
Thanks,
Mark