neo4jrb + spatial

23 views
Skip to first unread message

Peter Ehrlich

unread,
May 1, 2012, 1:42:22 AM5/1/12
to neo...@googlegroups.com
Hi 

I'm just looking in to neo4j spatial.  Is it a simple matter to get working with Ruby & Rails?  At first glance, the project docs on github don't seem all that detailed.


Thanks,
--Peter

Peter Neubauer

unread,
May 1, 2012, 7:35:22 AM5/1/12
to neo...@googlegroups.com

Peter,
I would use the spatial packages directly from ruby, as Craig has not done a lot there lately.

--
You received this message because you are subscribed to the Google Groups "neo4jrb" group.
To view this discussion on the web visit https://groups.google.com/d/msg/neo4jrb/-/Nf5Lc3FdyA0J.
To post to this group, send email to neo...@googlegroups.com.
To unsubscribe from this group, send email to neo4jrb+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/neo4jrb?hl=en.

Peter Ehrlich

unread,
May 1, 2012, 9:36:05 PM5/1/12
to neo...@googlegroups.com
Okay.

Just watch the Spatial on videography, and they showed a slide where cypher is used to query a bounding box.  Is that documented anywhere?  Or only by the tests? https://groups.google.com/forum/#!msg/neo4j/7fBtZBLAwSY/zlKNBqteFEwJ

Cheers


On Tuesday, May 1, 2012 4:35:22 AM UTC-7, Peter Neubauer wrote:

Peter,
I would use the spatial packages directly from ruby, as Craig has not done a lot there lately.

On May 1, 2012 7:42 AM, "Peter Ehrlich" <peter.i...@gmail.com> wrote:
Hi 

I'm just looking in to neo4j spatial.  Is it a simple matter to get working with Ruby & Rails?  At first glance, the project docs on github don't seem all that detailed.


Thanks,
--Peter

--
You received this message because you are subscribed to the Google Groups "neo4jrb" group.
To view this discussion on the web visit https://groups.google.com/d/msg/neo4jrb/-/Nf5Lc3FdyA0J.
To post to this group, send email to neo...@googlegroups.com.
To unsubscribe from this group, send email to neo4jrb+unsubscribe@googlegroups.com.

Peter Neubauer

unread,
May 2, 2012, 2:59:41 AM5/2/12
to neo...@googlegroups.com
Peter,
yes, the tests are probably the best docs right now. However,
depending on what you need, it should not be a problem to expose more
functionality through the indexes, especially as they are properly
supported since 1.7, configuration etc is saved between startups and
propagated through HA clusters.

What kind of functionality are you looking for? What index-syntax would that be?

Cheers,

/peter neubauer

G:  neubauer.peter
S:  peter.neubauer
P:  +46 704 106975
L:   http://www.linkedin.com/in/neubauer
T:   @peterneubauer

If you can write, you can code - @coderdojomalmo
If you can sketch, you can use a graph database - @neo4j
>>> neo4jrb+u...@googlegroups.com.
>>> For more options, visit this group at
>>> http://groups.google.com/group/neo4jrb?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "neo4jrb" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/neo4jrb/-/XuH7OkhXChAJ.
>
> To post to this group, send email to neo...@googlegroups.com.
> To unsubscribe from this group, send email to
> neo4jrb+u...@googlegroups.com.

Peter Ehrlich

unread,
May 2, 2012, 3:00:16 PM5/2/12
to neo...@googlegroups.com
Hi

This is good to know.  I'm only doing exploration for now, to see what tools are available & inspiring.  

An n-degree index is a good start-- to pull up nodes in a bounding box, perhaps naturally sorted by some stored popularity score.

The next step would be more complex shapes-- such as those same results along a line instead of in a box, or a box that grows to find a minimum number of results.

But the really cool stuff wouldn't be indexable.  For example, having results sorted by relevance/similarity to the current user.

Not sure what the implementation of any of these might look like though.

Cheers,
--Peter
>>> For more options, visit this group at
>>> http://groups.google.com/group/neo4jrb?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "neo4jrb" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/neo4jrb/-/XuH7OkhXChAJ.
>
> To post to this group, send email to neo...@googlegroups.com.
> To unsubscribe from this group, send email to

Peter Neubauer

unread,
May 2, 2012, 3:02:03 PM5/2/12
to neo...@googlegroups.com
Yes,
and you should be able to do at least part of it with the existing
neo4j spatial. Let us know if you need help!

Cheers,

/peter neubauer

G:  neubauer.peter
S:  peter.neubauer
P:  +46 704 106975
L:   http://www.linkedin.com/in/neubauer
T:   @peterneubauer

If you can write, you can code - @coderdojomalmo
If you can sketch, you can use a graph database - @neo4j


>> >>> neo4jrb+u...@googlegroups.com.
>> >>> For more options, visit this group at
>> >>> http://groups.google.com/group/neo4jrb?hl=en.
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups
>> > "neo4jrb" group.
>> > To view this discussion on the web visit
>> > https://groups.google.com/d/msg/neo4jrb/-/XuH7OkhXChAJ.
>> >
>> > To post to this group, send email to neo...@googlegroups.com.
>> > To unsubscribe from this group, send email to
>> > neo4jrb+u...@googlegroups.com.
>> > For more options, visit this group at
>> > http://groups.google.com/group/neo4jrb?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "neo4jrb" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/neo4jrb/-/OtiSE7gmNXQJ.
>
> To post to this group, send email to neo...@googlegroups.com.
> To unsubscribe from this group, send email to
> neo4jrb+u...@googlegroups.com.

Andreas Ronge

unread,
May 2, 2012, 5:00:52 PM5/2/12
to neo...@googlegroups.com
Sounds really interesting. I would love spend some time on this after
the 2.0 release.
Maybe you can update the wiki page with your findings -
https://github.com/craigtaverner/neo4j-spatial.rb

Cheers
Reply all
Reply to author
Forward
0 new messages