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

Configure Gremlin Server to use Graphson 2.0

I've downloaded apache-tinkerpop-gremlin-server-3.4.4 and trying to connect it from gremlin.net. I'm getting an error: ServerError: Could not deserialize the JSON value as required. Nested exception:…
Avner Levy
  • 6,601
  • 9
  • 53
  • 92
0
votes
1 answer

How to get combined vertex results in gremlin using union/project/select?

below is my example graph addV('user').property('userId','user2').as('u2'). addV('user').property('userId','user3').as('u3'). addV('group').property('groupId','group1').as('g1'). …
VT0906
  • 87
  • 7
0
votes
1 answer

Group incoming vertices of a vertex group by edge label

Currently, I have the following query in Java: GraphTraversal> vertex = g.V(vertex).inV().valueMap(); Which returns the incoming vertices to the vertex, basically is a huge list, and one vertex can have two edges to the…
zepol
  • 187
  • 5
  • 20
0
votes
1 answer

Gremlin query to retrieve count and data in the same response

I am looking for help with an efficient gremlin query which returns data in the expected format. Data structure : g.V('user').property('id','1').property('name','name 1').property('city','city1') g.V('user').property('id','2').property('name','name…
Venkata Dorisala
  • 4,783
  • 7
  • 49
  • 90
0
votes
1 answer

Tinkerpop value of list property is returned as string instead of list

I am trying to store a list in a vertex property. That seems to work but when I try to get the list it is returned as string instead of list. This happens both in python-gremlin and on the gremlin-console. What am I doing wrong? gremlin> my_list =…
Arne Böckmann
  • 467
  • 2
  • 16
0
votes
1 answer

TinkerPop finds edges with common out nodes

for vertex A, how to find edges from A that shares same out vertex? I can use count() to find the vertices that each has multiple out vertices, but I only want to find the edges that from A and ending at the same vertices.
Henry Bai
  • 367
  • 1
  • 3
  • 17
0
votes
1 answer

Can threads see each other's changes in multi-threaded transactions?

I'm employing multi-threaded transactions as described by JanusGraph docs. Each of my threads contributes to building a directory tree. Before inserting a new vertex for a specific directory, each thread first checks if such a vertex already exists…
Double M
  • 1,449
  • 1
  • 12
  • 29
0
votes
0 answers

How connecting to remote janus graph from local germlin console?

We have Janus graph setup on vm and i trying to connect to this remote janus graph and try to run germling queries , but am not able to do that, getting below type of exception when trying to run simepl germlin…
Bravo
  • 8,589
  • 14
  • 48
  • 85
0
votes
1 answer

Gremlin query to select vertex based on count of out edges on a particular subset of out vertex

For example, there are two types of vertex in Graph [ Account , User]. Account vertexes have edges to user vertex denoting a list of users form an Account vertex. User vertex has two property ( name, phoneNumber). I want to select accounts who are…
Nischal Kumar
  • 492
  • 7
  • 15
0
votes
1 answer

In Gremlin, how to query two or more vertices with same value on one property?

I want to find two or more vertices which have one same property. For example, find two different Person vretices with same name. I have tried the following: graph.traversal().V().hasLabel("Person").as("a").where("a",…
Jimmy Du
  • 545
  • 1
  • 4
  • 6
0
votes
1 answer

Gremlin. In a parent-child relation, filter by the higher version of the child

I have a parent-child structure. The child has a version and a group. I need to create a filter for the newest version grouping by group,parent. This query returns the values properly, but I need the vertex for each…
cmaluenda
  • 2,099
  • 1
  • 14
  • 15
0
votes
1 answer

How can I add a new Vertex only if it is possible to add an Edge too?

I need to add a new Vertex with an Edge. My code is something like: g.V().addV("Vertex").addE("MyEdge").to(V().has("OtherVertex", "name", "test")) If V().has("OtherVertex", "name", "test") return a Vertex, everything works fine. My problem is if…
cmaluenda
  • 2,099
  • 1
  • 14
  • 15
0
votes
3 answers

Why do the API calls not work in Gremlin Python?

In gremlin-python I can do: for e in g.E().toList(): print(e) and will get a result like e[11][4-created->3] e[12][6-created->3] e[7][1-knows->2] e[8][1-knows->4] e[9][1-created->3] e[10][4-created->5] According…
Wolfgang Fahl
  • 15,016
  • 11
  • 93
  • 186
0
votes
0 answers

Tinkerpop path() step equivalent in OrientDB SQL

I have the following working query in Tinkerpop/Gremlin that can return an ordered list of elements traversed until current step.. How can I make a similar one in OrientDB…
Mihai Bucica
  • 21
  • 1
  • 5
0
votes
0 answers

connecting to gremlin server by groovy in Moqui

I am trying to play Gremlin Server from Moqui. I added channelizer: org.apache.tinkerpop.gremlin.server.channel.WsAndHttpChannelizer to gremlin-server-modern.yaml, then started the server by gremlin-server.bat…
Teddy
  • 35
  • 8