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
5
votes
2 answers

How can we use Tinkerpop Blueprints in Orientdb?

I want to use Blueprints and Pipes in OrientDB. What is the method? And also TinkerPop3 or TinkerPop2? Which is better for my learning experience?
Zeeshan
  • 375
  • 1
  • 3
  • 17
2
votes
0 answers

FramedGraph mapping between (Tinkerpop) DAO objects to model objects

I am using OrientDb 2.2 and the TinkerPop FramedGraph. I am using FramedGraph for the ease with which I interact with object models instead of doing setProperty("name", "bob") One thing that I dont understand with FramedGraph is why do I have…
2
votes
1 answer

TinkerPop3 compatibility with Frames?

I have following below 2 queries related to TinkerPop 3: 1) Which Frames version is compatible with tinkerpop3? 2) TinkerPop3 official documentation states that the Frames feature has merged into "Traversal" but I could not found any information on…
Kamal Verma
  • 115
  • 1
  • 1
  • 10
2
votes
1 answer

Add vertex to framed graph in OrientDB

I am not sure if this is an issue with OrientDB or operator error. In the code below, I am expecting to create new instances of Person, however, the new vertices are not going in as Person objects, rather they end up in the "V" collection. This has…
2
votes
0 answers

How can I use Traversal of Tinkerpop v3 instead of Frames of v2?

How can I write the following code unsing Tinkerpop v3? public interface Cat { @Relation(label="enemy") public void addEnemy(Mouse mouse); @Relation(label="enemy") public Collection getEnemies(); } FramesManager manager = new…
Celso Marques
  • 378
  • 1
  • 4
  • 15
1
vote
2 answers

Gremlin Groovy ClassCastException with Frames

I'm receiving the following error while using the @GremlinGroovy annotation associated with tinkerpop's frames. java.lang.ClassCastException: com.thinkaurelius.titan.graphdb.relations.CacheEdge cannot be cast to com.tinkerpop.blueprints.Vertex …
cscan
  • 3,684
  • 9
  • 45
  • 83
1
vote
1 answer

Tinkerpop Frames: Query vertices based on interface type

I'm using Tinkerpop Frames to create a set of vertices and edges. Adding a new vertex is simple but retreiving vertices based on type seems a bit difficult. Assume I have a class A and B and I want to add a new one so: framedGraph.addVertex(null,…
Mohamed Taher Alrefaie
  • 15,698
  • 9
  • 48
  • 66
1
vote
1 answer

How to Find Vertices of Specific class with Tinkerpop Frames

I have a FramedGraph object with Vertices of different classes, for instance Person and Location. I would like to retrieve all vertices of the "Person" class. Here is my current method. public List listPeople() { List
Brian Dolan
  • 3,086
  • 2
  • 24
  • 35
1
vote
1 answer

Gremlin: can't sort edges and return vertices

I'm trying to write a Gremlin query to traverse a graph using Tinkerpop Frames. Here is the code I have: @GremlinGroovy("it" + ".outE" + ".filter{it.label=='usedwith'}" + ".sort{-it.weight}" +…
Mohamed Taher Alrefaie
  • 15,698
  • 9
  • 48
  • 66
1
vote
0 answers

Scala Type Safety with Tinkerpop Frames

How can I use the type safety of Scala with Tinkerpop Frames' annotations? This is the Java version example at https://github.com/tinkerpop/frames/wiki : public interface Person { @Property("name") public String getName(); …
BAR
  • 15,909
  • 27
  • 97
  • 185
1
vote
2 answers

Overriding Getters and Setters in tinkerpop Frames annotated model

I'm working on a new piece of software and I'd like the values in the database to be encrypted. We are using OrientDB and are trying to implement the project using the tinkerpop libraries. Here I'm stuck a little bit. For one function, I need to…
jspriggs
  • 403
  • 1
  • 5
  • 15
1
vote
1 answer

Listing all Vertices of specific class in OrientDB

I've recently started exploring Graph databases (in particular Neo4j and OrientDB) and have come across a problem I can't seem to put my finger on. I'm running a local installation of OrientDB (OrientDB Server v2.0-M3 is active.). I'm using…
Andreas
  • 920
  • 1
  • 10
  • 22
1
vote
1 answer

Tinkerpop frame: how to create new Vertex

I can't persist a new vertex with Tinkerpop Frame and Blueprint (ver. 2.6). What am I doing wrong? This is my code.. a little cleaned from parts that are not useful. I am using OrientDb as undelying Graph database engine. I receive no exception, but…
Andrea T
  • 3,035
  • 4
  • 23
  • 39
1
vote
1 answer

TinkerPop Frames - storing a Map into a vertex properties

I'd like to persist a bare Map to vertex properties. The motivation is that I don't know in advance which properties the map will contain. And storing one vertex per property doesn't seem effective. How would I do that? interface Foo { …
Ondra Žižka
  • 43,948
  • 41
  • 217
  • 277
0
votes
1 answer

Frames Support with Titan DB 0.9.0-M2

I would like to use Titan 0.9.0-M2 for a feature that it offers over 0.5.4 but I am using Frames heavily and it looks like the TitanGraph class no longer implements the Tinkerpop Graph class. Without this, you cannot make a FramedGraph from a…
Ethan Hohensee
  • 1,557
  • 1
  • 13
  • 20
1
2