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

TinkerGraph: why mutating through GraphTraversalSource doesn't persist/store while using Graph does?

Hi I am trying to use TinkerGraph for some small cases of demonstration and it seems that it doesn't persist using GraphTraversalSource. Here is the code I currently have: GraphTraversalSource g = TinkerGraph.open().traversal(); …
Michail Michailidis
  • 11,792
  • 6
  • 63
  • 106
0
votes
1 answer

How to avoid duplicate edges in the path in Tinkerpop 3?

In Tinkerpop3, we have SimplePath to prevent a traverser repeating the vertices. But what if I want it to traverse each edge only once? For example,Graph. In this graph, I want to get all the possible path if I start from V1 and traverse each edge…
jybsuper
  • 179
  • 2
  • 10
0
votes
1 answer

Creating a graph inside Gremlin Server

We are planning to use tinkerpop for our project. I had a few doubts about this: I see that there are GremlinServer.start() GremlinServer.stop() APIs which I can use to get gremlin server running in embedded style. This means it will not start any…
Neha
  • 225
  • 1
  • 5
  • 12
0
votes
2 answers

How to increment or decrement a value of vertex property in gremlin

For Example this is my Vertex: [label:songs, id:4336, name:testsong123, likeCount:0 ] What I have to do: I want to increment the "likeCount" when ever user likes the song and decrement the "likeCount" whenever a user unlike the song. What I am…
mano haran
  • 79
  • 2
  • 7
0
votes
2 answers

Is it possible to return a map of key values using gremlin scala

Currently i have two gremlin queries which will fetch two different values and i am populating in a map. Scenario : A->B , A->C , A->D My queries below, graph.V().has(ID,A).out().label().toList() Fetch the list of outE labels of A . Result :…
PGS
  • 1,046
  • 2
  • 17
  • 38
0
votes
1 answer

Titan db 1.0 : Tinkerpop3 Getting Index WARNING after querying geo Predicate

I'm using titan 1.0 db with GEO Predicate based on external index (elasticsearch): as I know there are 3 possibilities: DISJOINT ,WITHIN,INTERSECT. when I executing WITHIN/geoWithin no WARNING appears g.V().has(STORY_LOCATION,…
VitalyT
  • 1,671
  • 3
  • 21
  • 49
0
votes
1 answer

Creating Transactions With OrientDB-Gremlin

I am using this plugin so that I can interface with orient DB using tinkerpop 3.x . I am wondering how can I create different transactions ? With TitanDB its as simple as: t1 = graph.newTransaction(); t2 = graph.newTransaction(); t3 =…
Filipe Teixeira
  • 3,565
  • 1
  • 25
  • 45
0
votes
2 answers

DSE Graph authentication error

On a fresh new installation, DSE Graph throws an error to Gremlin Console, complaining about authentication configuration. Gremlin Console starts normally: plugin activated: tinkerpop.tinkergraph plugin activated: tinkerpop.server plugin…
0
votes
2 answers

DataStax/Tinkerpop - Ability to remove a property

I am looking a way to remove a propertyKey in the schema. The documentation here explains how to add properties but no information about the removal. Does that mean that it is not possible? Since DataStax relies on Cassandra that supports table…
Aymeric
  • 906
  • 9
  • 20
0
votes
1 answer

Titan 1.0 mixed index is not working with warning - Query requires iterating over all vertices

I am using Titan 1.0 with elasticsearch as backend. From the titan documentation, I learned that for using elasticsearch, we use mixedIndex while building indexes. Here is my use case and problem: I am creating a graph database for registration data…
RWM
  • 1
  • 3
0
votes
1 answer

How to form inner SubQuery in Gremlin Server (Titan 1.0)?

I'm using Following Query : g.V(741440).outE('Notification').order().by('PostedDateLong', decr).range(0,1).as('notificationInfo').match( __.as('notificationInfo').inV().as('postInfo'), ).select('notificationInfo','postInfo') it is giving…
Sumit Chourasia
  • 2,394
  • 7
  • 30
  • 57
0
votes
2 answers

Titan - strange behaviour of has() with mixed index

I have a Titan graph with ES backend and DynamoDB for persistence. Method has("mykey", "value") never retrieves a vertex. it always return nothing when querying for a mykey which is indexed by Elasticsearch. The index is updated and enabled. WHen…
Mohamed Taher Alrefaie
  • 15,698
  • 9
  • 48
  • 66
0
votes
2 answers

Gremlin: How to get duplicates in a graph?

Assume I have a graph with vertices that have property name, what is a good way to get Ids of all vertices that have the same name. Extending this, if I have a graph with day and month properties, how to return IDs of these vertices that share the…
Mohamed Taher Alrefaie
  • 15,698
  • 9
  • 48
  • 66
0
votes
0 answers

Mysql vs Cypher vs Gremlin on union query

I working on a project where I have to make real time recommandation based on filters. I decided to take a look on graph db and started to play with neo4j and compared it performance with mysql. rows are about : "broadcast": 159844, "format": 5, …
jrweb247
  • 95
  • 1
  • 8
0
votes
2 answers

Nested traversal gremlin query for Titan db

I am wondering how is possible to have a gremlin query which returns results in a nested format. Suppose there is property graph as follows: USER and PAGE vertices with some properties such as AGE for USER vertex; FOLLOW edge between USER and…
Ali
  • 1,759
  • 2
  • 32
  • 69