Questions tagged [gremlin-server]

Gremlin Server is a component of Apache TinkerPop that allows for the remote execution of Gremlin-based traversals.

516 questions
2
votes
1 answer

Extract subgraph from a graph using Gremlin.net byte code gives error deserializer for \"tinker:graph\" not found

I am trying to get subgraph from a graph using Gremlin.net bytecode syntax and getting error when extracting/Cap from a subgraph. I am able to get the results if I query directly using the query string however not with the fluent API byte code…
2
votes
1 answer

How to make AWS Lambda work reliably with Neptune over websockets?

So I've built this API. It consists of a Lambda function (accessible via API Gateway) which talks to a Neptune graph database instance via websockets. Everything is wired up and working. But I recently started noticing intermittent 500's coming from…
2
votes
1 answer

How to merge values from different objects in gremlin query?

I have a query that returns the output in the following format, { "Key": [ "Value1", "Value2" ], "Count": [ { "Count1": 28, "Count2": 28 }, { "Count3": 16, "Count4": 16 …
2
votes
1 answer

Retrieve all IDs for duplicate vertices in Gremlin

Problem I am running a query which finds duplicate vertices by the name property. I would like to know the IDs for all the corresponding vertices. At this time, only the ids in the where clause are returned. Example graph Here is a toy example…
Nathan McCoy
  • 3,092
  • 1
  • 24
  • 46
2
votes
1 answer

Using ConfiguredGraphFactory in a startup script fails

I am following the https://docs.janusgraph.org/basics/configured-graph-factory/#overview guide as I understand it. I want to run the gremlin-server and setup a graph. I want to execute a groovy script on startup that opens or creates the graph and…
Jarvis
  • 312
  • 3
  • 12
2
votes
1 answer

Union step does not work with multiple elements

The following query returns a user map with an "injected" property called "questions", it works as expected when g.V().has() returns a single user, but not when returns multiple users: return g.V().has("user", "userId", 1) .union( …
fermmm
  • 1,078
  • 1
  • 9
  • 17
2
votes
1 answer

Issues after updating gremlin-server

Present i am using janusgraph-0.2.0-hadoop2 server and using gremlin@2.6.0 library for querying const Gremlin = require("gremlin"); const client = Gremlin.createClient(8182, "192.168.0.103"); function test(p){ client.execute(q, {}, (err,…
2
votes
1 answer

How do I find vertices without particular edges from a particular vertex in Gremlin?

I am using python to run my gremlin queries, for which I am still getting used to / learning. Let's say I have vertex labels A and B, and there can be an edge from A to B called abEdge. I can find B vertices that have such edges from a particular A…
alexexchanges
  • 3,252
  • 4
  • 17
  • 38
2
votes
1 answer

Measure serialization and deserialization time

In addition to my previous question please, is there a way to measure the time it takes gremlin server to serialize and deserialize a query request from the client? For example, if the client is a java application that sends query request to gremlin…
2
votes
1 answer

Tinkerpop: Creating nested Properties

I want to create a Vertex of label foo, which contains a property child. Child property will have two properties A, B. Child in itself can contain more nested children. If vertex foo is deleted, its all properties including child property should be…
2
votes
0 answers

Elasticsearch and Cassandra does not appear in the java process table

I am trying to setup janusgraph (latest version) with cassandra(3.11.5) and elastic seaarch(7.5.2) in Google compute engine using docker. When I run docker ps -a, all the containers are up and running. But when I am trying to update the schema I am…
2
votes
2 answers

Gremlin - Update values of multiple edges

I am using AWS Neptune and I have to modify a certain property of a set of EDGEs with specific values. I also need this done in a single transaction. In AWS Neptune, manual transaction logic using tx.commit() and tx.rollback() is not supported.…
2
votes
1 answer

Gremlin - filtering Edges from a zipped list of property values

I have two properties on my Edges that I want to filter on: a and b. I want to filter these properties using the following list: lst = [['0102', '2017-01-01'], ['4920', '2018-07-01'], ..., ['2198', '2018-04-01']] ... and using the following…
Ian
  • 3,605
  • 4
  • 31
  • 66
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
2
votes
1 answer

What is the best way to serialise a full graph as GraphSON using gremlin-javascript?

I'm looking for a single query that can create a GraphSON serialisation of a full TinkerGraph graph. // setup const gremlin = require('gremlin') const connection = new gremlin.driver.DriverRemoteConnection('ws://localhost:8182/gremlin') const g =…
sen
  • 23
  • 3