I used 2 methods to import it all are failed. gremlin> graph.io(graphson()).readGraph("import/test.json") graph.io(IoCore.graphson()).readGraph("import/test.json"); But for the example graphson I can import it.
gremlin> graph.io(graphson()).readGraph("data/tinkerpop-modern.json") Another issue is about update and delete vertices and edges?
Below is the failed GraphSON file example: This is the reference : https://github.com/tinkerpop/blueprints/wiki/GraphSON-Reader-and-Writer-Library { "graph": { "mode":"NORMAL", "vertices": [ { "name": "lop", "lang": "java", "_id": "3", "_type": "vertex" }, { "name": "vadas", "age": 27, "_id": "2", "_type": "vertex" }, { "name": "marko", "age": 29, "_id": "1", "_type": "vertex" }, { "name": "peter", "age": 35, "_id": "6", "_type": "vertex" }, { "name": "ripple", "lang": "java", "_id": "5", "_type": "vertex" }, { "name": "josh", "age": 32, "_id": "4", "_type": "vertex" } ], "edges": [ { "weight": 1, "_id": "10", "_type": "edge", "_outV": "4", "_inV": "5", "_label": "created" }, { "weight": 0.5, "_id": "7", "_type": "edge", "_outV": "1", "_inV": "2", "_label": "knows" }, { "weight": 0.4000000059604645, "_id": "9", "_type": "edge", "_outV": "1", "_inV": "3", "_label": "created" }, { "weight": 1, "_id": "8", "_type": "edge", "_outV": "1", "_inV": "4", "_label": "knows" }, { "weight": 0.4000000059604645, "_id": "11", "_type": "edge", "_outV": "4", "_inV": "3", "_label": "created" }, { "weight": 0.20000000298023224, "_id": "12", "_type": "edge", "_outV": "6", "_inV": "3", "_label": "created" } ] } }
|
|
toggle quoted message
Show quoted text
On Mon, Aug 7, 2017 at 1:17 AM, hu junjie <hjj...@...> wrote: I used 2 methods to import it all are failed. gremlin> graph.io(graphson()).readGraph("import/test.json") graph.io(IoCore.graphson()).readGraph("import/test.json"); But for the example graphson I can import it.
gremlin> graph.io(graphson()).readGraph("data/tinkerpop-modern.json") Another issue is about update and delete vertices and edges?
Below is the failed GraphSON file example: This is the reference : https://github.com/tinkerpop/blueprints/wiki/GraphSON-Reader-and-Writer-Library{ "graph": { "mode":"NORMAL", "vertices": [ { "name": "lop", "lang": "java", "_id": "3", "_type": "vertex" }, { "name": "vadas", "age": 27, "_id": "2", "_type": "vertex" }, { "name": "marko", "age": 29, "_id": "1", "_type": "vertex" }, { "name": "peter", "age": 35, "_id": "6", "_type": "vertex" }, { "name": "ripple", "lang": "java", "_id": "5", "_type": "vertex" }, { "name": "josh", "age": 32, "_id": "4", "_type": "vertex" } ], "edges": [ { "weight": 1, "_id": "10", "_type": "edge", "_outV": "4", "_inV": "5", "_label": "created" }, { "weight": 0.5, "_id": "7", "_type": "edge", "_outV": "1", "_inV": "2", "_label": "knows" }, { "weight": 0.4000000059604645, "_id": "9", "_type": "edge", "_outV": "1", "_inV": "3", "_label": "created" }, { "weight": 1, "_id": "8", "_type": "edge", "_outV": "1", "_inV": "4", "_label": "knows" }, { "weight": 0.4000000059604645, "_id": "11", "_type": "edge", "_outV": "4", "_inV": "3", "_label": "created" }, { "weight": 0.20000000298023224, "_id": "12", "_type": "edge", "_outV": "6", "_inV": "3", "_label": "created" } ] } }
--
You received this message because you are subscribed to the Google Groups "JanusGraph users list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to janusgraph-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
|
|
Hello Robert! I read the document with the link you sent.I want to know the issue about update and delete vertices and edges. Where is the document about the issue? I want to use these elements with my Python application! Thanks a lot! 在 2017年8月8日星期二 UTC+8上午12:44:12,Robert Dale写道:
toggle quoted message
Show quoted text
On Mon, Aug 7, 2017 at 1:17 AM, hu junjie <h...@...> wrote: I used 2 methods to import it all are failed. gremlin> graph.io(graphson()).readGraph("import/test.json") graph.io(IoCore.graphson()).readGraph("import/test.json"); But for the example graphson I can import it.
gremlin> graph.io(graphson()).readGraph("data/tinkerpop-modern.json") Another issue is about update and delete vertices and edges?
Below is the failed GraphSON file example: This is the reference : https://github.com/tinkerpop/blueprints/wiki/GraphSON-Reader-and-Writer-Library{ "graph": { "mode":"NORMAL", "vertices": [ { "name": "lop", "lang": "java", "_id": "3", "_type": "vertex" }, { "name": "vadas", "age": 27, "_id": "2", "_type": "vertex" }, { "name": "marko", "age": 29, "_id": "1", "_type": "vertex" }, { "name": "peter", "age": 35, "_id": "6", "_type": "vertex" }, { "name": "ripple", "lang": "java", "_id": "5", "_type": "vertex" }, { "name": "josh", "age": 32, "_id": "4", "_type": "vertex" } ], "edges": [ { "weight": 1, "_id": "10", "_type": "edge", "_outV": "4", "_inV": "5", "_label": "created" }, { "weight": 0.5, "_id": "7", "_type": "edge", "_outV": "1", "_inV": "2", "_label": "knows" }, { "weight": 0.4000000059604645, "_id": "9", "_type": "edge", "_outV": "1", "_inV": "3", "_label": "created" }, { "weight": 1, "_id": "8", "_type": "edge", "_outV": "1", "_inV": "4", "_label": "knows" }, { "weight": 0.4000000059604645, "_id": "11", "_type": "edge", "_outV": "4", "_inV": "3", "_label": "created" }, { "weight": 0.20000000298023224, "_id": "12", "_type": "edge", "_outV": "6", "_inV": "3", "_label": "created" } ] } }
--
You received this message because you are subscribed to the Google Groups "JanusGraph users list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to janusgraph-use...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
|
|
hi, guys.Are you figure out how to update and delete vertices and edges?
在 2017年8月8日星期二 UTC+8上午12:01:35,hu junjie写道:
toggle quoted message
Show quoted text
I used 2 methods to import it all are failed. gremlin> graph.io(graphson()).readGraph("import/test.json") graph.io(IoCore.graphson()).readGraph("import/test.json"); But for the example graphson I can import it.
gremlin> graph.io(graphson()).readGraph("data/tinkerpop-modern.json") Another issue is about update and delete vertices and edges?
Below is the failed GraphSON file example: This is the reference : https://github.com/tinkerpop/blueprints/wiki/GraphSON-Reader-and-Writer-Library{ "graph": { "mode":"NORMAL", "vertices": [ { "name": "lop", "lang": "java", "_id": "3", "_type": "vertex" }, { "name": "vadas", "age": 27, "_id": "2", "_type": "vertex" }, { "name": "marko", "age": 29, "_id": "1", "_type": "vertex" }, { "name": "peter", "age": 35, "_id": "6", "_type": "vertex" }, { "name": "ripple", "lang": "java", "_id": "5", "_type": "vertex" }, { "name": "josh", "age": 32, "_id": "4", "_type": "vertex" } ], "edges": [ { "weight": 1, "_id": "10", "_type": "edge", "_outV": "4", "_inV": "5", "_label": "created" }, { "weight": 0.5, "_id": "7", "_type": "edge", "_outV": "1", "_inV": "2", "_label": "knows" }, { "weight": 0.4000000059604645, "_id": "9", "_type": "edge", "_outV": "1", "_inV": "3", "_label": "created" }, { "weight": 1, "_id": "8", "_type": "edge", "_outV": "1", "_inV": "4", "_label": "knows" }, { "weight": 0.4000000059604645, "_id": "11", "_type": "edge", "_outV": "4", "_inV": "3", "_label": "created" }, { "weight": 0.20000000298023224, "_id": "12", "_type": "edge", "_outV": "6", "_inV": "3", "_label": "created" } ] } }
|
|
Ankur Goel <ankur...@...>
graph.io(IoCore.graphson()).readGraph("data/tinkerpop-crew.json”);
Use this, this is able to load graphson format.
~AnkurG
toggle quoted message
Show quoted text
On Monday, August 7, 2017 at 9:31:35 PM UTC+5:30, hu junjie wrote: I used 2 methods to import it all are failed. gremlin> graph.io(graphson()).readGraph("import/test.json") graph.io(IoCore.graphson()).readGraph("import/test.json"); But for the example graphson I can import it.
gremlin> graph.io(graphson()).readGraph("data/tinkerpop-modern.json") Another issue is about update and delete vertices and edges?
Below is the failed GraphSON file example: This is the reference : https://github.com/tinkerpop/blueprints/wiki/GraphSON-Reader-and-Writer-Library{ "graph": { "mode":"NORMAL", "vertices": [ { "name": "lop", "lang": "java", "_id": "3", "_type": "vertex" }, { "name": "vadas", "age": 27, "_id": "2", "_type": "vertex" }, { "name": "marko", "age": 29, "_id": "1", "_type": "vertex" }, { "name": "peter", "age": 35, "_id": "6", "_type": "vertex" }, { "name": "ripple", "lang": "java", "_id": "5", "_type": "vertex" }, { "name": "josh", "age": 32, "_id": "4", "_type": "vertex" } ], "edges": [ { "weight": 1, "_id": "10", "_type": "edge", "_outV": "4", "_inV": "5", "_label": "created" }, { "weight": 0.5, "_id": "7", "_type": "edge", "_outV": "1", "_inV": "2", "_label": "knows" }, { "weight": 0.4000000059604645, "_id": "9", "_type": "edge", "_outV": "1", "_inV": "3", "_label": "created" }, { "weight": 1, "_id": "8", "_type": "edge", "_outV": "1", "_inV": "4", "_label": "knows" }, { "weight": 0.4000000059604645, "_id": "11", "_type": "edge", "_outV": "4", "_inV": "3", "_label": "created" }, { "weight": 0.20000000298023224, "_id": "12", "_type": "edge", "_outV": "6", "_inV": "3", "_label": "created" } ] } }
|
|
sankeeta kamath <sankee...@...>
On Monday, August 7, 2017 at 9:01:35 AM UTC-7, hu junjie wrote: I used 2 methods to import it all are failed. gremlin> graph.io(graphson()).readGraph("import/test.json") graph.io(IoCore.graphson()).readGraph("import/test.json"); But for the example graphson I can import it.
gremlin> graph.io(graphson()).readGraph("data/tinkerpop-modern.json") Another issue is about update and delete vertices and edges?
Below is the failed GraphSON file example: This is the reference : https://github.com/tinkerpop/blueprints/wiki/GraphSON-Reader-and-Writer-Library{ "graph": { "mode":"NORMAL", "vertices": [ { "name": "lop", "lang": "java", "_id": "3", "_type": "vertex" }, { "name": "vadas", "age": 27, "_id": "2", "_type": "vertex" }, { "name": "marko", "age": 29, "_id": "1", "_type": "vertex" }, { "name": "peter", "age": 35, "_id": "6", "_type": "vertex" }, { "name": "ripple", "lang": "java", "_id": "5", "_type": "vertex" }, { "name": "josh", "age": 32, "_id": "4", "_type": "vertex" } ], "edges": [ { "weight": 1, "_id": "10", "_type": "edge", "_outV": "4", "_inV": "5", "_label": "created" }, { "weight": 0.5, "_id": "7", "_type": "edge", "_outV": "1", "_inV": "2", "_label": "knows" }, { "weight": 0.4000000059604645, "_id": "9", "_type": "edge", "_outV": "1", "_inV": "3", "_label": "created" }, { "weight": 1, "_id": "8", "_type": "edge", "_outV": "1", "_inV": "4", "_label": "knows" }, { "weight": 0.4000000059604645, "_id": "11", "_type": "edge", "_outV": "4", "_inV": "3", "_label": "created" }, { "weight": 0.20000000298023224, "_id": "12", "_type": "edge", "_outV": "6", "_inV": "3", "_label": "created" } ] } }
You can use
import groovy.json.*
|
|
This is currently what I'm struggling with - if I created a node in one load of a GraphSON file, and have to reference it again by vertex ID in a second and separate load of another GraphSON file, how does one reference it when establishing edges to/from it?
Tim
toggle quoted message
Show quoted text
On Tuesday, August 22, 2017 at 5:24:01 AM UTC-4, st...@... wrote: hi, guys.Are you figure out how to update and delete vertices and edges? 在 2017年8月8日星期二 UTC+8上午12:01:35,hu junjie写道: I used 2 methods to import it all are failed. gremlin> graph.io(graphson()).readGraph("import/test.json") graph.io(IoCore.graphson()).readGraph("import/test.json"); But for the example graphson I can import it.
gremlin> graph.io(graphson()).readGraph("data/tinkerpop-modern.json") Another issue is about update and delete vertices and edges?
Below is the failed GraphSON file example: This is the reference : https://github.com/tinkerpop/blueprints/wiki/GraphSON-Reader-and-Writer-Library{ "graph": { "mode":"NORMAL", "vertices": [ { "name": "lop", "lang": "java", "_id": "3", "_type": "vertex" }, { "name": "vadas", "age": 27, "_id": "2", "_type": "vertex" }, { "name": "marko", "age": 29, "_id": "1", "_type": "vertex" }, { "name": "peter", "age": 35, "_id": "6", "_type": "vertex" }, { "name": "ripple", "lang": "java", "_id": "5", "_type": "vertex" }, { "name": "josh", "age": 32, "_id": "4", "_type": "vertex" } ], "edges": [ { "weight": 1, "_id": "10", "_type": "edge", "_outV": "4", "_inV": "5", "_label": "created" }, { "weight": 0.5, "_id": "7", "_type": "edge", "_outV": "1", "_inV": "2", "_label": "knows" }, { "weight": 0.4000000059604645, "_id": "9", "_type": "edge", "_outV": "1", "_inV": "3", "_label": "created" }, { "weight": 1, "_id": "8", "_type": "edge", "_outV": "1", "_inV": "4", "_label": "knows" }, { "weight": 0.4000000059604645, "_id": "11", "_type": "edge", "_outV": "4", "_inV": "3", "_label": "created" }, { "weight": 0.20000000298023224, "_id": "12", "_type": "edge", "_outV": "6", "_inV": "3", "_label": "created" } ] } }
|
|