Open veqryn opened 2 years ago
The owner of that repo removed the second getID, and the query to the gremlin server now completes successfully. However, no graph is shown (see https://github.com/pietermartin/sqlg/issues/429 ). Is this visualizer tool expecting something else to be returned?
Here is a sample of what I see being returned by the gremlin-server, as shown in chrome inspect network tab:
[{
"id": {
"@type": "g:Map",
"@value": ["id", {
"@type": "g:Int64",
"@value": 1
}, "schemaTable", {
"@type": "simple:schemaTable",
"@value": {
"@type": "g:Map",
"@value": ["schema", "public", "table", "song"]
}
}]
},
"label": "song",
"properties": {
"name": "HEY BO DIDDLEY",
"songType": "cover",
"performances": 5
},
"edges": [{
"id": "{\"@type\":\"g:Map\",\"@value\":[\"id\",{\"@type\":\"g:Int64\",\"@value\":5},\"schemaTable\",{\"@type\":\"simple:schemaTable\",\"@value\":{\"@type\":\"g:Map\",\"@value\":[\"schema\",\"public\",\"table\",\"followedBy\"]}}]}",
"from": {
"@type": "g:Map",
"@value": ["id", {
"@type": "g:Int64",
"@value": 1
}, "schemaTable", {
"@type": "simple:schemaTable",
"@value": {
"@type": "g:Map",
"@value": ["schema", "public", "table", "song"]
}
}]
},
"to": {
"@type": "g:Map",
"@value": ["id", {
"@type": "g:Int64",
"@value": 2
}, "schemaTable", {
"@type": "simple:schemaTable",
"@value": {
"@type": "g:Map",
"@value": ["schema", "public", "table", "song"]
}
}]
},
"label": "followedBy",
"properties": {
"weight": 1
}
}, {
"id": "{\"@type\":\"g:Map\",\"@value\":[\"id\",{\"@type\":\"g:Int64\",\"@value\":7},\"schemaTable\",{\"@type\":\"simple:schemaTable\",\"@value\":{\"@type\":\"g:Map\",\"@value\":[\"schema\",\"public\",\"table\",\"followedBy\"]}}]}",
"from": {
"@type": "g:Map",
"@value": ["id", {
"@type": "g:Int64",
"@value": 1
}, "schemaTable", {
"@type": "simple:schemaTable",
"@value": {
"@type": "g:Map",
"@value": ["schema", "public", "table", "song"]
}
}]
},
"to": {
"@type": "g:Map",
"@value": ["id", {
"@type": "g:Int64",
"@value": 3
}, "schemaTable", {
"@type": "simple:schemaTable",
"@value": {
"@type": "g:Map",
"@value": ["schema", "public", "table", "song"]
}
}]
},
"label": "followedBy",
"properties": {
"weight": 2
}
}, {
"id": "{\"@type\":\"g:Map\",\"@value\":[\"id\",{\"@type\":\"g:Int64\",\"@value\":74},\"schemaTable\",{\"@type\":\"simple:schemaTable\",\"@value\":{\"@type\":\"g:Map\",\"@value\":[\"schema\",\"public\",\"table\",\"followedBy\"]}}]}",
"from": {
"@type": "g:Map",
"@value": ["id", {
"@type": "g:Int64",
"@value": 1
}, "schemaTable", {
"@type": "simple:schemaTable",
"@value": {
"@type": "g:Map",
"@value": ["schema", "public", "table", "song"]
}
}]
},
"to": {
"@type": "g:Map",
"@value": ["id", {
"@type": "g:Int64",
"@value": 4
}, "schemaTable", {
"@type": "simple:schemaTable",
"@value": {
"@type": "g:Map",
"@value": ["schema", "public", "table", "song"]
}
}]
},
"label": "followedBy",
"properties": {
"weight": 1
}
}, {
"id": "{\"@type\":\"g:Map\",\"@value\":[\"id\",{\"@type\":\"g:Int64\",\"@value\":150},\"schemaTable\",{\"@type\":\"simple:schemaTable\",\"@value\":{\"@type\":\"g:Map\",\"@value\":[\"schema\",\"public\",\"table\",\"followedBy\"]}}]}",
"from": {
"@type": "g:Map",
"@value": ["id", {
"@type": "g:Int64",
"@value": 1
}, "schemaTable", {
"@type": "simple:schemaTable",
"@value": {
"@type": "g:Map",
"@value": ["schema", "public", "table", "song"]
}
}]
},
"to": {
"@type": "g:Map",
"@value": ["id", {
"@type": "g:Int64",
"@value": 5
}, "schemaTable", {
"@type": "simple:schemaTable",
"@value": {
"@type": "g:Map",
"@value": ["schema", "public", "table", "song"]
}
}]
},
"label": "followedBy",
"properties": {
"weight": 1
}
}, {
"id": "{\"@type\":\"g:Map\",\"@value\":[\"id\",{\"@type\":\"g:Int64\",\"@value\":194},\"schemaTable\",{\"@type\":\"simple:schemaTable\",\"@value\":{\"@type\":\"g:Map\",\"@value\":[\"schema\",\"public\",\"table\",\"followedBy\"]}}]}",
"from": {
"@type": "g:Map",
"@value": ["id", {
"@type": "g:Int64",
"@value": 1
}, "schemaTable", {
"@type": "simple:schemaTable",
"@value": {
"@type": "g:Map",
"@value": ["schema", "public", "table", "song"]
}
}]
},
"to": {
"@type": "g:Map",
"@value": ["id", {
"@type": "g:Int64",
"@value": 6
}, "schemaTable", {
"@type": "simple:schemaTable",
"@value": {
"@type": "g:Map",
"@value": ["schema", "public", "table", "song"]
}
}]
},
"label": "followedBy",
"properties": {
"weight": 1
}
}, {
"id": "{\"@type\":\"g:Map\",\"@value\":[\"id\",{\"@type\":\"g:Int64\",\"@value\":105},\"schemaTable\",{\"@type\":\"simple:schemaTable\",\"@value\":{\"@type\":\"g:Map\",\"@value\":[\"schema\",\"public\",\"table\",\"sungBy\"]}}]}",
"from": {
"@type": "g:Map",
"@value": ["id", {
"@type": "g:Int64",
"@value": 1
}, "schemaTable", {
"@type": "simple:schemaTable",
"@value": {
"@type": "g:Map",
"@value": ["schema", "public", "table", "song"]
}
}]
},
"to": {
"@type": "g:Map",
"@value": ["id", {
"@type": "g:Int64",
"@value": 2
}, "schemaTable", {
"@type": "simple:schemaTable",
"@value": {
"@type": "g:Map",
"@value": ["schema", "public", "table", "artist"]
}
}]
},
"label": "sungBy",
"properties": {}
}, {
"id": "{\"@type\":\"g:Map\",\"@value\":[\"id\",{\"@type\":\"g:Int64\",\"@value\":359},\"schemaTable\",{\"@type\":\"simple:schemaTable\",\"@value\":{\"@type\":\"g:Map\",\"@value\":[\"schema\",\"public\",\"table\",\"writtenBy\"]}}]}",
"from": {
"@type": "g:Map",
"@value": ["id", {
"@type": "g:Int64",
"@value": 1
}, "schemaTable", {
"@type": "simple:schemaTable",
"@value": {
"@type": "g:Map",
"@value": ["schema", "public", "table", "song"]
}
}]
},
"to": {
"@type": "g:Map",
"@value": ["id", {
"@type": "g:Int64",
"@value": 88
}, "schemaTable", {
"@type": "simple:schemaTable",
"@value": {
"@type": "g:Map",
"@value": ["schema", "public", "table", "artist"]
}
}]
},
"label": "writtenBy",
"properties": {}
}]
}]
The real response has like 808 nodes, not just 1, but I just showed the first node above.
I have the grateful dead json loaded into a graph, using this graph database: https://github.com/pietermartin/sqlg
I am running
g.V()
on your visualizer tool, and getting an error.The logs from this tool are:
The following logs from the gremlin-server:
This points to: https://github.com/pietermartin/sqlg/blob/master/sqlg-core/src/main/java/org/umlg/sqlg/structure/RecordId.java#L187-L198
Is there anything that can be done to avoid this?
Can it use v3d0?