Re: [Neo4j] Constructing an evaluator that only takes specific nodes from a path

2011-04-06 Thread Tobias Ivarsson
That would be EXCLUDE_AND_PRUNE. On Thu, Apr 7, 2011 at 7:58 AM, Dario Rexin wrote: > Hi Peter, yes that would be not to include the path in the result set. > > > > On 07.04.2011, at 07:01, "Peter Neubauer" < > peter.neuba...@neotechnology.com> wrote: > > > Dario, > > I am not quite sure I under

Re: [Neo4j] CNFE in Neo4j Server

2011-04-06 Thread Saikat Kanjilal
Thanks Tobias, I dont believe I have this on my runtime classpath, I'll include it now. > From: tobias.ivars...@neotechnology.com > Date: Thu, 7 Apr 2011 08:06:51 +0200 > To: user@lists.neo4j.org > Subject: Re: [Neo4j] CNFE in Neo4j Server > > The simplest explanation is probably the correct on

Re: [Neo4j] CNFE in Neo4j Server

2011-04-06 Thread Tobias Ivarsson
The simplest explanation is probably the correct one: it is not on the classpath. This class is to be found in the jersey-server-1.3.jar is that jar on the classpath? (or in jersey-client-1.3.jar, either will do) The simplest way one might be fooled into not including it in the classpath is due to

Re: [Neo4j] Constructing an evaluator that only takes specific nodes from a path

2011-04-06 Thread Dario Rexin
Hi Peter, yes that would be not to include the path in the result set. On 07.04.2011, at 07:01, "Peter Neubauer" wrote: > Dario, > I am not quite sure I understand what you mean by "drop" is that not > to include the path into the result or prune or something else? Do you > have a concrete e

[Neo4j] CNFE in Neo4j Server

2011-04-06 Thread Peter Neubauer
Hi there, trying to execute https://github.com/peterneubauer/neo4j-gremlin-plugin/blob/master/src/test/org/neo4j/server/plugin/gremlin/GremlinPluginTest.java as a JUnit test on Eclipse/Mac with default JDK, Saikat is getting the following: java.lang.ExceptionInInitializerError at org.neo4j.ser

Re: [Neo4j] How to trim first couple nodes from path in traversal framework?

2011-04-06 Thread Ville Mattila
Hi Brendan, At least over REST API you could do something like this (untested code): "return filter" : { "language" : "javascript", "body" : "position.length() > 0 && position.lastRelationship().hasProperty('timestamp') && position.lastRelationship().getProperty('timestamp') > '1530'" }

Re: [Neo4j] building from source

2011-04-06 Thread Peter Neubauer
Willi, the main build tool is maven, and we are in the middle of a major reshuffling on GIT, so if you install maven.apache.org and try "mvn clean install" that, things should work out better. Would that be an option? Cheers, /peter neubauer GTalk:      neubauer.peter Skype       peter.neubauer

Re: [Neo4j] Constructing an evaluator that only takes specific nodes from a path

2011-04-06 Thread Peter Neubauer
Dario, I am not quite sure I understand what you mean by "drop" is that not to include the path into the result or prune or something else? Do you have a concrete example of this, maybe a simple toy graph test with toy information? Cheers, /peter neubauer GTalk:      neubauer.peter Skype       p

[Neo4j] How to trim first couple nodes from path in traversal framework?

2011-04-06 Thread Brendan Cheng
Hi, I would like to fetch a ending portion of a path where the timestamp of the relationship match. for example: (Node 1)---<2pm>>(Node 3)---<3PM>--->(Node 4)<4PM>--->(Node 64) from the above , I only want the subpath starting from Node 4 onward for the timestamp greater than 3:30PM H

[Neo4j] building from source

2011-04-06 Thread Will Holcomb
When building from source by running ./gradlew (under Ubuntu), it dies with the following error: * Where: Build file '/home/will/tip/lib/neo4j/graphdb/build.gradle' line: 19 * What went wrong: A problem occurred evaluating root project 'graphdb'. Cause: Plugin with id 'idea' not found. Upon com

Re: [Neo4j] simple traverse of tree

2011-04-06 Thread Mattias Persson
Just as a note (and as the javadoc says) you can have multiple evaluators in a traversal description. 2011/4/6 Michael Hunger : > sure > > > ... > .evaluator(Evalutators.excludeStartPosition()) > ... > > Cheers > > Michael > > Am 06.04.2011 um 20:15 schrieb Matěj Plch: > >> I had there an error...

Re: [Neo4j] Loading quirky data into the graph

2011-04-06 Thread Peter Neubauer
https://github.com/andreasronge/neo4j Cheers, /peter neubauer GTalk:      neubauer.peter Skype       peter.neubauer Phone       +46 704 106975 LinkedIn   http://www.linkedin.com/in/neubauer Twitter      http://twitter.com/peterneubauer http://www.neo4j.org               - Your high performance

Re: [Neo4j] Loading quirky data into the graph

2011-04-06 Thread Michael Hunger
aka Nat Pryce's test data builders perhaps also a textual DSL like graphviz' dot language imho there are importers for that or use Andreas' ruby stuff this seems to be pretty natural too Cheers Michael Sent from my iBrick4 Am 06.04.2011 um 23:22 schrieb Jim Webber : > Hi fellow graph-heads, >

