Questions tagged [graphson]
12 questions
5
votes
1 answer
Normal JSON to GraphSON format
I have two questions:
Where I can actually find the basic format for a GraphSON file, that is guaranteed to be successfully loaded by the gremlin console? I'm trying to convert a JSON (with about 10-20 fields) to another file that can be queried by…

Adrian Pop
- 1,879
- 5
- 28
- 40
4
votes
1 answer
Get vertex properties information in simple format
Let's say I have two nodes 'A' and 'B' in graph with each node having 'name' (string) and 'roll-no' (int) properties. How can I write the query to get the node properties information in below format. Please note that I don't need data type…

user1689963
- 91
- 4
3
votes
1 answer
How to add g:Vertex GraphSON in Python Gremlin?
I put the example vertex GraphSON of a g:Vertex in a file:
$ cat vertex.json
{ "@type" : "g:Vertex", "@value" : { "id" : { "@type" : "g:Int32", "@value" : 1 }, "label" : "person", "properties" : { "name" : [ { "@type" : "g:VertexProperty", "@value"…

user1717828
- 7,122
- 8
- 34
- 59
3
votes
5 answers
How do i use GraphSON v2 instead of v3?
i am trying to run a piece of code in python which uses Cosmos DB from Microsoft Azure. I am currently using gremlinpython 3.2.6 and the latest version of Cosmos (default on microsoft azure) but there seems to be some compatibility issues between…

NoobCoder
- 117
- 1
- 11
3
votes
1 answer
How to visualize graphson data?
i got a requirement to build a Graphson format for the provided data, i'm all done performing that, now my question is, how do i visualize the graphson the way we do that in yEd for graphml. A) Is there any tool to perform that? B) If not, then is…

SpaceyBot
- 482
- 1
- 4
- 20
2
votes
1 answer
Issues getting correct data from gremlin server
I am having a series of nonsensical issues that are driving me nuts. There are a couple of things I am trying to accomplish:
I am trying to set up my gremlin server to "load" a certain json file that is in graphson format, and getting really weird…

John Lexus
- 3,576
- 3
- 15
- 33
1
vote
1 answer
Error loading GraphSON data into a DSE graph with custom vertex ids
I have created a schema with a custom vertex id like:
schema.vertexLabel('foo').partitionKey('_id').ifNotExists().create()
I then populated a graph with data. Now I'd like to transfer that data to another graph via GraphSON. The new graph instance…

gerrard00
- 1,628
- 14
- 17
0
votes
1 answer
JanusGraph 3.x graphson import fails on prettified json
Does anyone else have this problem importing prettified json/graphson to JanusGraph?
Exactly the same file but not prettified (no carriage returns, tabs, whitespace) will import perfectly but if prettified it fails with the following…

julianhatwell
- 1,074
- 1
- 8
- 17
0
votes
1 answer
How to generate GraphSON data for export with Remote Traversal?
Example Code(JAVA):
Cluster cluster = Cluster.open(yml.getFile());
DriverRemoteConnection driver = DriverRemoteConnection.using(cluster, "graph_traversal");
GraphTraversalSource allGraph = AnonymousTraversalSource.traversal().withRemote(driver);
//…

nemo
- 171
- 2
- 12
0
votes
1 answer
Formatting CosmosDB Gremlin Query
I'm new to Gremlin and CosmosDB. I've been following the tinkerpop tutorials and am using the TinkerFactory.createModern() test graph.
What I am looking for is to return a graphson object similar to this from cosmosdb.
{
"user": {
"name":…

Coel Drysdale
- 193
- 2
- 12
0
votes
2 answers
Adding a Graph Vertex directly to CosmosDB in GraphSON format using gremlinpython
I am using gremlinpython to connect to a CosmosDB graph and would like to be able to directly add a vertex using a GraphSON formatted dictionary. Specifically, I would like to avoid having to dynamically build a gremlin query such…

Thursdays Coming
- 1,002
- 13
- 28
0
votes
2 answers
Convert GraphResultSet JSON using Graphson
I'm trying to convert the GraphResultSet object to JSON format similar to datastax studio returns. I'm trying to use Graphson. Is there any sample codes convert the result object to JSON?
i tried the following from the tikerpop blueprints but its…

Sads
- 557
- 6
- 20