Re: [Neo4j] Returning arbitrary data from gremlin

2011-09-11 Thread Xavier Shay
On Sun, Sep 11, 2011 at 9:26 AM, espeed wrote: > Hi Xavier - > > If you would, provide a more detailed description of what the query is > trying to do. > We have a primary node type, which has outbound connections to secondary node types. A primary node will never have a direct connection to anot

Re: [Neo4j] Returning arbitrary data from gremlin

2011-09-11 Thread Marko Rodriguez
Hi, Also, there table-step documentation for Gremlin is in "Pattern Match Pattern": https://github.com/tinkerpop/gremlin/wiki/Pattern-Match-Pattern Side note: t = t.collect { outN = it.outV.toList().get(0); inN = it.inV.toList().get(0); [outN.type, outN.key, inN.type, inN.key]

Re: [Neo4j] Returning arbitrary data from gremlin

2011-09-11 Thread Peter Neubauer
Xavier, also, for the table construction, have a look at the example at http://docs.neo4j.org/chunked/snapshot/gremlin-plugin.html#rest-api-send-a-gremlin-script---json-encoded-with-table-results, if that helps? Cheers, /peter neubauer GTalk:      neubauer.peter Skype       peter.neubauer Phone 

Re: [Neo4j] Returning arbitrary data from gremlin

2011-09-11 Thread espeed
x27;s a user-defined step that builds a tree: https://gist.github.com/1197179 - James -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-Returning-arbitrary-data-from-gremlin-tp3327047p3327144.html Sent from the Neo4j Community Discussion

[Neo4j] Returning arbitrary data from gremlin

2011-09-11 Thread Xavier Shay
Hello, I've been playing with Gremlin over the weekend - thanks to all the help provided already on other threads, it has been really useful. I'm trying to optimize a query that currently takes three HTTP requests (index fetch, traverse, batch get for node data) by writing a Gremlin script and exe