Hello,

In TinkerPop3, vertices can have multi-properties of the same key. These are 
called "vertex properties."

        
http://tinkerpop.incubator.apache.org/docs/3.0.0-SNAPSHOT/#vertex-properties

When you create a VertexProperty, you can provide a cardinality. For instance:

        vertex.property(single,'name','stephen') // if a property of name 
already exists, delete it and add stephen.
        vertex.property(list,'name','stephen') // add a new name property to 
vertex -- ignoring whether a name property already exists.
        vertex.property(set,'name','stephen') // if the name 'stephen' already 
exists, do not add a new property

The question is -- what is:

        vertex.property('name','stephen')

In other words, the default behavior. Right now, its Cardinality.list. However, 
many people have stated that they would like it to be Cardinality.single and 
thus, more aligned with TinkerPop2 and most graph database vendors.

This is something we will want to have down by TP3 GA -- so please voice your 
thoughts.

Thank you,
Marko.

http://markorodriguez.com

Reply via email to