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

Performance of Azure Cosmos DB of element with big property containing html

We're using Azure Cosmos DB Graph API to cache items from a CMS that have properties containing a fairly big chunk of html. When adding 8000 items Cosmos DB is starting to be very slow. For instance this simple query takes about 12-15 seconds to…
Jonas Stensved
  • 14,378
  • 5
  • 51
  • 80
0
votes
1 answer

TinkerPop Gremlin with Chinese

I'm trying to query for vertices which contain Chinese characters. I'm executing a groovy script via $gremlin.sh -e test.groovy println g.V("丁壽全").next() When trying to look up a vertex, which consists only of ASCII, it's found. How should I…
psmn
  • 131
  • 2
  • 5
0
votes
0 answers

add edge in tinkerpop using java client throws java.lang.NegativeArraySizeException

I have a problem running this chunk of code, the code is read from a csv file, and for each line in the file, there is two vertexes and an edge, so I'm using this file to construct a graph, but I can easily create vertexes, and when it comes to…
Gao
  • 912
  • 6
  • 16
0
votes
1 answer

How can I compare sets of vertices for equality in TinkerPop?

Given a set of User vertices, I need to find all Chat vertices that are connected to those, but no other. For instance, all chats that only Alice and Bob participate in. The query should order the results so that the chat connected to the most…
Double M
  • 1,449
  • 1
  • 12
  • 29
0
votes
1 answer

flight connections using gremlin

I am newbie to gremlin. I have a graph with airports as nodes and flights as edges with arrival time and departure time as edge properties. Now I am trying to use tinkerpop 3.1 to get the list of connections with 1 layovers, 2 layovers, 3 layovers…
0
votes
1 answer

Gremlin 3 Paths with Depth

I am brand new to Gremlin and graph databases in general. I have been tasked with producing a plan in which to execute a task based on the depth at which the node exists in the subgraph. So far, I can produce the subgraph and a list of paths based…
BaKeR
  • 73
  • 8
0
votes
1 answer

Get the complete graph information (properties,id etc ) in hierarchical way under a particular node in gremlin

I am able to get all the child nodes and its related information under a parent node but in a array of objects format , for the query g.V(4128).repeat(out()).emit() [ { "id": 4152.0, "label": "location", "type": "vertex", …
Abhishek Raj
  • 502
  • 3
  • 15
0
votes
1 answer

Gremlin, How to add edge to existing vertex in gremlin-python

I am trying to add edge to an existing node in gremlin-python. But graph traversal(g) object do not have addE method and vertex do not have addEdge method.
Bipul Karnani
  • 11
  • 1
  • 1
0
votes
1 answer

OrientDB java API with tinkerpop 3

what is the best API for Orient to Java for 3.0 snapshot?and how do I 1. connect 2. execute CRUD 3. execute native queries (SQL/Javascript). Started with orientdb-gremlin but not yet upto speed, so wanted to check with community. Thanks Hari
0
votes
1 answer

Unable to print node properties in DSE graph

Apologies as this might be very basic question on the topic but I am new to Gremlin/DSE Graph and i tried many ways to extract data i am inserting to my graph but somehow i am unable to make it work. Here is what i have: 1. Graph with allow_scans…
Nik
  • 431
  • 1
  • 6
  • 10
0
votes
1 answer

issues with concurrent update in titan graph database

public class a { private static TitanGraph titanGraph = null; static GraphTraversalSource traversalSource = null; public static void main(String a[]) { titanGraph = TitanFunctions.getTitanGraph(); traversalSource =…
User12345
  • 455
  • 2
  • 10
  • 21
0
votes
1 answer

does using many choose step effect the performance of the query gremlin Or How is a Choose step executed in gremlin

i have a simple favourite query which tells if an item is favourite to a person…
Mahi Tej Gvp
  • 984
  • 1
  • 14
  • 34
0
votes
2 answers

When do you use Edge Indexes in a Titan Graph?

There seems to be plenty of documentation around creating a Vertex index in Titan: mgmt.buildIndex('byNameAndLabel', Vertex.class).addKey(name) I can't find much documentation about adding Edge indexes, e.g.: mgmt.buildIndex('byNameAndLabel',…
Guy
  • 65,082
  • 97
  • 254
  • 325
0
votes
1 answer

Vertex label based traversal

I have a use case to do a traversal based on the label of the vertex for searched name. For example : There are three kinds of labels Org, Asset and Class(all containing name as the keys of vertices) in our system. And if we do a search by name and…
0
votes
2 answers

Add multiple vertices and multiple edges at one go in DSE-5.0.5 via java driver

Kindly tell a simple solution that takes less time as I have millions of nodes: for(int i=1100000; i<=1200000;i++){ GraphStatement q1 = new SimpleGraphStatement("g.addV(label,…