Re: [Neo4j] Feedback after evaluation

2011-12-09 Thread espeed
On Thursday, December 8, 2011 2:48:59 AM UTC-6, Dmytrii Nagirniak wrote: Unfortunately I couldn't see a lot of value in the REST API either. The core operations that are taken for granted with native bindings (traversals using poor Ruby constructs) would require to execute HTTP request (that's

Re: [Neo4j] Feedback after evaluation

2011-12-09 Thread espeed
Michael Hunger wrote you should use native gremlin params where they can be used. otherwise you'll blow the scriptengine in the plugin and loose lots of performance Hi Michael - What do you mean exactly? After the JSON param converts to a map, everything is a native Groovy param. - James

Re: [Neo4j] Feedback after evaluation

2011-12-09 Thread espeed
Michael Hunger wrote I understood you were just templating the params in there (string replacement) which would result in different groovy strings for every set of different parameters. Is this correct? The string replacement is done on the client side. When the script is presented to the

Re: [Neo4j] Feedback after evaluation

2011-12-09 Thread espeed
Michael Hunger wrote The gremlin plugin (as does the cypher plugin) take an map (a json map) as params, each of which which you then can refer to everywhere in the gremlin script (key == variable name, value == value). So no need for JSONSlurper. Ahh, that's different than Rexster's

Re: [Neo4j] Feedback after evaluation

2011-12-09 Thread espeed
Michael - If I understand you correctly, then this modified Gremlin script and request format should solve problem 2: Gremlin Script: https://gist.github.com/1453964 Script Engine REST Request that uses params: https://gist.github.com/1453966 - James -- View this message in context:

Re: [Neo4j] Feedback after evaluation

2011-12-09 Thread espeed
Michael - What if each Gremlin script was scoped inside a Groovy function? Example: https://gist.github.com/1454298 Would that help keep things clean? - James -- View this message in context:

Re: [Neo4j] Best practice for User Authentication and Authorization

2011-09-15 Thread espeed
Brendan cheng-2 wrote: What design pattern do you recommend for user authentication and authorization in neo4j graph? I'm searching a simple and flexible way to restrict the access to certain part of graph which is dynamically depends on the user and role...etc.How to avoid excessive

Re: [Neo4j] neo4j+playframework

2011-09-15 Thread espeed
/tinkerpop/rexster/wiki/), which is another Neo4j REST server, but the principles are the same. You can view the source code here: https://github.com/espeed/bulbs/tree/master/bulbs Here are the module layers from lowest to highest: rest.py, element.py, index.py graph.py, model.py

Re: [Neo4j] Querying a full text index

2011-09-12 Thread espeed
Hi Yaniv - Something to keep in mind... It's now easy to use an external full-text index such as Solr, ElasticSearch, or IndexTank (http://indextank.com/) for full-text search and then use Neo4j for rankings. For example, you could do the full-text query using Solr and have it return a list of

Re: [Neo4j] Returning arbitrary data from gremlin

2011-09-11 Thread espeed
Hi Xavier - If you would, provide a more detailed description of what the query is trying to do. You might look at the Gremlin aggregate, scatter, and gather methods, and I thought there was a collect() method, but I don't see it in the docs -- Marko, isn't/wasn't that method?). Here are some

Re: [Neo4j] Neo4j Write Performance

2011-09-11 Thread espeed
I added a ticket for this here... https://github.com/neo4j/community/issues/18 -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-Write-Performance-tp3323638p3327618.html Sent from the Neo4j Community Discussions mailing list archive at Nabble.com.

[Neo4j] Neo4j Write Performance

