I accidentally posted this question in the Janusgraph developer group. Now that I noticed this I'm reposting it here, as I think it fits better in here.
In this book the author states that code like this:
g.addV("A").property("test", "test1").property("test", "test2")
would result in a Vertex A with property test containing two values, i.e., test1 and test2.
When I do the same in JG, then only test2 is saved as the value of test.
Janusgraph only supports the above described behavior if I set "schema.default=tp3".
However, when I do so, then JG again behaves differently elsewhere than the book describes, e.g., when updating the list property.
In the book they have two options of updating a list property,
g.V(someId).property("test", "test3")
will replace the content of the list with test3, whereas
g.V(someId).property(Cardinality.list, "test", "test4)
will append the value test4 to the existing values. However, JG appends the value in both cases.
Is this an intended behavior? Or am I doing something wrong?
Any advice is highly appreciated :)
Kind regards,
Thomas