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";,
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
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
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
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
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
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
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
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,
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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/
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
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
26 matches
Mail list logo