[Neo4j] Populating a RelationshipExpander

2011-03-10 Thread Paddy
pand(); Direction[] directions; // All are Direction.OUTGOING RelationshipExpander rel = Traversal.expanderForTypes( types, directions); Thanks Paddy ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user

Re: [Neo4j] Populating a RelationshipExpander

2011-03-10 Thread Paddy
Pad On Thu, Mar 10, 2011 at 6:43 PM, Paddy wrote: > Hi, > How could I populate a RelationshipExpander directly with > RelationshipType[] & Direction[] propertys. > As the Traversal.expanderForTypes takes varargs, How can I do something > along the lines of below or should I im

Re: [Neo4j] Path finding

2011-04-11 Thread Paddy
Hi John, One option could be to model the graph with 2 identical spatial layers and add walking relationships between the layers. Similar to the attached pic, its from http://bit.ly/hJN2BB and then only one walking relationship could be traversed. Cheers Paddy On Mon, Apr 11, 2011 at 7:50 AM

Re: [Neo4j] Path finding

2011-04-11 Thread Paddy
? Cheers Paddy On Mon, Apr 11, 2011 at 2:45 PM, Mattias Persson wrote: > Hi Paddy, > > how would that help in decision-making of which route is the > "shortest" when also taking into considering the amount of transfers? > > 2011/4/11 Paddy : > > Hi John, > > One o

Re: [Neo4j] finding all shortest paths between one node and all other nodes in a large scale databse

2011-05-11 Thread Paddy
traversal from each node which updates an ArrayList with the path lengths to all other nodes in the graph? Cheers Paddy On Wed, May 11, 2011 at 12:12 PM, Peter Neubauer < peter.neuba...@neotechnology.com> wrote: > Hi JueiTing, > I think this is a typical case for a massive Map/Redu

[Neo4j] Neo4j spatial within distance query

2010-06-03 Thread Paddy
I would like to store coordinates as nodes in neo4j to do simple querys For example a list of 10,000 nodes: Node[1] - lon=-74.007124, lat=40.714550 Node[2] - lon=-94.626824, lat=39.113380 Node[3] - lon=-105.937406, lat=35.691543 Node[4] - lon=-122.329439, lat=47.60

Re: [Neo4j] Neo4j spatial within distance query

2010-06-08 Thread Paddy
would be to calculate the route from multiple start and end points, that adds the walking distance time to each start/end point as a cost factor. As I would prefer not to insert any data into the graph when calculating the route so it is read only. I would also add timetable data to find the shortes

[Neo4j] bus timetable with neo4j

2010-06-08 Thread Paddy
I have nodes representing bus stops, and relations representing bus connections with cost values representing minutes it takes for the bus to reach each stop. I'm currently using the A Star algorithm to find the quickest route for the bus routes. what is the best way to integrate the timetable data

Re: [Neo4j] Neo4j spatial within distance query

2010-06-20 Thread Paddy
Sat, Jun 5, 2010 at 12:09 PM, Davide wrote: > On Fri, Jun 4, 2010 at 04:41, Paddy wrote: > > I have been looking at the neo4j spatial project but there is not much > docs, > > is it possible to do this using neo4j spatial or lucene query? > > It's possible w

Re: [Neo4j] bus timetable with neo4j

2010-06-21 Thread Paddy
that route's timetable node > where the actual timetable is stored, minimizing redundant information > in your graph. > > A cool use of A*, I might add. > > 2010/6/9 Paddy : > > I have nodes representing bus stops, and relations representing bus > > connections with c

[Neo4j] DefaultExpander.java replacement?

2010-06-23 Thread Paddy
( RelationshipTypes.ROAD, Direction.BOTH ); AStar sp = new AStar( graphDb, relExpander, costEval, estimateEval ); Path path = sp.findSinglePath( NYC.getUnderlyingNode(), SF.getUnderlyingNode() ); thanks Paddy ___ Neo4j mailing list User@lists.neo4j.org

