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

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 michael.hun...@neotechnology.com wrote: You have a few options here: * paging is right now only supported in the REST API for traversals the other request types will

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}, return filter = {

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

2011-06-09 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

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

2011-06-09 Thread Max De Marzi Jr.
, are you basically 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. maxdema...@gmail.comwrote: Aseem, Which users tagged what? SELECT DISTINCT user_id FROM USER_TAGS WHERE bookmark_id = x Which

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

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 kevin.die...@megree.com wrote: Hi, I am

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/

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

2011-03-11 Thread Max De Marzi Jr.
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. maxdema...@gmail.com wrote: Hum... webadmin is not coming up for me... This is what I changed in the neo4j-server.propeties. # REST endpoint

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. maxdema...@gmail.com wrote

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] simple traverse question

2011-02-23 Thread Max De Marzi Jr.
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 Marzi Jr. wrote: Here you go... Full code with setup: https://github.com/maxdemarzi/neography/blob/master

Re: [Neo4j] simple traverse question

2011-02-23 Thread Max De Marzi Jr.
) # creates a relationship index with fulltext option On Wed, Feb 23, 2011 at 9:57 AM, Max De Marzi Jr. maxdema...@gmail.com wrote: Since I want to later search for nodes by their mysql_id, do I need to create an index and add the mysql_id to that index?  It appears as if that is the only way

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 ced...@spantree.net wrote: Not sure if its the best one, but one

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 =

[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

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 dave.hesk...@compassengine.com wrote: Peter As you suggested, I rerun the searches without

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 j...@neotechnology.com wrote: Hi Hemant, Bringing up the REST API in readonly mode is not possible I'm afraid. We could

Re: [Neo4j] Rest API requests

2010-11-30 Thread Max De Marzi Jr.
://www.neo4j.org               - Your high performance graph database. http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party. On Sat, Nov 27, 2010 at 12:27 AM, Max De Marzi Jr. maxdema...@gmail.com wrote: Try upping the number of nodes created.  Try 200, 500, 1000. On Fri, Nov

Re: [Neo4j] Rest API requests

2010-11-26 Thread Max De Marzi Jr.
at 5:26 AM, Max De Marzi Jr. maxdema...@gmail.com wrote: Hum... not sure try just:  rspec spec/integration/rest_experimental_spec.rb On Tue, Nov 23, 2010 at 3:20 PM, Peter Neubauer peter.neuba...@neotechnology.com wrote: Mmh, to start with, I am stuck with some OpenSSL error when trying

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

2010-11-24 Thread Max De Marzi Jr.
to import/export data, and mongoDB created BSON [1] to support Date and binary data. Best regards. [1] http://bsonspec.org/ On Tue, Nov 23, 2010 at 19:02, Max De Marzi Jr. maxdema...@gmail.com wrote: What about: data: {name : NeoS::Max}, age: {NeoI::31 } data: {name : NeoS[]::Max

[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:

Re: [Neo4j] Rest API requests

2010-11-23 Thread Max De Marzi Jr.
AM, Max De Marzi Jr. maxdema...@gmail.com wrote: 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

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 ver...@gmail.com wrote: I was writting some extra tests for the python

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 rick.bullo...@burningskysoftware.com wrote: FWIW, we store all dates as milliseconds relative to UTC, and pass them around

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

2010-11-23 Thread Max De Marzi Jr.
and binary data. Best regards. [1] http://bsonspec.org/ On Tue, Nov 23, 2010 at 19:02, Max De Marzi Jr. maxdema...@gmail.com wrote: 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

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 peter.neuba...@neotechnology.com wrote: Mmh, to start with, I am stuck with some OpenSSL error when trying to run rspecs: bundle exec rspec

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 an...@justlynx.com wrote: Thanks Max, It is now at least full filling some of the requirements.

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 an...@justlynx.com 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.

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

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

2010-07-09 Thread Max De Marzi Jr.
On Thu, Jul 8, 2010 at 4:13 PM, Max De Marzi Jr. maxdema...@gmail.com wrote: 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

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

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 il...@nyc.rr.com 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

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

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