Re: [Neo4j] Generating suggestions in a Neo4j db

2011-06-18 Thread fajarmf
Ah this discussion is interesting, I want to join and throw in sonme idea too. If a user can visit a place for multiple times. And if there are 100 user visit USA. So we should suggest top 10 only. Would traversing the graph be more efficient than normal database query? Sent from my

[Neo4j] GSoC 2011 Neo4j Geoprocessing | Weekly Report #4

2011-06-18 Thread Andreas Wilhelm
Hi, This week I implemented basic insert and delete capability for Neo4j Spatial type functions, added ST_GeomFromText as a new spatial function and at the moment I prepare everything to be able to commit it to the main repository of Neo4j Spatial, this means testing, documentation, etc...

Re: [Neo4j] User Digest, Vol 51, Issue 110

2011-06-18 Thread Mattias Persson
Have you got any use case where this would be a necessary thing to have and where the current model wouldn't suffice? Just curious. 2011/6/17 Aniceto Pérez y Madrid ape...@innovasoftps.com I agree,a Node is something that has 2 (user managed) fields: Relationship[] Property[] and a

Re: [Neo4j] Integer cost property

2011-06-18 Thread Mattias Persson
Yes a more robust solution would be to cast to a Number: return ((Number)relationship.getProperty( costpropertyName )).doubleValue(); I'm assuming that's what you meant in the first place, no? 2011/6/18 Jim Webber j...@neotechnology.com Hi Josh, I'm just wiring up a bunch of code that

Re: [Neo4j] User Digest, Vol 51, Issue 110

2011-06-18 Thread Mattias Persson
Sorry, disregard my question, I read your example in another mail now. 2011/6/18 Mattias Persson matt...@neotechnology.com Have you got any use case where this would be a necessary thing to have and where the current model wouldn't suffice? Just curious. 2011/6/17 Aniceto Pérez y Madrid

Re: [Neo4j] Generating suggestions in a Neo4j db

2011-06-18 Thread Jim Webber
Hi Aman, This is the classic friends-of-friends problem recast as friends-of-places. The hard thing about places (as opposed to most normal friends) is that they tend to be popular. While I might only reach hundreds of friends-of-friends (if I'm lucky!), being recommended people that have

Re: [Neo4j] Generating suggestions in a Neo4j db

2011-06-18 Thread Jim Webber
That's a great point. In Neo4j you can add properties to your relationships so that: Jim --VISITED (numberOfTimes: 20) -- Melbourne Then you can use the numberOfTimes property to determine whether or not you'd like to include the person/city in the recommendations you're making. In this case

[Neo4j] Choosing frontend language with neo4j as backend

2011-06-18 Thread Manav Goel
Hi I am working on neo4j for past 2 months and found it everything which I needed. But the problem coming is integrating it with php.I was looking into php-java bridge and it looks a headache. Python binding of neo4j are old and there is not much on net to work with it. My teammates dont

Re: [Neo4j] Choosing frontend language with neo4j as backend

2011-06-18 Thread Marko Rodriguez
Hi Manav, You may want to consider Groovy (http://groovy.codehaus.org/). Why? 1. It is an easy to learn scripting language with constructs nearly analogous to Ruby. 2. It is a superset of Java so you can do Java programming if you wish. 3. You can use it as a REPL or

Re: [Neo4j] Auto Indexing for Neo4j

2011-06-18 Thread Craig Taverner
I am using only one relationship type in my index tree, and made traversal decisions based on properties of the tree nodes, but have considered an 'optimization' based on embedding the index keys into the relationship types, which I think is what you did. However, I am not convinced it will work

Re: [Neo4j] Choosing frontend language with neo4j as backend

2011-06-18 Thread Jim Webber
Hi Manav, Although the REST API isn't as flexible as the native JVM API, it's still suitable for large projects. You just have to be even more careful about your design. This means it is suitable for PHP, and I've seen the a lot of PHP activity on the neo4j twitter stream in the last few

[Neo4j] Neo Distributions Including Source

2011-06-18 Thread Rick Bullotta
I think I asked this before, but can the Neo team provide builds with the appropriate source included in the distribution? Two main reasons: 1) Don't want/need to have Git stuff installed 2) Want to make sure the source associated with a specific Neo build is the exact source used

Re: [Neo4j] Neo Distributions Including Source

2011-06-18 Thread Jim Webber
Hi Rick, I can see a bunch of source jars in the Neo maven repository: http://m2.neo4j.org/org/neo4j/neo4j/1.4-SNAPSHOT/ Does that help? Jim PS - We're doing some internal build work to try to rid ourselves of our *internal* dependency on Maven. Once that's done, a better build world will

Re: [Neo4j] Neo Distributions Including Source

2011-06-18 Thread Rick Bullotta
Hi, Jim. It would, if they were for the released and milestone builds. ;-) I think those are snapshots from the automatic nightly builds. Rick -Original Message- From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On Behalf Of Jim Webber Sent: Saturday, June 18,

