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

AWS Neptune io.netty.handler.codec.CorruptedFrameException

So we're using apache tinkerpop and java client to connect to Neptune instance. Most of the queries are working fine. But submitting a larger query, it throws an exception. ERROR o.a.t.g.d.Handler$GremlinResponseHandler - Could not process the…
ashoksl
  • 383
  • 6
  • 17
2
votes
1 answer

What is the best way to serialise a full graph as GraphSON using gremlin-javascript?

I'm looking for a single query that can create a GraphSON serialisation of a full TinkerGraph graph. // setup const gremlin = require('gremlin') const connection = new gremlin.driver.DriverRemoteConnection('ws://localhost:8182/gremlin') const g =…
sen
  • 23
  • 3
2
votes
1 answer

How to transform Gremlin Tinkerpop Vertex to a POJO

Is there a simple way or an already available library where I can transform a Vertex to a POJO. The POJO will have field names and values from the properties of the vertex.
Shiva Kumar
  • 3,111
  • 1
  • 26
  • 34
2
votes
0 answers

How to build gremlin query to add and drop vertex as part one transaction

I want to build a gremlin_python query dynamically that adds vertices and deletes vertices in single transaction. For Ex: Lets say my graph has a vertex with property desc ='toBeDeleted'. I want to build a query to add vertices with desc = desc_1,…
2
votes
1 answer

How to decouple multiple graph instances from each other in JanusGraph

I'm trying to create multiple graph instances in Janusgraph, but they all seem to have the same reference to one another, and so any action taken on one affects the others (see example below). I want to have these graphs setup as separate instances,…
Ian
  • 3,605
  • 4
  • 31
  • 66
2
votes
4 answers

How do I export a remote graph to json using tinkerpop gremlin and neptune?

I'm trying to export an entire remote graph into json. When I use the following code, it results in an empty file. I am using Gremlin-driver 3.3.2 as this is the same version in the underling graph database, AWS Neptune. var traversal =…
James Render
  • 1,490
  • 1
  • 14
  • 26
2
votes
1 answer

Janusgraph delete vertex and commit completes but next operation still sees the vertex

I have a piece of code which deletes a vertex and commits the transaction. The next operation still sees the vertex for some reason. Its also strange that it only sees it sometimes may be based on timing etc. e.g.…
2
votes
1 answer

Gremlin: Add edges to multiple vertices

I have vertices [song1, song2, song3, user]. I want to add edges listened from user to the songs. I have the following: g.V().is(within(song1, song2, song3)).addE('listened').from(user) However I'm getting the following error: No signature of…
drum
  • 5,416
  • 7
  • 57
  • 91
2
votes
1 answer

Using local TinkerGraph from GLV

In the gremlin console one can easily create an in-memory TinkerGraph to play with (or load one of the sample graphs): gremlin> graph = TinkerGraph.open() gremlin> g = graph.traversal() Is is possible to expose this graph / its traversal source to…
Sascha
  • 219
  • 4
  • 12
2
votes
1 answer

Return list of Vertex (list-2), whose relationship are only with a subset of another vertexes(list-1)

My question is that I want to return all the vertexes whose relations are only with a subset of another list of vertexes. For example I will pass a list of person, for ex: Ram, David and Alan. I should return back the person list who are only friend…
Pragmatic
  • 3,093
  • 4
  • 33
  • 62
2
votes
1 answer

Most optimal Neptune query for getting all related vertices with the shortest distances

I need to get all related vertices with shortest distances to the given vertex, which distances does not exceed some maximum distance value. I came up with the following query for maximum distance of 4, but is it possible to optimise this query…
2
votes
1 answer

Apache Gremlin Updating a Property results into Property Addition Not Supported when updating a vertex

Here is the error that I am encountering. play.api.http.HttpErrorHandlerExceptions$$anon$1: Execution exception[[IllegalStateException: Property addition is not supported]] at…
KyelJmD
  • 4,682
  • 9
  • 54
  • 77
2
votes
1 answer

Tinkerpop embedded implementation for production

I've got a use case where I wouldn't need a full-blown features of a graph db. I would already receive a network (connected nodes and edges) from a datasource and all I'd have to do is to apply a few graph operations on it (eg: Shortest Path between…
user1189332
  • 1,773
  • 4
  • 26
  • 46
2
votes
1 answer

Possibilities for creating programs with Python for graph processing in Tinkerpop

I'm just starting out with Tinkerpop and looking for the best way to achieve the following: in the beginning, there is a small 'starting-graph' a couple of scripts, each having some functions, will interact with this graph each script will: 1) read…
Ed3
  • 23
  • 2
2
votes
2 answers

Gremlin ReadOnly Transactional support

I am trying to configure a transaction for a Gremlin client that will not allow any mutating queries (Read-only). I am aware that this is possible in JanusGraph or Titan with their API (with buildTransaction() as readOnly()), however for TinkerPop…
ThanosG
  • 119
  • 12