java - How do I disable automatic type creation in Titan 0.4? -
how can disable automatic type creation in titan?
i modified graphofthegodsfactory example effect, inserting line
config.setproperty(graphdatabaseconfiguration.auto_type_key, "none");
but not seem have desired effect, per rexster console below:
rexster[groovy]> saturn = g.v("name", "saturn").next() ==>v[4] rexster[groovy]> saturn.setproperty("somenewprop", "xyz") ==>null rexster[groovy]> saturn.map ==>{somenewprop=xyz, name=saturn, age=10000, type=titan} rexster[groovy]> saturn.addedge("somenewlabel", g.v("name", "cerberus").next()) ==>e[1g51-4-7i][4-somenewlabel->44] rexster[groovy]> g.config.defaulttypemaker ==>com.thinkaurelius.titan.graphdb.blueprints.blueprintsdefaulttypemaker@5b97e4fa
i using titan-server-0.4.2
.
i'm not clear on how creating graph instance graphofthegodsfactory
, how connecting graph in rexster, assuming ran modified graphofthegodsfactory
, created graph , connected rexster graph, need set auto-type
none
in rexster.xml
setting respected rexster.
Comments
Post a Comment