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
0 answers

Error while storing vertex and edge using gremlin with spring-boot

I am using spring-boot to create a rest api. So I am sending data over api which will run 24/7. I configured cluster, client and GraphTraversalSource with remote connection once. using @Inject annotation. When the method is called from the…
sms_1190
  • 1,267
  • 2
  • 12
  • 24
0
votes
1 answer

Gremlin query to get k distance vertices and edges connecting them

I want to start from a given vertex and get all connected vertices and edges up to a k distance. The output should include all edges that connect the included vertices (even if that edge is at k+1 distance) so that we have a complete…
PedroF
  • 95
  • 1
  • 9
0
votes
1 answer

Tinkerprop Gremlin: Order by the weight of relations

Here is my test database: graph = TinkerGraph.open() g = graph.traversal() v1 = g.addV("person").property(id, 1).property("name", "1").next() v2 = g.addV("person").property(id, 2).property("name", "2").next() v3 =…
Guinaume
  • 97
  • 1
  • 9
0
votes
1 answer

GroupBy query with list of vertices

Suppose I want to query the Neptune graph with "group-by" on one property (or more), and I want to get back the list of vertices too. Let's say, I want to group-by on ("city", "age") and want to get the list of vertices too: [ {"city": "SFO",…
mux
  • 455
  • 5
  • 10
0
votes
1 answer

Connecting to gremlin server from python API duplicates log messages

After connecting to a Gremlin Server, all of my log messages are duplicated. I am using the following code to connect. graph = anonymous_traversal.traversal().withRemote(DriverRemoteConnection("ws://localhost:8182/gremlin", "g")) I guess that the…
geryxyz
  • 129
  • 5
0
votes
1 answer

idleConnectionTimeout in Gremlin driver

I have an application running on my localhost (which the gremlin driver runs on), a gremlin server running on the remote host, and a load balancer in between. I have setup the keepAliveInterval of the Gremlin driver to keep the connection between…
0
votes
1 answer

Count incoming and outgoing edges from a given vertex to each neighbour in a multidigraph

I am trying to find a query that would allow me to get a sort of group count of incoming and outgoing vertices of a vertex in a multidigraph. Taking the graph above for V[0], we should obtain…
blank_sam
  • 23
  • 9
0
votes
1 answer

Gremlin traversal.Output all Edge details and also in/out Vertex id's

I'm having trouble constructing the gremlin query to give me all of the Edge details(label, properties) and also the ID's of the Inv and OutV adjoining Vertex's (I don't need any more info from the linked Vertex's, just the ID's). All I have is the…
Hallam
  • 131
  • 1
  • 3
  • 11
0
votes
1 answer

Gremlin/TinkerPop - propertyMap() has values but Vertex.properties() is empty

When I do g.V().propertyMap(), I'm able to get properties stored on vertices. However, when I actually iterate g.V() and try to get the properties myself, there don't appear to be any. Here is a code example: System.out.println("propertymap: " +…
rococo
  • 2,280
  • 2
  • 22
  • 37
0
votes
1 answer

How to copy edges from one vertex to a new vertex in Gremlin

Background: I tried to use this question as a baseline but because I'm using Cosmos and had a slightly different scenario I wasn't able to make it work. I want to know if it is possible to copy all the edges (in and out) from one vertex to a new…
0
votes
1 answer

Formatting CosmosDB Gremlin Query

I'm new to Gremlin and CosmosDB. I've been following the tinkerpop tutorials and am using the TinkerFactory.createModern() test graph. What I am looking for is to return a graphson object similar to this from cosmosdb. { "user": { "name":…
0
votes
1 answer

Is it possible to open transactions in OrientDB through gremlin server?

I noticed by looking at the java source code of the orientdb-gremlin library that it seems to be only a wrapper that gets the gremlin commands and translates into orientdb SQL queries. I am trying to use gremlin with orientdb in javascript (NodeJs)…
0
votes
2 answers

Is it possible to exclude vertex on repeat().until()?

I am trying to come up with a gremlin query where I can infer who knows Jack but excluding information who directly comes from Employees. Who can call for a reference on Jack? A reference cannot be obtained from another employee or from a family…
0
votes
1 answer

By-step with groovy does not extract values for some node

The problem is described as following: I want to find some interested paths and get corresponding properties of vertices or edges, the groovy I used is as following: g.V().has("p_v_name",…
dulq
  • 245
  • 3
  • 11
0
votes
1 answer

Gremlin Driver Cannot Deserialize Response from Germlin Servier Running Bitsy Database

I'm running a gremlin server with bitsy using the conf and properties file given in the github repo (https://github.com/lambdazen/bitsy/tree/master/src/test/resources/gremlin-server). I have, of course, changed dbPath to an appropriate path. My…
Ell
  • 4,238
  • 6
  • 34
  • 60