Questions tagged [tinkerpop-frames]

Tinkerpop Frames is an API which facilitates exposing Graph vertices as Java objects. Instead of writing Graph databases in terms of vertices and edges, graphs are written in terms of domain objects and their relationships to each other.

Tinkerpop: An Open Source Graph Computing Framework


Frames

Frames exposes any Blueprints graph as a collection of interrelated domain objects. Frames makes heavy use of InvocationHandler, Proxy classes, and Annotations to allow a developer to frame a graph element (vertex or edge) in terms of a particular Java interface. With Frames, it is possible to ensure that data within a graph is respective of a schema represented as a collection of annotated Java interfaces.

22 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 to parameterize the sort filter using tinkerpop gremlin / frames?

I want to sort my results using a given fieldname: @GremlinGroovy(value = "it.in('HAS_USER').sort{fieldName}._()[skip..limit]") public Iterable getUsersInOrder(@GremlinParam("fieldName") String fieldName, @GremlinParam("skip") int skip,…
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

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
1
2