Re: [Neo4j] With rest,how to get the root URI

2011-12-07 Thread maxdemarzi
http://docs.neo4j.org/chunked/milestone/rest-api-service-root.html The Reference Node: { "relationship_index" : "http://localhost:7474/db/data/index/relationship";, "node" : "http://localhost:7474/db/data/node";, "relationship_types" : "http://localhost:7474/db/data/relationship/types";,

Re: [Neo4j] What is this query in JavaScript (REST)?

2011-12-05 Thread maxdemarzi
dnagir wrote > > I suppose it's just the set of relationships allowed to iterate over > judging from the "return_filter". > Yup. I don't know your model, so the query may be simpler depending on how things are connected. If you don't have users who link to other users, then you can skip the ch

Re: [Neo4j] What is this query in JavaScript (REST)?

2011-12-05 Thread maxdemarzi
START s=node(123) MATCH s->[:users]->[:current]->u WHERE u.email = 'abc' RETURN u something like: nodes = @neo.traverse(node1, "nodes", {"order" => "breadth firs

[Neo4j] Anyone try out the PageRank function on Gremlin?

2011-12-05 Thread maxdemarzi
Anyone try out the PageRank function on Gremlin? https://github.com/tinkerpop/gremlin/wiki/Working-with-JUNG-Algorithms/0506c193f30abe0bc18d40d7a08c9257d9311b13 How does it perform with just under 100k nodes on a sparse graph (3000 relationship max, average of 100)? I've been doing my pagerank v

Re: [Neo4j] Not sure how to access webadmin in Red Hat Enterprise Linux 5.4

2011-12-05 Thread maxdemarzi
Bring up the Putty GUI. Load your saved session On the side menu: Go to Connection > SSH > Tunnels Source Port: 7474 Destination: localhost:7474 Click "Add" Click back on Session on the side menu Click on your saved session. Click Save. Now try it again, and it will setup the tunnel for you when yo

Re: [Neo4j] Not sure how to access webadmin in Red Hat Enterprise Linux 5.4

2011-12-03 Thread maxdemarzi
use SSH port forwarding. ssh -L 7474:localhost:7474 username@myremoteserver Now just connect as if it were local. Assuming you aren't also running a local neo4j already (if you are use a different port number). like: ssh -L 7475:localhost:7474 username@myremoteserver -- View this message in co

[Neo4j] RDBMS Enforced Polyglot Persistence

2011-12-02 Thread maxdemarzi
Guys, I think I've mentioned before that I use Neo4j as a special type of index to data in postgresql, and I keep the two in sync at the code leve with after_save callbacks. It works for my use case, but what if you needed the two dbs to be in proper sync transaction style? A couple of years ago

Re: [Neo4j] cypher question - subqueries possible?

2011-11-28 Thread maxdemarzi
If you were doing this in a single traversal, every time you encountered a node type C, you would have to ask for all it's relationships and dig inside the end node of those relationships to see if any of them have a property type for node B. In two traversals, you'd get an array of all the Cs t

Re: [Neo4j] Nested/ chained queries

2011-11-26 Thread maxdemarzi
Sure, it's like getting friends of friends: https://github.com/maxdemarzi/neography/blob/master/examples/facebook.rb This should work, but I haven't tested it, so keep an eye out for typos. nodes = @neo.traverse(node1,

Re: [Neo4j] Activity Streams and Twitter Sample App

2011-11-21 Thread maxdemarzi
A couple of things bothered me about Rene's approach. 1. Custom Neo4j that could handle lots of relationship types. Not 100% sure where this fits? 2. Performance drops like a bomb when K (the number of items retrieved) increases. So it kind of works to get the top 15 items... A twitter stream co

Re: [Neo4j] Fwd: Cool Discussion related to graph modelling of social networks

2011-11-15 Thread maxdemarzi
I came up on Aleksa Vukotic's blog post ( http://www.aleksavukotic.com/2011/07/neo4j-super-nodes-and-indexed.html ) and realized his IndexedRelationshipExpander with some tweaks would work for this purpose. relationship_auto_indexing=true relationship_keys_indexable=dated,measured This takes

Re: [Neo4j] Fwd: Cool Discussion related to graph modelling of social networks

2011-11-09 Thread maxdemarzi
It's interesting how he disliked XFN (or any standards) because of the rigidity of the relationship types, obviously we can have as many relationship types as we want in Neo4j (last I remember performance drops at around 10k right?) One of the things the blog post talked about modeling Time and St

Re: [Neo4j] Suggestions on materials for learning graph theory

2011-11-08 Thread maxdemarzi
Marko's blog has some good articles. http://markorodriguez.com/writings/ The Graph Traversal Pattern => http://arxiv.org/pdf/1004.1001v1 Constructions from Dots and Lines => http://arxiv.org/pdf/1006.2361v1 -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.co

Re: [Neo4j] Cypher->Pickle?

2011-11-04 Thread maxdemarzi
Andres Taylor wrote: > > Love the idea. Why didn't I think of that? All of Cypher is made out of > bits and pieces that I've stolen from others anyway - I think I want to > steal this one too. > Ha! Max De Marzi wrote: > > That is one way of looking at it, another way of looking at it is th

Re: [Neo4j] Cypher->Pickle?

2011-11-04 Thread maxdemarzi
Tero Paananen wrote: > > Additionally I don't find adding a join keyword to a query language that > queries a data store that has no joins better in any shape or form. > That is one way of looking at it, another way of looking at it is that all the tables are already joined. Not sure how we can

Re: [Neo4j] Cypher->Pickle?

2011-11-04 Thread maxdemarzi
Can we make the ascii art more readable? From: lucy-[:ACTS_IN]->movie What are some options: lucy[:ACTS_IN]->movie # lose the second "-" by attaching the relationship to a node lucy[:ACTS_IN]movie # instead of --- lucy[:ACTS_IN]->movie #instead of --> lucy[:ACTS_IN]=>movie #instead of -->, usin

Re: [Neo4j] Cypher->Pickle?

2011-11-04 Thread maxdemarzi
I think the reason we're even having this discussion is because the cypher syntax is close, but not quite SQL in the first place. This makes the differences between the two languages stick out in my mind. I haven't had a lot of time on cypher, but as a newbie to the language I see a cypher quer

Re: [Neo4j] Activity Streams and Twitter Sample App

2011-11-03 Thread maxdemarzi
I had not considered imperfect solutions, and in some activity stream scenarios a sampling of the last few messages could work. The sample would have to be taken from all Person nodes because if we sample from the Tweets in general and we encounter a "chatty" person node early on, it would take up

[Neo4j] Rent Low-Cost High Memory Servers on a Monthly Basis

2011-11-03 Thread maxdemarzi
I was reading a thread earlier where the OP was worried about the Sizing Recommendations given by Neo4j specially for testing purposes. I recommend renting a server to explore performance characteristics of your application and data size before shelling out 6 figures a server. About two years ago

Re: [Neo4j] Activity Streams and Twitter Sample App

2011-11-03 Thread maxdemarzi
Came up with another possibility: G) Store the Latest 100 tweeted relationship ids with dates as a property of the User Node, and a custom Breadth First Traversal that evaluates the list of every follower's latest 100 tweets before deciding which relationships to follow. -- View this message in c

[Neo4j] Activity Streams and Twitter Sample App

2011-11-03 Thread maxdemarzi
Andreas Ronge created a new sample app called kvitter @ https://github.com/andreasronge/kvitter . This got me thinking about the Twitter clone done in Redis @ http://redis.io/topics/twitter-clone If you scroll down 2/3's of the way down you'll read this piece: "After we create a post we obtain t

Re: [Neo4j] Neo4j Installer in Neography

2011-11-02 Thread maxdemarzi
Ok I read my instructions and they were just overly complicated, so I added a Railtie. Assuming you are on a Rails project, point the gemfile to use the gem from git git 'neography', :git => 'git://github.com/maxdemarzi/neography.git" and the tasks will be automatically i

Re: [Neo4j] Neo4j Installer in Neography

2011-11-02 Thread maxdemarzi
In your Rakefile or “lib/tasks/neography.rake”, add: require 'neography/tasks' It will add the following rake tasks to your project: rake neo4j:install # Install Neo4j to the neo4j directory under your project rake neo4j:start # Start Neo4j r

[Neo4j] Neo4j Installer in Neography

2011-11-02 Thread maxdemarzi
At SpringOne we were talking about a Neo4j installer as a Ruby Gem. This is not that... but it's a start. https://github.com/maxdemarzi/neography/commit/066ed4fb0ce76b9c648e7fa4bae8c3cdfac6af41 -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/

Re: [Neo4j] REST traverse deprecation

2011-10-29 Thread maxdemarzi
I think the traversal rest api is fine for my purposes, but if cypher is where we want to go long term, then we need to deprecate it in 1.6 and drop it in 1.7. This gives us some time to update our libraries and for cypher to settle down. Are you guys thinking of getting rid of the rest built in

Re: [Neo4j] REST traverse deprecation

2011-10-28 Thread maxdemarzi
This change will kill "phase 2" (the part that tries to mimic the Neo4j.rb API) of Neography since I use it to provide idiomatic access to neo4j. For example: def suggestions_for(node) node.incoming(:friends).order("breadth first").uniqueness("node global").filter("position.length() == 2;").de