can I use multi-value property on meta-properties?


Jerry <boyeggp...@...>
 

Hi,
can I use multi-value property on meta-properties?I want store the following data in one node :

{time:[1,--->{user:['a','b']}
          2,--->{user:['c','d']
          ......
}

I try the following command in gremlin console:graph = JanusGraphFactory.open("conf/janusgraph-hbase.properties")
conf = new BaseConfiguration()
conf.setProperty("gremlin.tinkergraph.defaultVertexPropertyCardinality","list")
g=graph.traversal()

g.addV('time','1','time','2')
g.V().properties("time").hasValue("2").property('user','a')
g.V().properties("time").hasValue("2").property('user','b')

g.V().properties("time")
==>vp[time->1]
==>vp[time->2]

g.V().properties("time").hasValue("2").properties()
==>p[user->b]

I find the property on time property only accept single value.thanks,Jerry

Join janusgraph-users@lists.lfaidata.foundation to automatically receive all group messages.