Re: [Neo4j] Choosing frontend language with neo4j as backend

2011-06-18 Thread Manav Goel
Hey Thanks for the reply. Can u elaborate more on how much slow is this Rest api so that I can get the idea of how to manage my traversals and interactions. Moreover using javascript will there be any security issues? I checked out groovy after suggestion of Marko.It looks gud. So groovy

Re: [Neo4j] Neo Distributions Including Source

2011-06-18 Thread Rick Bullotta
Also, no actual source is in those jars. Just Maven stuff. -Original Message- From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On Behalf Of Jim Webber Sent: Saturday, June 18, 2011 12:20 PM To: Neo4j user discussions Subject: Re: [Neo4j] Neo Distributions

Re: [Neo4j] Neo Distributions Including Source

2011-06-18 Thread Jim Webber
Gah! That Maven stuff gets everywhere. It's like treading in dog poop. Actually no, it's worse than that. OK, I'll add to our build backlog that we will emit binary and source + binary editions per numbered build (the sensible way of publishing every green build we get, quite unlike that

Re: [Neo4j] Neo Distributions Including Source

2011-06-18 Thread Rick Bullotta
Awesome! Thanks. -Original Message- From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On Behalf Of Jim Webber Sent: Saturday, June 18, 2011 12:48 PM To: Neo4j user discussions Subject: Re: [Neo4j] Neo Distributions Including Source Gah! That Maven stuff gets

Re: [Neo4j] Choosing frontend language with neo4j as backend

2011-06-18 Thread Jim Webber
Hello Manav, Thanks for the reply. Can u elaborate more on how much slow is this Rest api so that I can get the idea of how to manage my traversals and interactions. The cost per interaction is the network cost + transaction cost. You can make this super expensive by, for example,

Re: [Neo4j] Generating suggestions in a Neo4j db

2011-06-18 Thread Aman
Jim, Thanks for the valuable input... The use case I mentioned here (using only visited places) was a simplistic version of the real one, because, just as you said, I'd be getting large number of results in that case... I'd check out pattern matching and Cypher to ease me in my project... Neo4j

Re: [Neo4j] Generating suggestions in a Neo4j db

2011-06-18 Thread Aman
Jim, I was going through Cypher and a question came into my mind regarding pattern matching... How is pattern matching done in neo4j? I mean, how are nodes and relationships matched in case of large data-sets? On 6/18/11, Aman aman.6...@gmail.com wrote: Jim, Thanks for the valuable input... The

Re: [Neo4j] Generating suggestions in a Neo4j db

2011-06-18 Thread Andres Taylor
Are you referring to what the implementation looks like? This is the source. I haven't grokked it yet, so I can't give you a TL;DR;, sorry. https://github.com/neo4j/community/tree/master/graph-matching Cypher allows you to do graph-matching (internally, it uses the above module), but adds a few

Re: [Neo4j] Neo Distributions Including Source

2011-06-18 Thread Anders Nawroth
Hi! You can get the sources from github as zip/tarballs. Just use: https://github.com/neo4j/community/zipball/1.4.M04 and similar. The tags contain the exact source the release was built from. /anders 2011-06-18 18:11, Rick Bullotta skrev: I think I asked this before, but can the Neo team

Re: [Neo4j] Neo Distributions Including Source

2011-06-18 Thread Michael Hunger
Also, Jim just pointed you to the top-level metadata directory in maven: An example for a lower level one, that actually contains the sources is: http://m2.neo4j.org/org/neo4j/neo4j-kernel/1.4-SNAPSHOT/ The milestones and releases are on maven-central (including the sources - btw. if you set