Re: [Neo4j] bus timetable with neo4j

2010-06-23 Thread Paddy
with cost representing minutes. Is there any way to specify the A* to only traverse nodes where the time property is greater than the current nodes time? Thanks Paddy On Wed, Jun 9, 2010 at 1:57 AM, Mattias Persson wrote: > For each bus stop node you could have a relationship to that

[Neo4j] LuceneFulltextIndexService searching example

2010-06-29 Thread Paddy
I have been trying out the example at: http://wiki.neo4j.org/content/Indexing_with_IndexService I'm trying to implement LuceneFulltextIndexService searching I made this test app, just copying and pasting from the example. The results I'm getting are different from the results expected from the wik

Re: [Neo4j] LuceneFulltextIndexService searching example

2010-07-02 Thread Paddy
sorry should of seen that, thanks for your help Paddy On Wed, Jun 30, 2010 at 4:27 AM, Mattias Persson wrote: > As the example states you must use the LuceneFulltextQueryIndexService (not > the LuceneFulltextIndexService)! > > 2010/6/30 Paddy > > > I have been tryi

Re: [Neo4j] Querying Neo4j

2010-07-05 Thread Paddy
syntax Paddy On Mon, Jul 5, 2010 at 7:19 AM, Boban Erakovic wrote: > Greetings, I have some misunderstanding about neo4j. > Once, when I store some nodes and relations into database, how can I query > it? > So I store information 5 days ago, and now I want to query? As much as I

Re: [Neo4j] Querying Neo4j

2010-07-05 Thread Paddy
here is an example i used too test the LuceneFulltextQueryIndexService search package test; import org.neo4j.graphdb.GraphDatabaseService; import org.neo4j.graphdb.Node; import org.neo4j.graphdb.Transaction; import org.neo4j.index.IndexHits; import org.neo4j.index.IndexService; import org.neo4j

[Neo4j] Neo4j with Amazon EC2 Setup

2010-07-07 Thread Paddy
with ext3 http://wiki.neo4j.org/content/Neo4j_in_the_Cloud 3. deploy the war file to jetty http://www.enavigo.com/2008/08/29/deploying-a-web-application-to-jetty Thanks, Paddy ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user

Re: [Neo4j] Neo4j with Amazon EC2 Setup

2010-07-10 Thread Paddy
hi, Thanks for the advice, Would it be better to use Amazon S3 or EBS storage to mount the neo4j database? thanks Paddy On Thu, Jul 8, 2010 at 6:24 AM, Dave butlerdi wrote: > We have just started putting the NK stuff together as they recently moved > to > V4 and it is quite a cur

Re: [Neo4j] Neo4j with Amazon EC2 Setup

2010-07-10 Thread Paddy
abaseService graphDb = new EmbeddedGraphDatabase( "my-neo4j-db/", configuration ); my graphDbService is configured the in app-config.xml: and auto-wired using the @Autowired annotation: @Autowired private GraphDatabaseService graphDbService; Thanks a lot Paddy O

[Neo4j] Optimizing neo4j for traversal in Spring

2010-07-15 Thread Paddy
d private GraphDatabaseService graphDbService; Thanks a lot Paddy ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user

Re: [Neo4j] spatial-distance-query-example

2010-07-16 Thread Paddy
Hi I didn't get a chance to finish re-factoring the project today, i will have it ready Tuesday as I'd like to write some documentation as well and make the code cleaner Thanks Paddy On Thu, Jul 15, 2010 at 11:38 PM, Peter Neubauer < peter.neuba...@neotechnology.com> wrote: >

[Neo4j] TransportDublin Route Planner Github Project

2010-07-21 Thread Paddy
s in neo4j and sql and why neo4j it is a perfect solution for route planning systems, do you think a wiki would be the best option to display the pics? I will be uploading the code today and tomorrow, just making some last minute changes and writing some documentation. Ch

Re: [Neo4j] TransportDublin Route Planner Github Project

