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

What is the best practice for saving a file in janusgraph?

I am developing my backend application in java using JanusGraph database version 0.3.1 . I want to manage the saved files as properties for vertex in the graph. 1- Can I save images, xml files, text file, etc. in JanusGraph properties? 2- Is it a…
Ali Aboud
  • 329
  • 3
  • 11
3
votes
1 answer

Can't see my vertex and edge from my Graph instance but able to see from other graph instance

Working on a proof of concept if I add vertex and edge using the Graph instance inside my application and then I query those sometimes the query result send me the vertex and edge and sometimes doesn't, but if I create a JUnit test pointing to the…
kolokol13
  • 31
  • 1
3
votes
1 answer

Setting up ScyllaDB + Janusgraph + Tinkerpop

About to start using ScyllaDB with JanusGraph, and Tinperpop3. For now, I'll work with <200 gb data, so I want to do everything on my own (xeon based) computer. My question is mostly: are some versions incompatible with each other? For ScyllaDB I'd…
nick88
  • 118
  • 1
  • 8
3
votes
2 answers

Get array's first item as object in TinkerPop3 Gremlin query and JanusGraph

I faced this issue during a migration of gremlin queries from v2 to v3. V2-way: inE().has(some condition).outV().map().toList()[0] will return an object. This is wrapped in transform{label: it./etc/} step. V3-way, still WIP: inE().has(some…
amankkg
  • 4,503
  • 1
  • 19
  • 30
3
votes
1 answer

Cannot access specific vertex by ID, using TinkerGraph in Gremlin Console

I cannot select a specific vertex, by executing g.V(3640).valueMap(true).unfold(). Any command which contains an ID between the parentheses in the g.V() command does not seem to work. This is what I did: I'm new to Graph databases and experimenting…
Erik van de Ven
  • 4,747
  • 6
  • 38
  • 80
3
votes
1 answer

TinkerPop: Generic Query to combine and filter multiple traversals

Sample data: TinkerPop Modern Graph Conditions: Is vadas connected to lop within 2 hops Is vadas connected to peter within 3 hops Is vadas connected to does-not-exists in 1 hops (a search that wont give any results) Dummy searches with expected…
Srinath Ganesh
  • 2,496
  • 2
  • 30
  • 60
3
votes
0 answers

How to merge two vertices in JanusGraph and delete one of them. Also add the edges from deleted vertex to the modified vertex

There are two vertices A and B in JanusGraph. I am want to merge all the properties of vertex B in vertex A and delete vertex B. Also the edges if any associated with vertex B should be deleted but the same edges should be added to vertex A.
Ashutosh gupta
  • 447
  • 4
  • 16
3
votes
1 answer

In Gremlin how does map() really work?

Why does these two yield different results? graph.traversal() .V().map(__.out("contains")) .valueMap(true).next(100) compared to graph.traversal() .V().out("contains") .valueMap(true).next(100) Why do I prefer map to directly calling the…
Ram
  • 2,237
  • 4
  • 23
  • 27
3
votes
2 answers

Imperative matching in TinkerPop / CosmosDB

I'm want to make a query like this one g.V().match( as('foo').hasLabel('bar'), as('foo').out('baz').hasId('123'), as('foo').out('baz').hasId('456') ) .select('foo').by('id') which is meant to select the ids of all nodes of type bar, which has…
Tomas Aschan
  • 58,548
  • 56
  • 243
  • 402
3
votes
1 answer

TinkerPop: Adding Vertex Graph API v/s Traversal API

Background: In one of the SO posts it is recommended to use Traversal API than Graph API to make mutation. So I tried out some tests and found Graph API seemed to be faster, I do totally believe the advice but I am trying to understand how its…
Srinath Ganesh
  • 2,496
  • 2
  • 30
  • 60
3
votes
1 answer

Gremlin Server connect to Orient DB

I start my Gremlin NEO4J like this ./gremlin-server.sh conf/gremlin-server-neo4j.yaml I have installed OrientDB Community edition and it seems to be working file via IP:2480/studio/index.htm Now I am trying to connect my Gremlin Server to Orient…
Srinath Ganesh
  • 2,496
  • 2
  • 30
  • 60
3
votes
1 answer

DSE graph more threads result in slow response times

I have asked this question before. But asking again with a concrete example. So I have DSE graph running locally on my Mac. I have the simplest possible creation of a vertex and below is the traversal. g.addV("company").property("id",…
Sathyakumar Seshachalam
  • 2,013
  • 3
  • 20
  • 32
3
votes
1 answer

Get map of vertex labels with all properties with Gremlin - Tinkerpop3

I am trying to return something like { "label1" : ["prop1","prop2"], "label2" : ["prop3","prop4"], "label2" : ["prop1","prop3"] } etc where the labels[N] are vertex label values and the props array are the properties for these vertices. I can…
radder5
  • 236
  • 3
  • 14
3
votes
1 answer

gremlin python retrieve ids and labels (valueMap(True))

python g.V('test_red1').valueMap().toList() works fine but when I pass true to request ids and labels I get this error. Anything I am missing? g.V('test_red1').valueMap(True).toList() Traceback (most recent call last): File "", line 1,…
andrew shved
  • 137
  • 1
  • 8
3
votes
1 answer

gremlin intersection operation

I'm using the gremlin console v3.3.1. Using the "Modern" graph from the tutorial: http://tinkerpop.apache.org/docs/current/tutorials/getting-started/ Creating the graph with this: gremlin>graph = TinkerFactory.createModern() gremlin>g =…
crig
  • 859
  • 6
  • 19