Uploaded image for project: 'TinkerPop'
  1. TinkerPop
  2. TINKERPOP-1712

Loading graph from Gryo or GrahpSON into TinkerGraph doesn't load multi-properties

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 3.2.5
    • None
    • io
    • None
    • Linux or Windows, Gremlin console 3.2.5, TinkerGraph

    Description

      • 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:

      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]
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            severin.stampler Severin Stampler
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: