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
7
votes
3 answers

Gremlin - how do you merge vertices to combine their properties without listing the properties explicitly?

Background: I'm trying to implement a time-series versioned DB using this approach, using gremlin (tinkerpop v3). I want to get the latest state node (in red) for a given identity node (in blue) (linked by a 'state' edge which contains a timestamp…
John Stephenson
  • 499
  • 4
  • 13
7
votes
1 answer

Tinkerpop3 connect to remote TitanDB server

I am trying to obtain Graph object using Tinkerpop3 in Java as client from already running TitanDB server (I do not want to create server). In other words, I am trying to implement such function: public Graph obtainGraph(String serverIp, String…
spam
  • 1,853
  • 2
  • 13
  • 33
7
votes
2 answers

How to Update the Value of Vertex in Gremlin Server ( Titan 1.0)

I'm having a vertex with following details: http://localhost:8182/?gremlin=g.V(4192) { "requestId": "6ce01f3b-f623-41f6-bb03-dd56014e0701", "status": { "message": "", "code": ​200, "attributes": { } }, "result": { "data": [ { "id":…
Sumit Chourasia
  • 2,394
  • 7
  • 30
  • 57
7
votes
2 answers

Can't delete/remove multiple property keys on Vertex Titan 1.0 Tinkerpop 3

Very basic question, I just upgraded my Titan from 0.54 to Titan 1.0 Hadoop 1 / TP3 version 3.01. I encounter a problem with deleting values of Property key: Cardinality.LIST/SET Maybe it is due to upgrade process or just my TP3 misunderstanding. …
VitalyT
  • 1,671
  • 3
  • 21
  • 49
6
votes
0 answers

JanusGraphException: Could not commit transaction due to exception during persistence Caused by: PermanentLockingException: Local lock contention

I have a high level code like this. MethodXyz() { updateVertex(A, props1) commit // some other code updateVertex(A, props2) commit // do something else - long running } This method is called from 10+ different threads for different vertices,…
6
votes
2 answers

How to handle vertices with a large number of edges?

In our graph, there are a lot of vertices which have more than 100k of outgoing edges. I would like to know what are the approaches to handle all palettes of situation which come out of this. Let's say that we have a group_1 defined in our graph.…
Michał
  • 616
  • 1
  • 7
  • 22
6
votes
1 answer

Tinkerpop & Python - Setting an array property via gremlin

I'm using JanusGraph with the standard python gremlin binding, and I'd like to set a float[] property on a vertex/edge. However, the Tinkerpop driver for Python doesn't seem able to do so. For example, here is an example with a script running…
Barak Itkin
  • 4,872
  • 1
  • 22
  • 29
6
votes
2 answers

Best way to get (millions of rows of) data into Janusgraph via Tinkerpop, with a specific model

Just started out with Tinkerpop and Janusgraph, and I'm trying to figure this out based on the documentation. I have three datasets, each containing about 20 milions rows (csv files) There is a specific model in which the variables and rows need to…
nikolai
  • 63
  • 1
  • 4
6
votes
1 answer

Iterate() step is used in the end of the command when creating nodes and edges through function chaining. What is the use of this step?

Iterate() step is used in the end of the command when creating nodes and edges through function chaining in Tinkerpop 3.3/Gremlin. What is the significance of this iterate() step? I could not find any mention of the iterate() step in the…
livetolearn
  • 221
  • 3
  • 11
5
votes
1 answer

Anonymous traversal vs normal traversal gremlin

I have read the documentation about anonymous traversals. I understand they can be started with __ and they can be used inside step modulators. Although I dont understand it conceptually. Why cannot we use a normal traversal spawned from graph…
CHID
  • 1,625
  • 4
  • 24
  • 43
5
votes
1 answer

How to do efficient bulk upserts (insert new vertex, or update property(ies)) in Gremlin?

Context: I do have a graph with about 2000 vertices, and 6000 edges, this over time might grow to 10000 vertices and 100000 edges. Currently I am upserting the new vertices using the following traversal query: Upserting Vertices &…
EasyQuestions
  • 327
  • 1
  • 10
  • 23
5
votes
2 answers

Merge results from multiple queries in Gremlin

Let's say I want to get a few vertices from my database: g.V(1, 2, 3) And then I have another set of vertices: g.V(4, 5, 6) Imagine it's not just g.V(), but some more complicated traversal to get my vertices. But the traversal must start with V(),…
Vojto
  • 6,901
  • 4
  • 27
  • 33
5
votes
1 answer

In Gremlin, how can one query vertices where one property value is greater than another property value?

I'm sure this is straightforward, but I'm not sure how to do it. I have vertices, with a certain label, which have two integer properties. Let's call them integer1 and integer2. I simply want to query for all vertices where integer2 is greater than…
Amit A.
  • 71
  • 1
  • 3
5
votes
3 answers

Convert string command of Gremlin to executable

I have created a long Gremlin chained command as a string. What is the best way to execute it in NodeJS or Python? g.addV("person"). property(id, 1). property("name", "marko"). property("age", 29).as("1"). addV("person"). property(id, 2). …
5
votes
1 answer

Define Graph Schema in AWS Neptune to prevent data duplication

When using TinkerPop/JanusGraph I am able to define, VertexLabels and Property Keys which I can than use to create composite indexes. I read somewhere on the Neptune documentation that indexes are not necessary (or supported). My question is then…
Cracoras
  • 347
  • 3
  • 16
1
2
3
48 49