2010-07-23 Thread Paddy
;m working next on implementing the BatchInserter next to speed up the graph setup process Thanks Paddy On Wed, Jul 21, 2010 at 3:26 PM, Anders Nawroth wrote: > Hi Paddy! > > Some interesting stuff you're working on there! > > > I'd like to write a bit about th

Re: [Neo4j] TransportDublin Route Planner Github Project

2010-07-25 Thread Paddy
n http://localhost:8080/transportdublin/routeplanner 8. Click on two locations on the map to generate a route Thanks Paddy On Fri, Jul 23, 2010 at 4:53 PM, Paddy wrote: > Hi, > I have updated the wiki with screen shots and information > > http://wiki.github.com/paddydub/TransportDubl

Re: [Neo4j] TransportDublin Route Planner Github Project

2010-07-27 Thread Paddy
to allow multiple simultanous requests? Thanks Paddy On Tue, Jul 27, 2010 at 7:02 AM, Peter Neubauer < peter.neuba...@neotechnology.com> wrote: > Paddy, > I took the freedom to format the wiki a bit and put a maven profile > into the pom.xml in order to download and expand the data &

[Neo4j] Use of LuceneFulltextIndexBatchInserter

2010-08-11 Thread Paddy
LuceneIndexBatchInserter but not for LuceneFulltextIndexBatchInserter LuceneIndexBatchInserter indexService = new LuceneIndexBatchInserterImpl( inserter ); thanks Paddy ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user

Re: [Neo4j] Use of LuceneFulltextIndexBatchInserter

2010-08-12 Thread Paddy
Hi, so I just needed to use :) : LuceneFulltextIndexBatchInserter index = new LuceneFulltextIndexBatchInserter( inserter ); Good batch insert example @ https://svn.neo4j.org/components/index/trunk/src/test/java/org/neo4j/index/lucene/TestBatchInsert.java Paddy On Wed, Aug 11, 2010 at 8:47 PM

[Neo4j] Neo4j spatial Shapefile Importer

2010-08-13 Thread Paddy
.java:340) at java.lang.Class.newInstance(Class.java:308) at org.neo4j.gis.spatial.DefaultLayer.makeLayer(DefaultLayer.java:248) at org.neo4j.gis.spatial.DefaultLayer.makeLayer(DefaultLayer.java:240) ... 3 more Cheers Paddy ___ Neo4j maili

Re: [Neo4j] Use of LuceneFulltextIndexBatchInserter

2010-08-13 Thread Paddy
will speed up the path finding and as it can take 5-10 seconds for long routes with the current graph. I will let you know Cheers Paddy On Thu, Aug 12, 2010 at 11:27 PM, Peter Neubauer < peter.neuba...@neotechnology.com> wrote: > Glad you solved it! > > Btw, is the site now officiall

Re: [Neo4j] Use of LuceneFulltextIndexBatchInserter

2010-08-13 Thread Paddy
od implementation of Dijkstra’s algorithm explores on average 9M nodes and takes more than 6 seconds (european road network): it’s too long!" & http://www.cs.princeton.edu/courses/archive/spr06/cos423/Handouts/EPP%20shortest%20path%20algorithms.pdf- page 4 Thanks Paddy On Fri, A

Re: [Neo4j] Use of LuceneFulltextIndexBatchInserter

2010-08-14 Thread Paddy
been done in this field, this describes a A* algorithm with landmarks: : http://www.optimization-online.org/DB_HTML/2008/11/2154.html Also the "Dijkstra’s Algorithm On-Line: An Empirical Case Study from Public Railroad Transport" paper also looks good cheers Paddy On Fri, Aug 13, 201

Re: [Neo4j] Optimizing neo4j for traversal in Spring

2010-08-16 Thread Paddy
overflow thread on this topic as well: > http://stackoverflow.com/questions/3466437/ > > An answer has been posted today, but I didn't try it out though. > > /anders > > On 07/15/2010 01:28 PM, Paddy wrote: > > hi all, > > I would like to integrate the optimizing ne

Re: [Neo4j] TransportDublin Route Planner Github Project

2010-08-17 Thread Paddy
A*Star or the SPARC algorigthm is the way to go Any feedback would be great, I plan to add geocoding and bus stop search too. Thanks Paddy On Sun, Aug 15, 2010 at 11:30 PM, Peter Neubauer < peter.neuba...@neotechnology.com> wrote: > Paddy, > you can use the High Availability setup as th

Re: [Neo4j] TransportDublin Route Planner Github Project

2010-08-19 Thread Paddy
erver -Xmx1000m -jar start.jar & 180mb is memory mapped in neo4-config.props. Would this be the ideal settings? Also to run Jetty through port 80 is it best to use nginx? http://wiki.nginx.org/NginxJavaServers Or what method would you recommend? Thanks Paddy On Wed, Aug 18, 2010 at 2:03

Re: [Neo4j] TransportDublin Route Planner Github Project

2010-08-23 Thread Paddy
e http://www.youtube.com/watch?v=BT-piFBP4fE Also the MapReduce paper is a good read http://labs.google.com/papers/mapreduce-osdi04.pdf Thanks Paddy On Thu, Aug 19, 2010 at 11:17 PM, Peter Neubauer wrote: > Paddy, > depending on your traffic and security setup, either you can directly > e

Re: [Neo4j] TransportDublin Route Planner Github Project

2010-08-25 Thread Paddy
SinglePath( start.getUnderlyingNode(), end.getUnderlyingNode()); weight = path.weight(); } long endTimer = System.currentTimeMillis(); System.out.println("Dijkstra Time:: " + (endTimer - startTimer) + " milliseconds"); } } WDYT? I would ap

Re: [Neo4j] TransportDublin Route Planner Github Project

2010-08-26 Thread Paddy
uster Instances HVM CentOS 5.4 (AMI Id: ami-7ea24a17) Minimal CentOS 5.4, 64-bit architecture, and HVM-based virtualization for use with Amazon EC2 Cluster Instances. More info here: http://www.allthingsdistributed.com/2010/07/cluster_compute_instance_amazon_ec2.html Cheers Paddy On Wed, Aug 25, 2010

Re: [Neo4j] TransportDublin Route Planner Github Project

2010-08-27 Thread Paddy
Or can i access any java logs to investigate further? Thanks Paddy On Thu, Aug 26, 2010 at 8:41 AM, Peter Neubauer < peter.neuba...@neotechnology.com> wrote: > Very cool Paddy! > I have been talking to Craig about this - we are thinking that, with > knowing a lot of information a

Re: [Neo4j] TransportDublin Route Planner Github Project

2010-08-27 Thread Paddy
try answer your questions better, as i'm not sure which approach to take. On Fri, Aug 27, 2010 at 2:43 PM, Michael Miller wrote: > Hi Paddy, > > Sorry to be so slow on my reply, insane travel week for me! Just got back > from North Carolina, and I can say that the deep south i

Re: [Neo4j] API Questions and a bit more

2010-09-04 Thread Paddy
eo4j.org/neo4j-index/apidocs/org/neo4j/index/lucene/LuceneFulltextQueryIndexService.html> fulltextIndex = new LuceneFulltextQueryIndexService(gds); ElasticSearch looks really good. How would you integrate ElasticSearch with neo4j? cheers Paddy 2010/9/3 Alexandru Popescu ☀ > On Frida

Re: [Neo4j] API Questions and a bit more

2010-09-05 Thread Paddy
Hi Alex, Yes neo4j and lucene is confusing to start but it is very good when combined.: ) It would be good to see if it could integrated, elasticsearch sounds good Thanks Paddy On 5 Sep 2010, at 02:14, Alexandru Popescu ☀ wrote: > On Saturday, September 4, 2010, Paddy wrote: >>

Re: [Neo4j] Using the REST neo4j

2010-09-05 Thread Paddy
rg/content/Getting_Started_Guide#If_you_use_Maven http://blog.neo4j.org/2010/04/neo4j-rest-server-part1-get-it-going.html Paddy 2010/9/5 Alexandru Popescu ☀ > 2010/9/6 Alexandru Popescu ☀ : > > Still on the neo4j-rest component. Is this the correct SVN info: > > > > https://svn.neo4j

[Neo4j] Relationship Check During Traversal

2010-09-10 Thread Paddy
runeEvaluator? Or am I approaching this the wrong way? thanks Paddy ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user

Re: [Neo4j] Relationship Check During Traversal

2010-09-11 Thread Paddy
Hi David, Thanks for your help, I got it working using the following code. I tested it on a small graph with the neo4j java-dijkstra example and it works :) Cheers Paddy public static PruneEvaluator pruneAfterTransfer() { return new PruneEvaluator() { public

Re: [Neo4j] Relationship Check During Traversal

2010-09-14 Thread Paddy
t me know if i am going down the right path :-/ thanks Paddy On Sat, Sep 11, 2010 at 1:51 PM, Paddy wrote: > Hi David, > Thanks for your help, I got it working using the following code. I tested > it on a small graph with the neo4j java-dijkstra example and it works :) > &

Re: [Neo4j] How do I sort Lucene results by field value, and numerical range queries ?

2010-09-22 Thread Paddy
Hi Andres, Not sure about the use of sorting but I have previously tried some numeric range queries with the new indexProvider. I've added my some test code i used below. Cheers Paddy public class indexTest { static GraphDatabaseService gds; static IndexProvider provider; @BeforeClass p

Re: [Neo4j] How do I sort Lucene results by field value, and numerical range queries ?

2010-09-23 Thread Paddy
Hi Andreas, Yes it looks like you don't need to wrap it in a padded string. I tried using myIndex.add(ndOne, "time",1f); it will stills work. thanks Paddy On Thu, Sep 23, 2010 at 12:37 AM, Andreas Ronge wrote: > Hi Paddy > > Thanks for the response. > But it woul

[Neo4j] BatchInserter usage with neo4j-lucene-index

2010-09-23 Thread Paddy
e-index with the the BatchInserter? Thanks Paddy Exception in thread "main" java.lang.NoSuchMethodError: org.apache.lucene.search.IndexSearcher.search(Lorg/apache/lucene/search/Query;)Lorg/apache/lucene/search/Hits; at org.neo4j.index.lucene.LuceneIndexBatchInserterImpl.getNodes(LuceneIndex

Re: [Neo4j] BatchInserter usage with neo4j-lucene-index

2010-09-23 Thread Paddy
java:24) I'm just not sure what i need to include in the CLASSPATH to insert and index nodes using the BatchInserter, which are then compatible to be queried using the new LuceneIndexProvider ? thanks Paddy On Thu, Sep 23, 2010 at 4:45 PM, Mattias Persson wrote: > Your code doesn't us

Re: [Neo4j] BatchInserter usage with neo4j-lucene-index

2010-09-25 Thread Paddy
onents/lucene-index/trunk/src/main/java/org/neo4j/index/impl/lucene/LuceneIndexProvider.javafor > normal use. > > Tests for the batch inserter are in > > https://svn.neo4j.org/laboratory/components/lucene-index/trunk/src/test/java/org/neo4j/index/impl/lucene/TestLuceneBatchInsert.javawhich >

[Neo4j] Generating a directed acyclic graph

2010-10-16 Thread Paddy
est way to approach this. Thanks Paddy ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user

Re: [Neo4j] Generating a directed acyclic graph

2010-10-17 Thread Paddy
nverting directed acyclic graph to tables, Not sure if there an algorigthm to construct a directed acyclic graph? Paddy On Sat, Oct 16, 2010 at 10:57 PM, Peter Neubauer < peter.neuba...@neotechnology.com> wrote: > Paddy, > I am experimenting with connecting train routes to stations. W

Re: [Neo4j] Generating a directed acyclic graph

2010-10-20 Thread Paddy
t sure how to construct the directed acyclic graph's. I was thinking maybe the PatternMatcher might be a good way to construct the dag from the transfer patterns? cheers Paddy On Tue, Oct 19, 2010 at 10:04 AM, Peter Neubauer < peter.neuba...@neotechnology.com> wrote: > Paddy, > are

[Neo4j] BatchInserter - No index provider 'null' error

2010-10-25 Thread Paddy
rom debugging it looks like config.get( KEY_INDEX_PROVIDER )@ L205 in IndexManagerImpl is returning a null value. Or please let me know if I should be doing this a different way. thanks Paddy public class BatchIndexTest { static final String DB_PATH = "data/neo-db-test10"; static Bat

Re: [Neo4j] BatchInserter - No index provider 'null' error

2010-10-26 Thread Paddy
ersons= indexProvider.nodeIndex("persons", > MapUtil.stringMap("type","exact", > "provider", "lucene")); > > It will be fixed in M03, where the LuceneBatchInserterIndexProvider fills > that in for you. > > 2010/10/26 Pe

[Neo4j] Accessing DB data directory on Elastic MapReduce

2010-11-24 Thread Paddy
-T 10 -t 5 http://.s3.amazonaws.com/neo-db.tar.gz sudo tar -C /home/hadoop -xzf neo-db.tar.gz sudo chmod -R 777 /home/hadoop/neo-db Does this sound like the best method to use? cheers Paddy ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.o

Re: [Neo4j] Accessing DB data directory on Elastic MapReduce

2010-11-27 Thread Paddy
implement org.apache.hadoop.io.Writable, be a good method to serialize and deserialize Neo4j objects between jobs? http://developer.yahoo.com/hadoop/tutorial/module5.html#types It would also be interesting to chain multiple traversals as Map-Reduce jobs. cheers Paddy On Fri, Nov 26, 2010 at 9:00 AM, Peter

Re: [Neo4j] Accessing DB data directory on Elastic MapReduce

2011-01-01 Thread Paddy
store]" error for some jobs. Just tested running Neo4j graph-algo parallel on 20 machines, sweet :) cheers, Paddy On Sat, Nov 27, 2010 at 4:16 PM, Paddy wrote: > Hi, > I'm a very much a Hadoop newbie but I think that would be very possible, > maybe even making use of: http://in

Re: [Neo4j] Accessing DB data directory on Elastic MapReduce

2011-01-04 Thread Paddy
. Then output the new database back to s3 or even access an EBS volume directly if possible. Please let me know any suggestions on how to improve or speed it up. cheers, Paddy On Sun, Jan 2, 2011 at 12:44 AM, Peter Neubauer < peter.neuba...@neotechnology.com> wrote: > Very cool! > Is t

Re: [Neo4j] Neo4j + MapReduce

2011-01-31 Thread Paddy
build a new neo4j graph in one Reducer. Regards, Paddy On Mon, Jan 31, 2011 at 8:43 AM, Saikat Kanjilal wrote: > > John,If you havent already take a look at some of the algorithms in mahout, > they are currently using hadoop (http://mahout.apache.org) and it may be > the case where s

Re: [Neo4j] Finding All Available Paths

2011-02-04 Thread Paddy
Hi Saikat, I have come across this problem too. If its possible to define the relationships between the nodes as a Train, Bus or Walking relationship. You could use a RelationshipExpander to define which relationship types you wish to Traverse when using the findAllPaths. Regards, Paddy On Fri

Re: [Neo4j] Finding All Available Paths

2011-02-04 Thread Paddy
Hi Saikat, I'm glad you like it, it would be great to compare approaches. I'll try to create some example code of transit routing with time and using transfer patterns over the weekend. Cheers, Paddy On Fri, Feb 4, 2011 at 1:37 PM, Saikat Kanjilal wrote: > > Hi Paddy,I've