[Neo4j] Loading quirky data into the graph

2011-04-06 Thread Jim Webber
Hi fellow graph-heads, I'm writing a Neo4j tutorial with Ian Robinson, and although Neo4j is a joy to use (naturally!), we're coming up against all kinds of annoyances when loading data into the graph. Our data set (based on the Doctor Who universe) contains overlapping entries, disjoint data,

Re: [Neo4j] simple traverse of tree

2011-04-06 Thread Michael Hunger
sure ... .evaluator(Evalutators.excludeStartPosition()) ... Cheers Michael Am 06.04.2011 um 20:15 schrieb Matěj Plch: > I had there an error... My fault. Your code is working fantastic. Thank > you so much. I hope the last question: is it possible to add some > parameter to exclude the sta

Re: [Neo4j] simple traverse of tree

2011-04-06 Thread Matěj Plch
I had there an error... My fault. Your code is working fantastic. Thank you so much. I hope the last question: is it possible to add some parameter to exclude the start node? Dne 6.4.2011 09:13, Mattias Persson napsal(a): > I'm not fully aware of your domain layout, but maybe add this: > >

[Neo4j] Constructing an evaluator that only takes specific nodes from a path

2011-04-06 Thread Dario Rexin
Hello, we are trying to construct an Evaluator that will select only one node from the middle of a path and include it in the result. We do have a specific path we are looking for and the endNode is stored in 'end'. Now what we would like to do is have an Evaluator like this: import

Re: [Neo4j] EmbeddedReadOnlyGraphDatabase workings

2011-04-06 Thread Tobias Ivarsson
That is to be expected. It is due to cache staleness issues in the ReadOnly instance. Using cache_type=none should give the lowest probability of these things happening, but there are no guarantees. -t 2011/4/6 Alfredas Chmieliauskas > Hey, > > Thanks for the ideas. > Both > readOnlyGraphDb.ge

Re: [Neo4j] EmbeddedReadOnlyGraphDatabase workings

2011-04-06 Thread Alfredas Chmieliauskas
Hey, Thanks for the ideas. Both readOnlyGraphDb.getConfig().getGraphDbModule().getNodeManager().clearCache() and cache_type=none worked. But I've run into some issues down the road. To test i've taken the same db folder with some nodes, properties and relations and created a read-only embedded

Re: [Neo4j] Getting JSON for a Representation in an unmanaged extension

2011-04-06 Thread Dario Rexin
Hi, thank you very much. The server injection worked quiet well. Am 06.04.11 14:31 schrieb "Michael Hunger" unter : > I think the output format (repository) is also added to jerseys injection > facilities. > > so you might try to get it injected with @Context OutputFormat, but I don't > know

Re: [Neo4j] Getting JSON for a Representation in an unmanaged extension

2011-04-06 Thread Michael Hunger
I think the output format (repository) is also added to jerseys injection facilities. so you might try to get it injected with @Context OutputFormat, but I don't know if that works. Otherwise you might perhaps create your own instance of RepresentationFormatRepository with an injected server.

[Neo4j] Getting JSON for a Representation in an unmanaged extension

2011-04-06 Thread Dario Rexin
Hello, I am currently working an an unamanged extension for the neo4j rest server. I want to provide an HTML response which includes the JSON String of a Representation. How can I get the OutputFormat for MediaType.APPLICATION_JSON in a method with @Produces(MediaType.TEXT_HTML)? Thanks in adv

Re: [Neo4j] InvalidRecordException

2011-04-06 Thread Tobias Ivarsson
This has been very thoroughly investigated, and still is being thoroughly investigated, since we have not been able to reproduce the problem at all. Any hints on what scenario this occurred in that you can provide would be immensely helpful. Cheers, Tobias On Tue, Apr 5, 2011 at 9:41 PM, Degrassi

[Neo4j] Happy to announce that the Spring Data Graph tutorial is live at cineasts.net

2011-04-06 Thread Michael Hunger
Hi, after releasing the RC1 I found some time to make the SDG tutorial app available at http://cineasts.net. The creation of this webapp is discussed in detail in the Spring Data Graph guidebook at: http://bit.ly/das-book So feel free to try it out, register, search for movies and rate them an

Re: [Neo4j] EmbeddedReadOnlyGraphDatabase workings

2011-04-06 Thread Mattias Persson
A "refresh", i.e. clearing of caches can be performed by (API may change): readOnlyGraphDb.getConfig().getGraphDbModule().getNodeManager().clearCache(); and you could maybe keep the default cache_type setting. That should do what you're asking for. 2011/4/5 David Montag > Alfredas, > > A solu

Re: [Neo4j] simple traverse of tree

2011-04-06 Thread Mattias Persson
I'm not fully aware of your domain layout, but maybe add this: .uniqueness( Uniqueness.RELATIONSHIP_GLOBAL ) to your traversal description. The default (NODE_GLOBAL) may end up "hiding" some of your nodes depending on your graph layout. 2011/4/5 Matěj Plch > Well so lastRelationship() isnt