Re: [Neo4j] Feedback after evaluation

2011-12-08 Thread Max De Marzi Jr.
Is HTTP as a protocol the problem? Maybe, it does have some advantages though. I think we all agree the REST API is not finished yet. We talked last week about Batch operations as a poor-man's replacement for Transactions and the concerns that brought up. I think the REST API will get there e

Re: [Neo4j] problem with neography and index.

2011-07-01 Thread Max De Marzi Jr.
I don't have paging in yet... I've been slacking I know. I'll get to it soon. On Fri, Jul 1, 2011 at 7:27 AM, Michael Hunger wrote: > You have a few options here: > > * paging is right now only supported in the REST API for traversals the other > request types will get it in 1.5 (so you could u

Re: [Neo4j] A (probably simple) problem on Neo4j

2011-06-27 Thread Max De Marzi Jr.
Something like: @neo.traverse(node1,"paths", {"order" => "breadth first", "uniqueness" => "relationship path", "relationships" => {"type"=> "knows", "direction" => "out"},

Re: [Neo4j] Design question: Del.icio.us

2011-06-09 Thread Max De Marzi Jr.
y saying that this problem is best > solved by a relational db instead of a graph db? > > Thanks, > Aseem > > On Wed, Jun 8, 2011 at 11:21 PM, Max De Marzi Jr. wrote: > >> Aseem, >> >> Which users tagged what? SELECT DISTINCT user_id FROM USER_TAGS WHERE >&

Re: [Neo4j] Design question: Del.icio.us

2011-06-08 Thread Max De Marzi Jr.
Aseem, Which users tagged what? SELECT DISTINCT user_id FROM USER_TAGS WHERE bookmark_id = x Which bookmarks did a user tag? SELECT DISTINCT bookmark_id FROM USER_TAGS WHERE user_id = x Which bookmarks were tagged with x? SELECT DISTINCT bookmark_id FROM USER_TAGS WHERE tag_id = x What question a

Re: [Neo4j] silverlight client for neo4j, advice needed

2011-05-19 Thread Max De Marzi Jr.
Use Traverse http://components.neo4j.org/neo4j-server/milestone/rest.html#Traverse with Fullpath as the return type. See https://github.com/maxdemarzi/neovigator/blob/master/neovigator.rb for an example. def neighbours {"order" => "depth first", "uniqueness"=> "none", "

Re: [Neo4j] Contacts on 2nd Level, excluding direct ones

2011-05-19 Thread Max De Marzi Jr.
Take a look at https://github.com/maxdemarzi/neography/blob/master/examples/facebook.rb for an example but basically it's just: @neo.traverse(node,"nodes", {"order" => "breadth first", "uniqueness" => "node global",

Re: [Neo4j] Getting started with Ruby

2011-05-11 Thread Max De Marzi Jr.
I think each has their place. This is how I see it: If you're going "all in" (your graph db is your primary db) then use the Andreas Neo4j.rb gem. If you're not, (your graph db is used as a secondary db or as an index for graph specific tasks) then it may be easier to use my Neography gem. I bel

Re: [Neo4j] Finding a Path Between Nodes (filtered by relationship property)

2011-03-21 Thread Max De Marzi Jr.
Add Something like: "return filter": { "language": "javascript", "body": "position.lastRelationship().hasProperty(\"userGroupId\") position.lastRelationship().getProperty(\"userGroupId\") == 111;"}}) to your traversal. On Mon, Mar 21, 2011 at 9:44 AM, Kevin Dieter wrote: > Hi, > > I am using t

Re: [Neo4j] Announcing Neo4j 1.3 “Abisko Lampa” M04

2011-03-11 Thread Max De Marzi Jr.
Oh and removing the "http://neography.org:7474/"; from neo4j-server.properties did the trick for me as far as being able to get webadmin to work. Both data and other tabs are coming up fine at http://neography.org On Fri, Mar 11, 2011 at 4:03 PM, Max De Marzi Jr. wrote: > v0.

Re: [Neo4j] Announcing Neo4j 1.3 “Abisko Lampa” M04

2011-03-11 Thread Max De Marzi Jr.
v0.0.12 of https://github.com/maxdemarzi/neography is out there with the thin wrapper updates to index deletions and advanced queries. I'll do the phase 2 version of these two next. On Fri, Mar 11, 2011 at 12:40 PM, Max De Marzi Jr. wrote: > My Steps: > > Pulled DB from 1.3.M02

