bio4j / angulillos

Java 8 library for strongly typed graph data
GNU Affero General Public License v3.0
7 stars 2 forks source link

experiment with typed Tinkerpop3 traversals #16

Closed eparejatobes closed 9 years ago

eparejatobes commented 10 years ago

This is a bit tricky. Maybe we could subclass Traversal (and all steps) and make them typed, while using our types in the implementation?

eparejatobes commented 10 years ago

What I think is possible is to make some sort of typed variant of Gremlin, deferring all work to the untyped version as now (basically with Gremlin3 classes taking the place of the untyped stuff here (which would reduce the number of params)). We would need to

  1. subclass everything and make it typed (doable), with the raw refs pointing to the correspoding untyped stuff (same pattern as for TypedXXX now)
  2. refine the methods so that they only work for the right types, and implement them based on the raw stuff
eparejatobes commented 10 years ago

It's a lot of writing, but looks perfectly possible

eparejatobes commented 9 years ago

TinkerPop3 is still not stable. Closing, we will start work on this once there's a TinkerPop 3.0 release