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

Gremlin-Server Cassandra

I am starting to work with Titan and I am using cassandra as backend store. When I start titan.sh cassandra and elasticsearch were started but the gremlin server did not. I was looking at titan.sh and I have seen that it start gremlin server with…
mvbaffa
  • 1,031
  • 2
  • 10
  • 21
3
votes
2 answers

What is best practice for using titan graph in multi threads?

I built a web service with spring boot. I used titan graph as a singleton that accessed across web service. So in case multiple requests to web service, web server will spawn threads to handle requests and titan graph will be used in these threads.…
MichaelP
  • 2,761
  • 5
  • 31
  • 36
3
votes
1 answer

How to add property to vertex property in java?

I want to add property to a vertex property. In gremlin i add property "phone" to vertex property "places" that has value is "place1" g.V(v).properties('places').hasValue('place1').property('phone',"123456789") It worked ok without using…
MichaelP
  • 2,761
  • 5
  • 31
  • 36
3
votes
1 answer

Tinkerpop: Set Label After Creating Vertex

Is there a way to set the T.label after the vertex has been created. I have tried the following: Vertex v = graph.addVertex(); v.property(T.label.name(), "test"); But when I try the following…
Filipe Teixeira
  • 3,565
  • 1
  • 25
  • 45
3
votes
2 answers

Tinkerpop 3: compute connected components with Gremlin traversal

I think the tags explain quite well my problem :) I've been trying to write a Gremlin traversal to compute the connected components of the simple graph described at the end of the post. I tried with …
Alberto
  • 597
  • 3
  • 17
3
votes
1 answer

All network neighborhoods around a list of vertices up to depth x

I'm very new to Gremlin. I have a Pregel (GraphX) algorithm that is doing the following: given a list of vertices, finds all the network neighborhoods up to level N (adjacent vertices, and vertices adjacent to them, repeating N times. so that the…
Eran Medan
  • 44,555
  • 61
  • 184
  • 276
2
votes
1 answer

Apache Gremlin Filter returns empty when the vertex/edge is not present

Apache Gremlin Filter returns empty when the vertex/edge is not present. g.V('12336', '4128', '155808').as("a").filter( __.V().has('end_time', p.gte('---DATE---')).where(P.neq("a"))).elementMap() In the above query,…
Thirumal
  • 8,280
  • 11
  • 53
  • 103
2
votes
1 answer

TinkerPop - Retrieving values from multiple vertices give strange output

I have been working on trying to retrieve different values from different vertices from one starting point in my graph (I have a few other related posts, but I have worked out most of my issues). I am using TinkerPop with Neptune DB. I am able to…
Ebad
  • 131
  • 11
2
votes
1 answer

Gremlin query combine vertices with unrelated vertices CosmosDB

I would like to get several vertices e.G. with the label "user" combined with vertices, they are not related to, yet e.G. with the label "movie". I know, that the strength of Gremlin is traversing the vertex, and combining objects that are not…
2
votes
1 answer

Inject() list of strings to be upsert as vertices takes a very long time in Gremlin + Neptune

While optimizing a service that has AWS Neptune as a back-end I stumbled upon the recommendation to use inject(), so I decided to batch a set of queries to avoid round-trips to Neptune: g.inject(Array.from(attributes)) .unfold() …
2
votes
1 answer

Types of IDs of vertices and edges

Are the vertices always have integer IDs? Vertex ids are always like 12212 Are the edges always have UUID or string-like IDs? Edge ids are always like "16p-360-2dx-9jk"
canbax
  • 3,432
  • 1
  • 27
  • 44
2
votes
1 answer

Is there way to decouple a traversal from a concrete graph and apply it to multiple graphs?

I want to have an abstract description of traversal steps that I can freely apply to multiple graphs but the traversal instances seem stateful, and not reusable. I'm looking for something like: GraphTraversal findMarko = __.has("name", "marko");…
kaqqao
  • 12,984
  • 10
  • 64
  • 118
2
votes
1 answer

Is there a way to reverse a list in Gremlin?

Gremlin queries often work with or produce lists. Sometimes it is desirable to be able to reverse a list. Currently Gremlin does not have a reverse step so you cannot do something like: g.inject(['A','B','C','D']).reverse() Nor is there a reverse…
Kelvin Lawrence
  • 14,674
  • 2
  • 16
  • 38
2
votes
1 answer

AWS Neptune Gremlin Composite Index

I'm using gremlin-java. And I want to create a unique index and a composite-index. But Graph object doesn't provide createIndex function. I will work on aws-neptune. Is there a way to create composite-index and unique-index on aws-neptune? My…
Sha
  • 921
  • 17
  • 46
2
votes
2 answers

How can I refer to an as-variable inside a nested Gremlin traversal?

In trying to write a traversal that matches only if there is not an existing edge from vertex Vo to vertex Vi (where the ID of Vi might not be known ahead of time, and so Vi has to be specified by a traversal). I had this initial traversal:
chrylis -cautiouslyoptimistic-
  • 75,269
  • 21
  • 115
  • 152