Questions tagged [gremlin]

Gremlin is the graph traversal language and virtual machine of Apache TinkerPop™

Gremlin is a graph traversal language and virtual machine, developed by Apache TinkerPop. Gremlin is designed to work with any TinkerPop-enabled graph system, such as Titan, OrientDB, Neo4j, RDF stores like Stardog and Blazegraph, and others.

For more information, see the most recent reference documentation for TinkerPop.

3522 questions
1
vote
2 answers

Experience Neptune Gremlin connections problem on calling AWS lambda handlers` callback

I am using gremlin@3.3.5 for my Node.js 8.10 application with AWS Lambdas. The process works all fine for a single invocation. Here is my very sample code. const gremlin = require('gremlin'); const DriverRemoteConnection =…
1
vote
1 answer

Docker gremlin-server: "Cannot assign requested address"

I'm kind of green with Docker so forgive me if this is obvious. I have two docker containers that I'm trying to get to talk. One is running an instance of gremlin-server right out of the box. I started it with the command docker run…
M.Isenholt
  • 193
  • 1
  • 1
  • 8
1
vote
1 answer

Cosmos DB - Is there a way for auto-incremental field?

Cosmos DB, unlike SQL, doesn't support auto-incremental field. Any alternative for this?
user1472423
  • 101
  • 1
  • 12
1
vote
1 answer

Why does the traversal result changes after a by-step and keeps only one result?

I'm building an API to fetch and organize some information on my janusgraph database, but I'm relatively new to gremlin queries. I would like to know why a traversal in the second by-step of a group-step returns some incomplete info about the graph …
Victor Marcelino
  • 219
  • 3
  • 10
1
vote
1 answer

Gremlin - Is there a way for case-insensitive sensitive search?

I'm using Gremlin for Cosmos DB. I have vertices labeled 'Person'. In the front-end, I have a search box where the user can enter the name. Even though the user enters a partial name, irrespective of case, I need to get the relevant results by…
user1472423
  • 101
  • 1
  • 12
1
vote
1 answer

Is there an ability to limit the cypher query results by timelimit?

I'm running quite time consuming cypher queries in production. The query does not need to have all of the matched results, but rather should complete in a specified timelimit. If there are 10000 possible matches, it is ok to go with 5000, rather…
Rob Yart
  • 323
  • 1
  • 2
  • 13
1
vote
2 answers

Gremlin Python - Connection to Multi-Node JanusGraph Cluster

We looking to build a multi node JanusGraph cluster 10.74.19.32 (e.g. IP) 10.74.19.33 (e.g. IP) Our application is written in python and uses the gremlin python driver session = client.Client('ws://10.74.19.32:8182/gremlin',…
Moses
  • 113
  • 8
1
vote
1 answer

Connecting to AWS Neptune with Gremlin GraphFactory

The examples on the AWS documentation show how to connect to AWS Neptune using Gremlin as follows: Cluster.Builder builder =…
James Baker
  • 1,143
  • 17
  • 39
1
vote
1 answer

Referencing property in Gremlin query

I'm trying to do a query that looks somewhat like this: g.V('myId').as('me').out('member').hasLabel('myLabel').in('member').has('identifier', 'me.identifier') Where me.identifier would be changed to something that actually works. I just have no…
user3713080
  • 399
  • 4
  • 17
1
vote
1 answer

how do i find the betweenness centrality of a node in gremlin?

The betweenness centrality of a node V is defined as the proportion of shortest paths between all pairs of nodes that go through V. I have looked at the tinkerpop recipes documentation and i don't find it helpful/doesn't work. i.e it returns a…
Maths12
  • 852
  • 3
  • 17
  • 31
1
vote
1 answer

Gremlin query to override the Vertex

How to write gremlin query which will do Get existing vertex Remove all existing properties(obviously except id, label, index property etc) Add new properties with values(mostly string only) Or is there any alternate way to override the vertex…
Amol
  • 23
  • 6
1
vote
2 answers

Gremlin add relationship function is giving exception

Please see below code: peopleObj.forEach( item=>{ let user = item.user; let event = item.event; var userNode = g.addV('user'); Object.keys(user).forEach(att=>{ console.log('att: ' + att+", val: "+…
user3006967
  • 3,291
  • 10
  • 47
  • 72
1
vote
1 answer

Order by vertex property and edge property if it exists

Consider a social media site where a user (vertex) can share (edge) the post (vertex) of another user. When you construct the users feed, it would look something like this: const myUserId = 123; g.V(myUserId) .as("myUser") .union( // posts…
Fook
  • 5,320
  • 7
  • 35
  • 57
1
vote
1 answer

How to Generate TinkerPOP ByteCode?

I wonder if anyone can give me some pointers (that is where to start), on how to implement a translation from let say, a query language A to TinkerPop Graph Traversal. Let assume that A semantic intuitively translate to a subset of TinkerPop…
MaatDeamon
  • 9,532
  • 9
  • 60
  • 127
1
vote
1 answer

How Can I Return Meaningful Errors In Gremlin?

Let's say I have a huge gremlin query with 100 or more steps. One part of this query has a failure and I want it to return a meaningful error message. With a short and sweet query this would not be too difficult, as we can do something like…
Austin Malpede
  • 115
  • 2
  • 8