Questions tagged [tinkerpop]

Apache TinkerPop™ is a graph computing framework for both graph databases (OLTP) and graph analytic systems (OLAP).

Apache TinkerPop™ is a graph computing framework for both graph databases (OLTP) and graph analytic systems (OLAP). Graph systems that are TinkerPop-enabled, allow users to the ability to utilize the various aspects of the TinkerPop stack in development of vendor-agnostic graph applications. The key component to the TinkerPop stack is the Gremlin, a graph traversal language, which allows users to query and manage a graph.

974 questions
0
votes
1 answer

OrientDB query for nodes connected to origin by multiple ways

For example, I have employee managing particular country and particular company. I want to query only accounts which are in countries AND companies managed by the given employee. Ideas? Performance issues to be aware of? Gremlin query is acceptable,…
5ar
  • 84
  • 5
0
votes
1 answer

How do I write Gremlin queries for following patterns?

I have some miniature Gremlin directed graphs, in which each vertex has two properties "type" and "text". The values for "text" property are just English text while the "type" property can a have a value selected from this set : NP, PP, VP, ADVP,…
swap310
  • 768
  • 2
  • 8
  • 22
0
votes
1 answer

Is com.tinkerpop.pipes.Pipe implementation safe to cache and re-use later on other graph instances?

I am currently create a Pipe as shown in line 2 below. Pipe pipe = Gremlin.compile("_().out('knows').name"); After it has been created I am caching it so that it can be re-used with different graphs below Graph graph =…
Aravind Yarram
  • 78,777
  • 46
  • 231
  • 327
0
votes
0 answers

How to create an unique index on a property using tinkerpop frames?

My graph contains a single aggregation node (:Group) which just groups various other nodes (:User) together. My Cypher representation for my graph would look like this: (rootGroup:Group)-[:HAS_MEMBER]->(user:User) In Spring Data Neo4j i used a…
Jotschi
  • 3,270
  • 3
  • 31
  • 52
0
votes
1 answer

Tinkerpop frames: Cannot change the schema while a transaction is active

I'm testing Tinkerpop frames. I have a relationship similar to Person Knows Person but everytime I test my code it gives me this error com.orientechnologies.orient.core.exception.OSchemaException: Cannot change the schema while a transaction is…
Mohamed Taher Alrefaie
  • 15,698
  • 9
  • 48
  • 66
0
votes
1 answer

Why simple set and then get on Dynamic Proxy does not persist? (using TinkerPop Frames JavaHandler)

I wanted to add simple getters and setters on a class that implements VertexFrame and I used JavaHandlers for those. For those methods I didn't want to have any interaction with the database. Unfortunately there is not something like @Ignore so I…
0
votes
1 answer

How to bind a class to a Vertex and also have a property bound to an Edge property using Tinkerpop Frames?

I want to have a Java class to bind to this relationship: Vertex - Relationship - Vertex (a:Clause)-[r:HasClause]-(b:Clause) The problem is that the edge of class "HasClause" should have a property called "alias" on the same class - I don't know how…
Michail Michailidis
  • 11,792
  • 6
  • 63
  • 106
0
votes
1 answer

How to limit parsing depth using Tinkerpop Frames

Hi I have an interface and a corresponding implementation class like: public interface IActor extends VertexFrame { @Property(ActorProps.nodeClass) public String getNodeClass(); @Property(ActorProps.nodeClass) public void…
Michail Michailidis
  • 11,792
  • 6
  • 63
  • 106
0
votes
1 answer

How to iterate gremlinepipeline of titan db to get the vertex & it's properties in Java API

Here is the sample code which I am using but I don't know how to use this Pipeline object to get the vertices & it's properties. GremlinPipeline pipeline = new GremlinPipeline(vert) .out("LIVES_IN_CITY").in("LIVES_IN_CITY") .filter(new…
RCS
  • 1,370
  • 11
  • 27
0
votes
2 answers

How to output append reason to similarities in Gremlin

I have the following simple Graph: User -- Likes --> Item I'm finding top 10 similar users to a user u using the following Gremlin code: u.out('Likes').in('Likes').filter([u]).groupCount.cap.orderMap(T.decr)[0..10].map() This outputs something like…
jack12345
  • 3
  • 1
0
votes
1 answer

How to speed up "global" queries in Titan DB?

We are using Titan with Persistit as backend, for a graph with about 100.000 vertices. Our use-case is quite complex, but the current problem can be illustrated with a simple example. Let's assume that we are storing Books and Authors in the graph.…
Martin Häusler
  • 6,544
  • 8
  • 39
  • 66
0
votes
2 answers

Gremlin union method throws exception using otherV method

I ran these codes: g.V().has("name", "Jones").union(g.of().bothE("knows").inV()).values() g.V().has("name", "Jones").union(g.of().bothE("knows").otherV()).values() The first one returns correctly, but brings Jones too. The second one throws an…
Celso Marques
  • 378
  • 1
  • 4
  • 15
0
votes
2 answers

Not able to create new TinkerGraph in Tinkerpop3

I am trying to create a new tinker graph. But it is giving following exception i am very new to graph databases. I just have installed tinkerpop3 on ubuntu linux. can some one help me if i am missing any thing, Thanks. gremlin> g =…
Ramana K
  • 3
  • 1
  • 3
0
votes
1 answer

Shortest Path with Titan and Cassandra

Currently we are using Titan Graph DB with Cassandra as backend for a telecom application. The database consists of Network topology details. We have a requirement to calculate the shortest path between network nodes based on the Dijkstra algorithm.…
user3364247
  • 1,477
  • 3
  • 14
  • 24
0
votes
1 answer

What is the best practice to update a Vertex after is detached from DB with Tinkerpop Frames?

Let's exemplify I receive a Vertex with Tinkerpop Blueprint, then I use Frames to convert it in an entity. I close the database (so from now the node is detached from the DB) and I show the node on a web page to let the user modify it. The user…
Andrea T
  • 3,035
  • 4
  • 23
  • 39