Severin Stampler created TINKERPOP-1712:
-------------------------------------------

             Summary: Loading graph from Gryo or GrahpSON into TinkerGraph 
doesn't load multi-properties
                 Key: TINKERPOP-1712
                 URL: https://issues.apache.org/jira/browse/TINKERPOP-1712
             Project: TinkerPop
          Issue Type: Bug
          Components: io
    Affects Versions: 3.2.5
         Environment: Linux or Windows, Gremlin console 3.2.5, TinkerGraph
            Reporter: Severin Stampler


* Create a simple graph with TinkerGraph.
* Create a vertex
* Create multiple properties with cardinality list on that vertex
* Save the graph to Gryo or GraphSON
* Load the graph from the saved file
* ==> the vertex has only one property

Example:
{code:groovy}
graph = TinkerGraph.open()
g = graph.traversal()
v = g.addV().property('name','marko').property('name','marko a. 
rodriguez').next()
g.V().properties()
// Output:
// ==>vp[name->marko]
// ==>vp[name->marko a. rodriguez]

 graph.io(IoCore.gryo()).writeGraph("../test.kryo");

newGraph = TinkerGraph.open()
newGraph.io(IoCore.gryo()).readGraph("../test.kryo");
ng = newGraph.traversal()
ng.V().properties()
// Output:
// ==>vp[name->marko a. rodriguez]
{code}




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to