Questions tagged [tinkerpop3]

Apache TinkerPop™ is an open source graph technology stack, providing a storage agnostic interface to graph databases and graph analytics frameworks. Tinkerpop 3.x represents a major change in the API since 2.x given a complete re-write with Java 8 and refined thinking with respect to graph traversal mechanisms for both OLTP and OLAP.

Apache TinkerPop™ 3.x provides graph computing capabilities for both graph databases (OLTP) and graph analytic systems (OLAP) under the Apache2 license.

It offers:

  • A standard, vendor-agnostic graph API on the JVM (needs Java 8)
  • In-memory reference implementation of this API, TinkerGraph
  • A standard, vendor-agnostic graph query language, called "Gremlin" (Groovy based)
  • OLTP and OLAP engines for evaluating query
  • A command line shell, Gremlin shell
  • Visualization, via Gephi Integration

More information:

731 questions
2
votes
1 answer

Edge with id already exists - Gremlin

I am using the following to upsert an edge using Gremlin. I am following the recipe as mentioned here. This is the code I am using. The code runs in a lambda which talks to a cluster hosted in Amazon Neptune public void createEdge(final String…
CHID
  • 1,625
  • 4
  • 24
  • 43
2
votes
2 answers

Gremlin: OLAP vs dividing query

I have a query (link below) I must execute once per day or once per week in my application to find groups of connected users. In the query I check all possible groups for each user of the application (not all users are evaluated but could be a lot).…
fermmm
  • 1,078
  • 1
  • 9
  • 17
2
votes
1 answer

Mutation Listener Event Strategy with remote JanusGraph is throwing serialization exception

I'd like to listen to mutations on a remote JanusGraph and I'm unable to figure out the correct setup to make it work. JanusGraph stack: JanusGraph docker image **0.5.2 (which is using Apache TinkerPop Gremlin 3.4.6) with cql-es…
NejcT
  • 147
  • 2
  • 6
2
votes
1 answer

Gremlin: select().count() always returns 1 when called inside choose()

select("anything").count() always returns 1 when called inside choose() Why this happens? Is there any elegant and not slow to execute workaround for this problem? With "elegant and not slow" I mean a solution where I don't have to write the search…
fermmm
  • 1,078
  • 1
  • 9
  • 17
2
votes
1 answer

Displaying sub-levels in gremlin query

I have the graph as shown in the figure below. The numbers represent the level format of the node which is required as output from the gremlin query along with the properties of the nodes. The graph structure can change that is more nodes can be…
Phoenix
  • 181
  • 2
  • 9
2
votes
1 answer

Get a vertex with its label, properties and in/out vertices and their properties?

How can can find a vertex by name property and get: 1. vertices (with label and properties) incident on the incoming edges to this vertex? 2. vertices (with label and properties) incident on the outgoing edges to this vertex? In a single…
EasyQuestions
  • 327
  • 1
  • 10
  • 23
2
votes
1 answer

How can I get all child vertices and its edges (properties for both) recursively using gremlin QL?

I found query below which is perfect to get all child vertices and edges along with their properties for a given single vertex g.V().has("name","gremlin").outE().as('e').inV().as('v').select('e','v').by(valueMap()) However how do I do the above…
nDev
  • 97
  • 2
  • 9
2
votes
1 answer

Use property of one part of graph traverse as filter for other

I want next: Traverse part of graph Take property from first traverse Put it into other traversal as filter Get filtered value When I run next in Gremlin console: g = TinkerGraph.open().traversal() g.addV('a').property(id,…
Dzmitry Lahoda
  • 939
  • 1
  • 13
  • 34
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

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

multi-tenancy with janusgraph

I have spend some time reading on this subject from different forums and understood to achieve multi-tenancy use partition strategy concept. But still open questions like below, 1- Using gremlin query how can we connect two different partition…
VT0906
  • 87
  • 7
2
votes
1 answer

Gremlin Query to check Connection Health

Is there any "dummy" query in Gremlin language in order to test the connection to the server? E.g. in Sql Alchemy case I would use the following https://docs.sqlalchemy.org/en/13/core/pooling.html#custom-legacy-pessimistic-ping which basically runs…
Sanandrea
  • 2,112
  • 1
  • 27
  • 45
2
votes
2 answers

Amazon Neptune - Not equals predicate does not work on edge labels while using bothE()

I am using Amazon Neptune with Gremlin query language. I am trying to find out if a given vertex has any edge connected to it other than edges with a specific label. For example, if there is a vertex with the label Person and I want to find out if…
2
votes
1 answer

Gremlin Java - Set list of values for property

I am using gremlin-java to access AWS Neptune. I want to set the value of a vertex property with a list of values. I tried doing the following: g.V().property(Cardinality.set, "countries", new HashSet<>()).next(); I am getting the…
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