Nice effort James, Thanks a lot! /peter
Sent from my phone. On Aug 22, 2011 5:41 PM, "espeed" <[email protected]> wrote: > During my experimentation in creating Gremlin user-defined steps > (https://github.com/tinkerpop/gremlin/wiki/User-Defined-Steps), I had a > thought -- what if you could create a Gremlin step using any JVM language? > > Well as it turns out, you can. > > I created a library that provides an example for how to write custom, > user-defined Gremlin steps in Jython. > > The library is called mogwai, and it's on Github > (https://github.com/espeed/mogwai). > > You should be able to adapt it for any JVM language. > > Here's the example code: > > Jython module: > https://github.com/espeed/mogwai/blob/master/mogwai/steps/jython/Gizmo.py > > Java Interface: > https://github.com/espeed/mogwai/blob/master/mogwai/interfaces/GizmoType.java > > Java Factory you can reuse for each Jython module: > https://github.com/espeed/mogwai/blob/master/mogwai/factories/JythonFactory.java > > Groovy script that create the Gremlin steps: > https://github.com/espeed/mogwai/blob/master/examples/gizmo.groovy > > Instructions on how to make this work: > https://github.com/espeed/mogwai/blob/master/README > > > And here's the corresponding thread in the Gremlin Users group > (https://groups.google.com/d/topic/gremlin-users/wVTrJR1OMzQ/discussion). > > - James > > -- > View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/Create-Custom-Gremlin-Steps-in-Any-JVM-Language-tp3275424p3275424.html > Sent from the Neo4j Community Discussions mailing list archive at Nabble.com. > _______________________________________________ > Neo4j mailing list > [email protected] > https://lists.neo4j.org/mailman/listinfo/user _______________________________________________ Neo4j mailing list [email protected] https://lists.neo4j.org/mailman/listinfo/user