Re: [Neo4j] Announcing Neo4j 1.3 “Abisko Lampa” M04

2011-03-11 Thread Max De Marzi Jr.
u have an existing db? In that case you need to upgrade explicitly... > > /peter > > Send from my mobile device, please excuse typos and brevity. > On Mar 11, 2011 4:45 PM, "Max De Marzi Jr." wrote: >> Hum... webadmin is not coming up for me... >> >> Th

Re: [Neo4j] Announcing Neo4j 1.3 “Abisko Lampa” M04

2011-03-11 Thread Max De Marzi Jr.
Hum... webadmin is not coming up for me... This is what I changed in the neo4j-server.propeties. # REST endpoint for the data API # Note the / in the end is mandatory #org.neo4j.server.webadmin.data.uri=http://localhost:7474/db/data/ org.neo4j.server.webadmin.data.uri=http://neography.org:7474/db

Re: [Neo4j] limiting results

2011-03-07 Thread Max De Marzi Jr.
I believe you can tie in to returnedNodesCount() http://components.neo4j.org/neo4j-examples/1.3.M02/apidocs/index.html?org/neo4j/graphdb/StopEvaluator.html @neo.traverse(school,"nodes", {"order" => "breadth first", "uniqueness" => "node global",

Re: [Neo4j] How to query based on properties

2011-02-23 Thread Max De Marzi Jr.
Traverse the graph returning all nodes with at least 1 matching property. For each node returned add up the matching properties to node A and put that in a list. Sort the list. On Thu, Feb 24, 2011 at 1:49 AM, Cedric Hurst wrote: > Not sure if its the best one, but one possible strategy would be

Re: [Neo4j] simple traverse question

2011-02-23 Thread Max De Marzi Jr.
hip_index(name, "fulltext") # creates a relationship index with "fulltext" option On Wed, Feb 23, 2011 at 9:57 AM, Max De Marzi Jr. wrote: >>>Since I want to later search for nodes by their mysql_id, do I need to >>>create an index and add the >

Re: [Neo4j] simple traverse question