2011-09-09 Thread espeed
Hi Guys - I have been working on loading WordNet (http://wordnet.princeton.edu/) into Neo4j, and have been using it as an opportunity to tune write performance on Linux for a Web application I am developing. My initial idea was to load WordNet RDF (http://semanticweb.cs.vu.nl/lod/wn30/) through

Re: [Neo4j] Gremlin pipes broken in 1.5

2011-09-09 Thread espeed
Xavier Shay wrote: I have just upgraded to neo4j 1.5 (brew install neo4j --HEAD) and am getting the following exception whenever I try to use a pipe: curl -H Accept:application/json -X POST -d '{script:g.v(1)._().both;}' Hi Xavier - Gremlin and Pipes has been undergoing a massive

Re: [Neo4j] Aggregate queries

2011-09-08 Thread espeed
Marko Rodriguez-2 wrote: For all nodes in a particular index, how many other nodes are they connected to at depth X? Here is how I would do it -- groupCount is not needed. g.idx(index_name)[[key:value]].both.loop(1){it.loops depth}.count() Thanks Marko. A couple

[Neo4j] Neo4j Write Test Compile Error

2011-09-08 Thread espeed
Hi Guys - I'm trying to compile and run the write test (https://svn.neo4j.org/laboratory/users/johan/write-test) from http://wiki.neo4j.org/content/Linux_Performance_Guide, and I'm getting this error: https://gist.github.com/1205327 Is there a newer version of this? Thanks. - James --

Re: [Neo4j] Neo4j Write Test Compile Error

2011-09-08 Thread espeed
Bryce Ewing wrote: You can get this working by replacing the parent pom reference in the pom.xml file with: parent groupIdorg.neo4j.build/groupId artifactIdparent-central/artifactId version25/version /parent Instead of the current: parent groupIdorg.neo4j/groupId

Re: [Neo4j] Aggregate queries

2011-09-07 Thread espeed
Xavier Shay wrote: For all nodes in a particular index, how many other nodes are they connected to at depth X? Marko will be able to improve upon this, but try something like this (this is untested)... m = [:] depth = 10 index_name = vertices index_key = name index_nodes =

Re: [Neo4j] Loading WordNet 3.0 RDF into Neo4j?

2011-08-28 Thread espeed
Peter Neubauer wrote: I would try the blueprints rdf importer. look at my github home (peterneubauer) for a project to import rdf from dbpedia which should work for any rdf. Thanks Peter! -- View this message in context:

[Neo4j] Loading WordNet 3.0 RDF into Neo4j?

2011-08-27 Thread espeed
Has anyone here loaded WordNet 3.0 (http://wordnet.princeton.edu/) into Neo4j or have pointers for doing so? WordNet 2.0 is in RDF form (http://www.w3.org/2006/03/wn/wn20/) as well as 3.0 (http://semanticweb.cs.vu.nl/lod/wn30/). What's the best way to load/convert RDF data into Neo4j? Thanks!

[Neo4j] Create Custom Gremlin Steps in Any JVM Language

2011-08-22 Thread espeed
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

Re: [Neo4j] Are Unique Indices in the Works?

2011-08-06 Thread espeed
Michael Hunger wrote: What one could do at a lower level is to create operations like db.obtainUniqueNode(Map properties,String...idProperties); node.obtainUniqueRelationship(dir, type, props, String...idProperties); node.obtainUniqueRelationship(dir, type, targetNode, props,

Re: [Neo4j] Are Unique Indices in the Works?

2011-08-06 Thread espeed
Michael Hunger wrote: Probably we have to add this unique property behavior to the auto-indexing framework. Right now we have no means to mark properties as unique. So whenever you take a different node and set one of its unique properties to a value already contained in an unique

[Neo4j] Are Unique Indices in the Works?

2011-08-05 Thread espeed
Hi - The issue of unique indices came up several times earlier this summer: http://neo4j.org/forums/#nabble-td3047393 http://neo4j.org/forums/#nabble-td3148364 http://lists.neo4j.org/pipermail/user/2011-June/009809.html And Mattias created a support ticket:

Re: [Neo4j] Hwo to work with indexes in gremlin?

2011-07-19 Thread espeed
The Gremlin Wiki (https://github.com/tinkerpop/gremlin/wiki) is where you can find the Gremlin documentation. Specifically look at the Gremlin Methods (https://github.com/tinkerpop/gremlin/wiki/Gremlin-Methods) and Gremlin Steps (https://github.com/tinkerpop/gremlin/wiki/Gremlin-Steps) cheat

[Neo4j] Bulbflow: a Python framework for Neo4j

2011-07-16 Thread espeed
Hey guys - I just released Bulbflow, a new Python framework for graph databases. It supports Neo4j and Gremlin through Rexster, and it's online at http://bulbflow.com . Enjoy! - James -- View this message in context:

Re: [Neo4j] Bulbflow: a Python framework for Neo4j

2011-07-16 Thread espeed
Hi Javier - Thanks! Yeah, Bulbflow (Bulbs) is what I was talking in when we were commenting in Hacker News a few weeks ago (http://news.ycombinator.com/item?id=2684816). I have used your API for the Neo4j REST server, but I didn't know you were working on one for Rexster too -- we should exchange

Re: [Neo4j] Traversals versus Indexing

2011-06-12 Thread espeed
It depends on the traversal you are running. -- View this message in context: http://neo4j-user-list.438527.n3.nabble.com/Neo4j-Traversals-versus-Indexing-tp3057515p3057538.html Sent from the Neo4J User List mailing list archive at Nabble.com. ___

[Neo4j] How Do You Configure neo4j Not to Reuse IDs?

2011-04-28 Thread espeed
How do you configure neo4j not to reuse IDs? Thanks. - James -- View this message in context: http://neo4j-user-list.438527.n3.nabble.com/How-Do-You-Configure-neo4j-Not-to-Reuse-IDs-tp2874501p2874501.html Sent from the Neo4J User List mailing list archive at Nabble.com.

Re: [Neo4j] How Do You Configure neo4j Not to Reuse IDs?

2011-04-28 Thread espeed
I found the mentions of a patch from about a year ago... http://lists.neo4j.org/pipermail/user/2010-June/003964.html Has something like this with a configuration param made it into the main branch? Thanks. - James -- View this message in context: