Re: [Neo4j] simple traverse question

2011-02-22 Thread Max De Marzi Jr.
Here you go... Full code with setup: https://github.com/maxdemarzi/neography/blob/master/examples/traversal_example2.rb Interesting bit: def graduated_with_me(student) student = student["self"].split('/').last student_attended = @neo.get_node_relationships(student)[0] graduated = student_

[Neo4j] simple traverse question

2011-02-22 Thread charlie
Hi, I am new to neo4j and I am having some difficulty figuring out how to query it to get me what I need. We are using Ruby and not JRuby so I am trying to do all my queries via the REST API. Currently I have a set of "people" nodes and a set of "school" nodes. Each node has an id field and

Re: [Neo4j] No index provider 'lucene' found with Tomcat/Trinidad

2011-02-22 Thread Pablo Pareja
Hi Mattias, I'll try that tomorrow and I'll let you know, Pablo On Tue, Feb 22, 2011 at 9:00 PM, Mattias Persson wrote: > 2011/2/22 Pablo Pareja > > > Hi, > > > > I just moved my code to the new index API but I cannot deploy my server. > > I've already tried with glassfishv3 and jetty and neit

Re: [Neo4j] Exception creating EmbeddedGraphDatabase from a Servlet

2011-02-22 Thread Pablo Pareja
Hi David, I just found a workaround for it this afternoon. I moved my neo4j db folder with all the data into the jetty installation folder and changed the db folder String using a relative path instead of an absolute one. (I guess it's not the most elegant one but it works fine so far). Cheers, P

Re: [Neo4j] Indexing with BatchInserter (with new API) how to doubt

2011-02-22 Thread Pablo Pareja
Hi Mattias, thanks for the link, I don't know how but after checking that page a couple of times I somehow didn't see/reach the BatchInserter indexing part... (guess I'd be too tired) Cheers, Pablo On Tue, Feb 22, 2011 at 8:40 PM, Mattias Persson wrote: > 2011/2/22 Pablo Pareja > > > Hi all, >

Re: [Neo4j] No index provider 'lucene' found with Tomcat/Trinidad

2011-02-22 Thread Mattias Persson
2011/2/22 Pablo Pareja > Hi, > > I just moved my code to the new index API but I cannot deploy my server. > I've already tried with glassfishv3 and jetty and neither of them works. > The exception I get is: > > java.lang.Exception: java.lang.IllegalStateException: > ContainerBase.addChild: start:

Re: [Neo4j] Indexing with BatchInserter (with new API) how to doubt

2011-02-22 Thread Mattias Persson
2011/2/22 Pablo Pareja > Hi all, > > I'm updating my code in order to user the new Indexing API but I have a > doubt, > when using the BatchInserter, (at least with the old one) you were supposed > to use the > classes LuceneIndexBatchInserter or LuceneFulltextIndexBatchInserter but, > what about

Re: [Neo4j] Exception creating EmbeddedGraphDatabase from a Servlet

2011-02-22 Thread David Montag
Pablo, Did you resolve this, or is this still an issue for you? David On Mon, Feb 21, 2011 at 2:08 AM, Pablo Pareja wrote: > Hi Jim, > > I already did it, I'm using a constant defined in the code for the DB > folder > which it's the same > I used for testing things with a really simple jar. >

Re: [Neo4j] No index provider 'lucene' found with Tomcat/Trinidad

2011-02-22 Thread Pablo Pareja
Hi, I just moved my code to the new index API but I cannot deploy my server. I've already tried with glassfishv3 and jetty and neither of them works. The exception I get is: java.lang.Exception: java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException

Re: [Neo4j] Question: Neo4j and semantic-mediawiki

2011-02-22 Thread Alfredas Chmieliauskas
Well I'm in general interested in having all these different mechanisms (native (traverse), pipes, gremlin, sparql) to query the same graph. That would give so much more flexibility when writing domain methods. Ideally you would not want to write domain methods at all, but annotate interfaces with

Re: [Neo4j] Question: Neo4j and semantic-mediawiki

2011-02-22 Thread Marko Rodriguez
Hi, > Got it. It would be great to be able to use Sparql on neo4j or any > other Blueprint db. Yea it would. > > Do you think it would be possible to map/translate sparql query to > gremlin/pipes? I plan to create a new DSL over Gremlin/Pipes that has a syntax flavor like this. E.g. x = [];

Re: [Neo4j] Question: Neo4j and semantic-mediawiki

2011-02-22 Thread Alfredas Chmieliauskas
Got it. It would be great to be able to use Sparql on neo4j or any other Blueprint db. Do you think it would be possible to map/translate sparql query to gremlin/pipes? Alfredas > On Tue, Feb 22, 2011 at 5:09 PM, Marko Rodriguez wrote: >> Hi, >> >> I apologize. When I said 1-to-1, I spoke with

Re: [Neo4j] Can't get a spatial layer

2011-02-22 Thread Nolan Darilek
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 02/21/2011 05:46 PM, Craig Taverner wrote: > But now you are running the reIndex method on a database you previously > shutdown. You need to re-open the database for reIndex to work. Also, you > should shutdown the batchinserter after the importFile

Re: [Neo4j] Getting started with Neo4J Spatial

2011-02-22 Thread Paul A. Jackson
Yes, in my tests I included jdbm hmap, btree, and jboss cache backed by jdbm (presumably btree) and got the best performance with jboss cache, followed closely by btree and hmap a distant third. I would like to test hsql and derby before finishing. Thanks, -Paul Paul Jackson, Principal Softwa

Re: [Neo4j] Question: Neo4j and semantic-mediawiki

2011-02-22 Thread Marko Rodriguez
Hi, I apologize. When I said 1-to-1, I spoke with exaggeration. You will need to create a GraphSail from a "blank Neo4jGraph" initially. Sail sail = new GraphSail(new Neo4jGraph("/tmp/neo4jgraphsail")) At that point, you can move back and forth. The reason being, GraphSail requires in

Re: [Neo4j] Question: Neo4j and semantic-mediawiki

2011-02-22 Thread Alfredas Chmieliauskas
This looks great. I've encountered a problem when following the example. Here I'm trying to create a sail out of Neo4jGraph. java.lang.RuntimeException: No such index exists: edges at com.tinkerpop.blueprints.pgm.impls.neo4j.Neo4jGraph.getIndex(Neo4jGraph.java:113) at com.tinkerp

Re: [Neo4j] Getting started with Neo4J Spatial

2011-02-22 Thread Peter Neubauer
Paul, Aim considering JDBM also, should be very similar toj the BDB index approach ... That ,something you would like to see? On Tuesday, February 22, 2011, Paul A. Jackson wrote: > I've been doing some research into alternate storage mechanism for exact > match indexes.  I excluded BDB from my

Re: [Neo4j] Gremlin from Java Error

2011-02-22 Thread Marko Rodriguez
Hey, > Thanks a lot. Updated to 0.8-SNAPSHOT. Strangely maven did not resolve > groovy dependence automatically. Had to add it by hand. Huh? Gremlin 0.8-SNAPSHOT uses Groovy 1.7.8 (which was released maybe 1 week ago). Gremlin 0.7 was using Groovy 1.7.5. Perhaps something about that was making

Re: [Neo4j] Question: Neo4j and semantic-mediawiki

2011-02-22 Thread Marko Rodriguez
Hi, > Did anyone have any experience with Neo4j + RDF + SPARQL? Or are there any > resources worth reading? If so, could someone please point me to such > resources?.. There is a 1-to-1 RDF mapper in Blueprints. It turns any Blueprints GraphDB into a Sail-based RDF triple/quad store. Given the 1

Re: [Neo4j] Getting started with Neo4J Spatial

2011-02-22 Thread Paul A. Jackson
I've been doing some research into alternate storage mechanism for exact match indexes. I excluded BDB from my list because it has a commercial license. I'll share my findings once I have something concrete. Thanks. Paul Jackson, Principal Software Engineer Pitney Bowes Business Insight 4200

Re: [Neo4j] Unable to parse mapped memory

2011-02-22 Thread Anders Nawroth
Hi! 2011-02-22 12:53, Craig Taverner skrev: > I was rather surprised by the setting. 1.2G seems quite large, and then I > saw 3048MB for the heap! This is why this does not run on my laptop! I've > set the values down a lot. I think the unit tests should run on most peoples > computers out the box

Re: [Neo4j] Unable to parse mapped memory

2011-02-22 Thread Craig Taverner
I was rather surprised by the setting. 1.2G seems quite large, and then I saw 3048MB for the heap! This is why this does not run on my laptop! I've set the values down a lot. I think the unit tests should run on most peoples computers out the box. I noticed the github commit said these settings we

Re: [Neo4j] Question: Neo4j and semantic-mediawiki

2011-02-22 Thread Alfredas Chmieliauskas
There is a rdf-sparql component to Neo4j that could in theory be configured to be used as a backend for semantic mediawiki. But you still have better chances to configure smw to use a triplestore http://en.wikipedia.org/wiki/Triplestore For more info see: http://www.mediawiki.org/wiki/Extension:Sp

[Neo4j] Question: Neo4j and semantic-mediawiki

2011-02-22 Thread Дмитрий Медведев
Hi all! Recently I started exploring things about graph databases in conjunction with knowledge management and have run across the Neo4j. It now seems to me that Neo4j can somehow be used with the semantic-mediawiki to store RDF and quiery Neo4j with SPARQL. Did anyone have any experience with Neo

[Neo4j] Indexing with BatchInserter (with new API) how to doubt

2011-02-22 Thread Pablo Pareja
Hi all, I'm updating my code in order to user the new Indexing API but I have a doubt, when using the BatchInserter, (at least with the old one) you were supposed to use the classes LuceneIndexBatchInserter or LuceneFulltextIndexBatchInserter but, what about now? should I just use the new way of i

Re: [Neo4j] Social Networks And Graph Databases

2011-02-22 Thread Craig Taverner
+1 for optimizing only when necessary. Having said that, there will always be cases where sharding is necessary. Mostly a sensible domain-specific decision can be taken, but I was thinking about what Michael said about traversal statistics, and that is a great runtime idea beyond what I previously

Re: [Neo4j] Online backup works in full but not incremental

2011-02-22 Thread Brendan Cheng
Hi Mattias, Does the latest online backup work on backup to a running read only db? Brendan On 21 February 2011 23:09, wrote: > Date: Mon, 21 Feb 2011 15:27:30 +0100 > From: Mattias Persson > Subject: Re: [Neo4j] Online backup works in full but not incremental > To: Neo4j user discussions >