2011-02-23 Thread Max De Marzi Jr.
st wanted to make sure > that I am not missing > something in my understanding of neography. > > thanks again. > > Charlie White > Avvo, Inc. > 1218 Third Avenue, Suite 300neo.get_node_relationships( > Seattle, WA 98101 > > On Tuesday 22 February 2011 7:48:35 pm Max De

Re: [Neo4j] simple traverse question

2011-02-22 Thread Max De Marzi Jr.
Here you go... Full code with setup: https://github.com/maxdemarzi/neography/blob/master/examples/traversal_example2.rb Interesting bit: def graduated_with_me(student) student = student["self"].split('/').last student_attended = @neo.get_node_relationships(student)[0] graduated = student_

[Neo4j] Neovigator Weekend Project

2011-02-20 Thread Max De Marzi Jr.
Guys, So I ran into the Ask Ken project ( http://askken.heroku.com/ ) by Michael Aufreiter yesterdat, and though it was pretty awesome... so I ported it to using Neo4j. Check it out: http://neovigator.heroku.com/ On github at https://github.com/maxdemarzi/neovigator Regards, Max ___

Re: [Neo4j] Index question (ReST API)

2011-02-19 Thread Max De Marzi Jr.
The indexing piece is really lacking in Neography. I keep meaning to get around to it, and it's about time I did (next week). It would be nice if we had full indexing support in the REST API first since whatever I implement will need to change when we do. If the specs are done, but not yet imple

Re: [Neo4j] Benchmarking Neo4j with Rtree index -v- PostgreSQL/PostGIS (Peter Neubauer) (Peter Neubauer)

2011-02-01 Thread Max De Marzi Jr.
Not sure if this will work dd for windows: http://www.chrysocome.net/dd command (if = input file, of = output file): dd if=nodestore.id of=/dev/null On Tue, Feb 1, 2011 at 11:52 AM, Dave Hesketh wrote: > Peter > As you suggested, I rerun the searches without closing the db. On the 2nd > iterat

Re: [Neo4j] Neo4j REST server in readonly mode

2011-01-19 Thread Max De Marzi Jr.
Couldn't you put a web server in front of it (Apache, Nginx, etc) and filter out the post requests while passing the gets? On Wed, Jan 19, 2011 at 3:11 PM, Jim Webber wrote: > Hi Hemant, > > Bringing up the REST API in readonly mode is not possible I'm afraid. > > We could consider adding it to t

Re: [Neo4j] How to get friends of friends using rest?

2010-12-12 Thread Max De Marzi Jr.
This page has how to do exactly that. https://github.com/maxdemarzi/neography/blob/master/examples/facebook.rb Try: { "order": "breadth first", "uniqueness": "node global", "relationships": [ { "type": "friends", "direction": "in" }, ], "return filter": { "language": "javascript

Re: [Neo4j] Rest API requests

2010-11-30 Thread Max De Marzi Jr.
Talk:      neubauer.peter > Skype       peter.neubauer > Phone       +46 704 106975 > LinkedIn   http://www.linkedin.com/in/neubauer > Twitter      http://twitter.com/peterneubauer > > http://www.neo4j.org               - Your high performance graph database. > http://www.thoughtmade.co

Re: [Neo4j] Rest API requests

2010-11-26 Thread Max De Marzi Jr.
Try upping the number of nodes created. Try 200, 500, 1000. On Fri, Nov 26, 2010 at 9:30 AM, Peter Neubauer wrote: > Ok, > Andreas helped me to get RVM set up and things working. > > When are you getting the problem? My testing ran good ... > > /peter > > On Wed, Nov 24,

Re: [Neo4j] [SPAM] Re: Datetimes in Neo4j REST Server

2010-11-24 Thread Max De Marzi Jr.
h milliseconds) and will be converted (from string, int, long, float, double) into whatever the idiomatic way for handling dates is (in the language of the library being used). On Wed, Nov 24, 2010 at 2:15 AM, Mattias Persson wrote: > Neo4j REST/Server handles array values: > > { "

Re: [Neo4j] Rest API requests

2010-11-23 Thread Max De Marzi Jr.
Hum... not sure try just: rspec spec/integration/rest_experimental_spec.rb On Tue, Nov 23, 2010 at 3:20 PM, Peter Neubauer wrote: > Mmh, > to start with, I am stuck with some OpenSSL error when trying to run rspecs: > > bundle exec rspec spec/integration/rest_node_spec.rb > JRuby limited openss

Re: [Neo4j] [SPAM] Re: Datetimes in Neo4j REST Server

2010-11-23 Thread Max De Marzi Jr.
l of this come from the limitations on JSON by itself. It's more > usual of what we think to use a domain specific implementation for the > JSON interchange. For example, Cassandra uses JSON2SStable to > import/export data, and mongoDB created BSON [1] to support Date and > binary

Re: [Neo4j] [SPAM] Re: Datetimes in Neo4j REST Server

2010-11-23 Thread Max De Marzi Jr.
What about: "data": {"name" : "NeoS::Max"}, "age": {"NeoI::31" } "data": {"name" : "NeoS[]::Max,Javier,Peter"}, "age": {"NeoI[]::31,29,33" } On Tue, Nov 23, 2010 at 4:59 PM, Rick Bullotta wrote: > FWIW, we store all dates as milliseconds relative to UTC, and pass them > around in that format.

Re: [Neo4j] Datetimes in Neo4j REST Server

2010-11-23 Thread Max De Marzi Jr.
Hum...maybe we should have the type of object in the json string? "data": {"name" : {"string" : "Max"}, "age": {"int" :31} } also how about arrays? "string[]" : ["Max", "Javier","Peter"] On Tue, Nov 23, 2010 at 1:02 PM, Javier de la Rosa wrote: > I was writting some extra tests for the pytho

Re: [Neo4j] Rest API requests

2010-11-23 Thread Max De Marzi Jr.
ndinavia's coolest Bring-a-Thing party. > > > > On Tue, Nov 23, 2010 at 9:23 AM, Max De Marzi Jr. > wrote: >> Hello, >> >> I started adding "fake" bulk operations to neography ( >> https://github.com/maxdemarzi/neography ) but ran into issues

[Neo4j] Rest API requests

2010-11-23 Thread Max De Marzi Jr.
Hello, I started adding "fake" bulk operations to neography ( https://github.com/maxdemarzi/neography ) but ran into issues when trying to create or get more than 100 nodes at a time. ubuntu ~/forks/neography: bundle exec rspec spec/integration/rest_bulk_spec.rb No Extensions Found: /home/max/.ne

Re: [Neo4j] neo4j-rest

2010-11-22 Thread Max De Marzi Jr.
Hum... Check out the gist, I'm getting 7 node level 5's back. Maybe my node layout is wrong, tweak it to what you have and we can try a few things... On Mon, Nov 22, 2010 at 1:28 AM, Anees Haider wrote: > Thanks Max, It is now at least full filling some of the requirements. Now > the only limit

Re: [Neo4j] neo4j-rest

2010-11-21 Thread Max De Marzi Jr.
Node().getId()!=#{starting_id};"}, "return filter" => { "language" => "javascript", "body" => "position.endNode().hasProperty('NODE_LEVEL') &a

Re: [Neo4j] neo4j-rest

2010-11-21 Thread Max De Marzi Jr.
"result filter"? shouldn't that be "return filter" or was that not a copy and paste? On Sun, Nov 21, 2010 at 11:34 PM, Anees Haider wrote: > Hi all, > > > > I want to write an prune evaluator for neo4j-rest, such that we have a node > type "N" (having property "p" set to value "v", i.e. NODE_LEVE

Re: [Neo4j] Hello list

2010-11-16 Thread Max De Marzi Jr.
Jose, Cual es tu pregunta en espa~nol? Yo puedo traducir por ti. Parece que estas preguntado cual es el modelo que neo4j usa, pero no entendemos a lo que te refieres. El modelo es cualquier cosa que puedes modelar con simple puntos y relaciones. Los puntos pueden ser de cualqier forma (con tal

Re: [Neo4j] Neo4j-Rails and Ext-JS

2010-10-30 Thread Max De Marzi Jr.
That example is for the OLD gem. Try http://github.com/andreasronge/neo4j-rails-example Andreas is almost ready with http://github.com/andreasronge/neo4j On Sat, Oct 30, 2010 at 2:19 AM, Ahmed Abdelsalam wrote: > Hi, > > > > I'm working on a project for using Neo4j as a database for JRuby-base

Re: [Neo4j] How to traverse by the number of relationships between nodes?

2010-07-09 Thread Max De Marzi Jr.
nce and consume a lot of memory. > > Regards, > Johan > > On Thu, Jul 8, 2010 at 4:13 PM, Max De Marzi Jr. > wrote: > > Can somebody verify the max number of relationship types? If it is 64k, > is > > there a way to increase it without significant effort?

Re: [Neo4j] How to traverse by the number of relationships between nodes?

2010-07-08 Thread Max De Marzi Jr.
Can somebody verify the max number of relationship types? If it is 64k, is there a way to increase it without significant effort? > I believe you can have something like 64k > relationship types, so using the relationship type for the route name is > possible. ___

Re: [Neo] General questions

2010-05-02 Thread Max De Marzi Jr.
Ilya, Remember that we have no 3 way relationships (as in types), you have use a node for anything that connects more than two objects. So break down Show into Episodes if you want to to track the 1st (or only) airing of that episode. Actor 1 = Node 1 Class Actor Show 1 = Node 2 Class Show Netwo

Re: [Neo] General questions

2010-05-01 Thread Max De Marzi Jr.
I'm no expert, but I tried to answer your questions. On Sat, May 1, 2010 at 7:23 PM, ilya wrote: > Hi all, > > > > I went through all docs on Neo site and it looks very interesting. > However, > I still have couple of things I was wondering about that I couldn’t find > answers to. I hope I can

Re: [Neo] How to efficiently query in Neo4J?

2010-04-09 Thread Max De Marzi Jr.
On first traversal, add a relationship to a "found node" to each node that would return, and check for this relationship on the second traversal? Maybe create a unique id, set a property or add a node property with the unique id on the first traversal, and check for this property on the second trav

Re: [Neo] How to efficiently query in Neo4J?

2010-04-08 Thread Max De Marzi Jr.
You know this is something that I think needs to be made clear... using just the graph is not the right way to go unless you have a very special application. I was trying to traverse over cities/people/jobs/skills and they were taking a while (as in 10-15 seconds). Then I did it sqlserver... less

Re: [Neo] How to efficiently query in Neo4J?

2010-04-07 Thread Max De Marzi Jr.
I've had similar issues and they way I've done it (which may not be the right way) is to run the first traversal and store the returned nodes. Then run the second traversal and return only if it is contained in the set of returned nodes in the first traversal. The traverses hit each node only onc

[Neo] Choosing between a property or a node

2010-02-18 Thread Max De Marzi Jr.
Hello, What is the proper way to handle things that have only a few choices like: gender (male/female/unknown) status (active, inactive, purged) race(10 choices + other) etc. As properties of a Person node, or as nodes that link to the Person node? Pros or Cons of each method? How about someth