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

How can we increase the performance for Cosmos graph on azure

Do we have a feature wise optimization somewhere for azure cosmos db graph . For an instance can we use parallel processing, Caches, Indexes for cosmos db to increase the performance . If so how ? Could not find enough documentation on that , please…
Varun Tahin
  • 299
  • 1
  • 2
  • 15
0
votes
1 answer

Which steps/gremlin queries from Tinkerpop 3 are not supported in Cosmos db graph

I am currently evaluating Neo4j against Cosmos db graph . As the present system lies in cosmos thus we started building graph in cosmos . But in recent times came to know about certain tinkerpop3 queries which are not supported in cosmos db graph…
Varun Tahin
  • 299
  • 1
  • 2
  • 15
0
votes
2 answers

Can we put and condition in edges in gremlin

I have a requirement over putting and condition in edges in gremlin. Do we have a mechanism like we have for or condition. g.V().haslabel('u').outE('label1','label2').inV().has('name','name1') I have already checked on where clause but it limits the…
Varun Tahin
  • 299
  • 1
  • 2
  • 15
0
votes
1 answer

Can we emit vertices in between when in where clause

I wish to traverse in a unidirectional way but facing difficulty in going back and fetching the vertex which is filtered in path . Please help. g.V().hasLabel('states').as('s'). in().hasLabel('url').as('u'). select('s'). …
Varun Tahin
  • 299
  • 1
  • 2
  • 15
0
votes
1 answer

How to fire match query in gremlin . Filter query not working in cosmos db with java driver

I have 2 problem statements with similar approach .Can I put a contains or like query in both to solve my problem in gremlin: 1) Returning vertex 'a' in the following query when the outE() (as depicted in below gremlin query) has label with contains…
Varun Tahin
  • 299
  • 1
  • 2
  • 15
0
votes
1 answer

Can we convert Result in ResultSet to Vertex by using gremlin - java client?

I am using a Github example to generate a graph (https://github.com/Azure-Samples/azure-cosmos-db-graph-java-getting-started). And now I want to query it and hold a vertex instance in my hand to traverse further depending on further inputs from the…
Varun Tahin
  • 299
  • 1
  • 2
  • 15
0
votes
1 answer

Can we filter multiple labels simultaneously

I have a scenario where I have to check multiple vertices with different labels and match their properties under a parent vertex. And then return the parent vertex if everything matches fine. I tried writing queries with 'and' clause and 'where'…
Varun Tahin
  • 299
  • 1
  • 2
  • 15
0
votes
2 answers

How to combine nodes on select in TinkerPop3?

im working with the Apache gremlin graph and TinkerPop3. There are two nodes g.addV('Location') .property('id', 'fb864e1f-a2e0-4c02-b891-2c0713b29751') .property('name', 'BananaShop') .property('description',…
Matthias
  • 15
  • 3
0
votes
1 answer

Print Edges associated with the path

I was able to get the path of a graph with the command below, g.V('v6').repeat(out().simplePath()).until(hasId('v8')).path().limit(1) gives, ==>[v[v6], v[v3], v[v1], v[v4], v[v8]] I would like to print with the edges associated with the path.…
Kannaiyan
  • 12,554
  • 3
  • 44
  • 83
0
votes
1 answer

Vertex property gets changed from Gremlin Console but not from Python script

I have the following script to update a property on a vertex (janusgraph 0.2.0). When I run it from the Gremlin Console the value gets changed as…
Cracoras
  • 347
  • 3
  • 16
0
votes
2 answers

Adding Multiple Unique Vertices

I want to write a single gremlin query that will create multiple vertices, but only does so if they are all unique. I know I can use the get or addV method by using coalesce step mentioned in the comments. g.V().has('com.demo.test', '__type',…
Austin Malpede
  • 115
  • 2
  • 8
0
votes
0 answers

Load balancing approached with gremlin driver

Few days ago, Google publish this article: https://cloud.google.com/blog/big-data/2018/07/developing-a-janusgraph-backed-service-on-google-cloud-platform We can read from there, that it is common to deploy janus graph as a separate instance behind…
Michał
  • 616
  • 1
  • 7
  • 22
0
votes
1 answer

traversing a graph with restrictions

I am exploring TinkerPop and Gremlin and want to understand if the language/syntax will support the following graph question and traversal (I guess that if so, the TinkerPop "enabled" graphs [AWS Neptun/OrientDB/Girafe/..] will support it also…
abrag
  • 1
  • 2
0
votes
1 answer

How to create multiple edges from one vertex in single traversal

I've got function which has this signature: public void doTheJob(String from, Collection> relations) where: from is a unique value the graph should be asked about relations is a collection of pair, where first element from pair…
Michał
  • 616
  • 1
  • 7
  • 22
0
votes
1 answer

Why does Gremlin always return a result?

I'm adding keys to a graph using Gremlin. I have many key vertices all with a unique UUID. Getting a key works like this: g.V().hasLabel("key").property("uuid", "foobar").count() or g.V().hasLabel("key").property("uuid", "foobar") Regardless what I…
Bob van Luijt
  • 7,153
  • 12
  • 58
  • 101