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
1 answer

Unable to add edges to Janusgraph (cql-es) over websocket connection using Tinkerpop gremlin driver 3.3.1

Adding, deleting, updating vertices is fine but when attempting to add edges I get the following exception stating edge additions not supported. Can anyone advise how to add edges when using remote client? Thanks in advance.…
ptc
  • 734
  • 5
  • 11
1
vote
1 answer

Gremlin - Store Vertex ID as property of another vertex

In gremlin is it possible to store a vertex ID inside another vertex? For instance if I created a vertex like this g. addV('my_vertex_label').property(id,'my_vertex_id'). property('anotherVertexID','other_vertex_id') and then queried…
rossb83
  • 1,694
  • 4
  • 21
  • 40
1
vote
1 answer

Gremlin groupCount() by multiple values without using fold()

Cosmos DB doesn't support grouping by anything that is not a primitive (I've already sent a request for them to fix this). But in the meantime, how could I go by doing groupCount() by multiple values without needing arrays, or using lambdas (which…
GalmWing
  • 731
  • 1
  • 7
  • 14
1
vote
1 answer

Amazon Neptune IAM Auth Via Websocket

Has anyone successfully connected to an Amazon Neptune cluster with IAM authentication turned on? I am currently using trying to submit gremlin via bytecode which can only be sent via websocket. I have been unsuccessful connecting to the neptune…
Austin Malpede
  • 115
  • 2
  • 8
1
vote
1 answer

Finding vertices without a particular edge with gremlin

I'm able to find all of my tag vertex points which have an edge labeled tagged using: gremlin>…
user479947
1
vote
1 answer

TinkerPop architecture: need clarification

I am a recent adopter of Gremlin and am trying to piece together an understanding of the TinkerPop architecture. Does the diagram below correctly identify the relationships between the components that are shown? This diagram has been revised per…
Joel Stevick
  • 1,638
  • 2
  • 16
  • 22
1
vote
1 answer

Filtering a Gremlin Traversal by edge label

I am trying to use Gremlin to traverse outwards from a starting node to all connected nodes within X degrees of connection. The direction of the connection does not matter, so I am using the both() function. I also want to be able to prevent the…
hayfreed
  • 525
  • 7
  • 21
1
vote
1 answer

Gremlin query: how to specify sort order in javascript

I am using AWS Neptune. I want to perform a simple gremlin query that returns vertices sorted in decreasing order by a property named "timestamp". I can do this using the gremlin console: gremlin> g.V().has('timestamp').order().by('timestamp',…
Joel Stevick
  • 1,638
  • 2
  • 16
  • 22
1
vote
1 answer

Pagination in Gremlin

I'm trying to do pagination in Gremlin. I've followed the solution provided on gremlin recipes. So right now I am using the range() step to truncate results. This works well because when users asks for x results id only queries for x of them and…
Maciej Mościcki
  • 686
  • 1
  • 9
  • 13
1
vote
1 answer

Neptune InternalFailureException: Can not get the attachable from the host vertex

I am using neptune's graph database with gremlin queries through python, to store addresses in a database. Most of the queries execute fine, but once i try the following query neptune returns a internal failure…
J v Vuuren
  • 11
  • 2
1
vote
1 answer

Gremlin query with nested vertices

My use case is: Bag vertex has edge holds to Box vertex and Box vertex has edge contains to Fruit vertex. So it's a parent-child relation between 3 vertices. Is it possible to write gremlin query which returns all related 3 vertices. for e.g i…
Venkata Dorisala
  • 4,783
  • 7
  • 49
  • 90
1
vote
1 answer

Making direct gremlin queries from gremlin-python

I've encountered several issues with gremlin-python that aren't such in pure gremlin: I can't directly select a given vertex type (g.V('customer')) without iterating over all vertices (g.V().hasLabel('customer')) I get "Maximum Recursion reached"…
user1883163
  • 133
  • 9
1
vote
2 answers

Filtering for vertices on gremlin

I have a combined path of both vertices and edges, and I'm trying to filter it for vertices only. I currently have the following - g.V().outE().inV().outE().inV().path().unfold().filter(...) How can one go from this to a collection without edges?
individualtermite
  • 3,615
  • 16
  • 49
  • 78
1
vote
1 answer

Gremlin Application of Group By and Iteration Path

In Azure Cosmos Graph DB I have the following Graph DB. I am attempting to create a query that returns the following output: Ideal Output [ "Person 1":{ skills:[{"MS OFFICE":"PASS"}], orgPath:"Random Inc/" }, "Person…
Ad Astra
  • 75
  • 1
  • 7
1
vote
1 answer

How do I find all the vertices of a particular property?

How do I query Janus Graph to get all the vertices with a certain label? This is the way I'm currently doing it. Where MAX is simply some arbitrary constant of the maximum theoretical size of the graph. graph.V().hasLabel("my-label").next(MAX) The…
franklin
  • 1,800
  • 7
  • 32
  • 59
1 2 3
99
100