gremlin

How to fix 'java.lang.NoClassDefFoundError: org/apache/tinkerpop/gremlin/process/traversal/dsl/graph/GraphTraversalSource$GraphTraversalSourceStub'?

馋奶兔 提交于 2021-02-19 09:25:04
问题 I am trying to initialize an in-memory graph using TinkerGraph. Firstly, i have defined the bean in my context xml file and tried to initialise the TinkerGraph. My intention is to unit test the classes that i have created for forming the gremlin queries, the end queries that i get from these classes are in the form of a string, so in order to execute them through the TinkerGraph, i have the used the approach given in the following post: Get Gremlin query as a String and execute it in java

How do you connect to a Cosmos Db (primarily updated via SQL API) using Gremlin.Net ? (can you?)

早过忘川 提交于 2021-02-10 15:58:11
问题 Im working on a Cosmos DB app that stores both standard documents and graph documents. We are saving both types via the documentdb api and I am able to run graph queries that return Graphson using the DocumentClient.CreateGremlinQuery method. This graphson is to be read by a web app and the graph displayed for user viewing and so on. My issue is that I cannot define the version of the Graphson format returned when using the Microsoft.Azure.Graphs method. So i looked into Gremlin.net and that

How do you connect to a Cosmos Db (primarily updated via SQL API) using Gremlin.Net ? (can you?)

混江龙づ霸主 提交于 2021-02-10 15:56:02
问题 Im working on a Cosmos DB app that stores both standard documents and graph documents. We are saving both types via the documentdb api and I am able to run graph queries that return Graphson using the DocumentClient.CreateGremlinQuery method. This graphson is to be read by a web app and the graph displayed for user viewing and so on. My issue is that I cannot define the version of the Graphson format returned when using the Microsoft.Azure.Graphs method. So i looked into Gremlin.net and that

Variables - Gremlin on Neptune

假如想象 提交于 2021-02-10 02:58:24
问题 I'm on the Gremlin console and connected to an AWS Neptune DB g.V().hasLabel('Risk').toList() provides the expected results, but when i try to assign the results to a variable risks = g.V().hasLabel('Risk').toList() I get the message below - the token recognition error is clearly throwing on the variable name because when i change the variable name the position and "at" part of the message changes. {"requestId":"650d7c4b-44d1-43f8-b9a3-fbf085cc3ead","code":"MalformedQueryException",

Variables - Gremlin on Neptune

别等时光非礼了梦想. 提交于 2021-02-10 02:56:47
问题 I'm on the Gremlin console and connected to an AWS Neptune DB g.V().hasLabel('Risk').toList() provides the expected results, but when i try to assign the results to a variable risks = g.V().hasLabel('Risk').toList() I get the message below - the token recognition error is clearly throwing on the variable name because when i change the variable name the position and "at" part of the message changes. {"requestId":"650d7c4b-44d1-43f8-b9a3-fbf085cc3ead","code":"MalformedQueryException",

Variables - Gremlin on Neptune

*爱你&永不变心* 提交于 2021-02-10 02:55:24
问题 I'm on the Gremlin console and connected to an AWS Neptune DB g.V().hasLabel('Risk').toList() provides the expected results, but when i try to assign the results to a variable risks = g.V().hasLabel('Risk').toList() I get the message below - the token recognition error is clearly throwing on the variable name because when i change the variable name the position and "at" part of the message changes. {"requestId":"650d7c4b-44d1-43f8-b9a3-fbf085cc3ead","code":"MalformedQueryException",

Variables - Gremlin on Neptune

自闭症网瘾萝莉.ら 提交于 2021-02-10 02:54:52
问题 I'm on the Gremlin console and connected to an AWS Neptune DB g.V().hasLabel('Risk').toList() provides the expected results, but when i try to assign the results to a variable risks = g.V().hasLabel('Risk').toList() I get the message below - the token recognition error is clearly throwing on the variable name because when i change the variable name the position and "at" part of the message changes. {"requestId":"650d7c4b-44d1-43f8-b9a3-fbf085cc3ead","code":"MalformedQueryException",

Variables - Gremlin on Neptune

一曲冷凌霜 提交于 2021-02-10 02:54:42
问题 I'm on the Gremlin console and connected to an AWS Neptune DB g.V().hasLabel('Risk').toList() provides the expected results, but when i try to assign the results to a variable risks = g.V().hasLabel('Risk').toList() I get the message below - the token recognition error is clearly throwing on the variable name because when i change the variable name the position and "at" part of the message changes. {"requestId":"650d7c4b-44d1-43f8-b9a3-fbf085cc3ead","code":"MalformedQueryException",

Variables - Gremlin on Neptune

纵饮孤独 提交于 2021-02-10 02:53:28
问题 I'm on the Gremlin console and connected to an AWS Neptune DB g.V().hasLabel('Risk').toList() provides the expected results, but when i try to assign the results to a variable risks = g.V().hasLabel('Risk').toList() I get the message below - the token recognition error is clearly throwing on the variable name because when i change the variable name the position and "at" part of the message changes. {"requestId":"650d7c4b-44d1-43f8-b9a3-fbf085cc3ead","code":"MalformedQueryException",

Gremlin: How do you find vertices without a particular edge?

你。 提交于 2021-02-07 13:31:48
问题 I've been looking at the Gremlin graph language, and it appears very powerful. However, whilst running through what it can do to evaluate it against requirements, I came across a case that I can't seem to complete. Assuming Gremlin is started, and using its example database: gremlin> g = TinkerGraphFactory.createTinkerGraph() ... gremlin> g.V.out('knows') ==>v[2] ==>v[4] So this shows vertices that have an edge of 'knows'. However, I want to find vertices that do not have edges of 'knows'.