Re: [Neo4j] Neo4j-Scala Wrapper 0.1.0 released

2011-11-17 Thread Michael Hunger
There is also Adriano's Scala Cypher DSL: https://github.com/adrianoalmeida7/cypher-typesafe-scala Michael Am 17.11.2011 um 22:00 schrieb Andres Taylor: > On Thu, Nov 17, 2011 at 9:55 PM, Peter Neubauer < > peter.neuba...@neotechnology.com> wrote: > >> Actually, >> it might be an idea to look a

Re: [Neo4j] Neo4j HA and Spring Data Graph 1.1

2011-11-17 Thread Michael Hunger
Hi Karthik, You have to do the normal Neo4j HA setup (http://docs.neo4j.org/chunked/snapshot/ha.html). * add the additional dependencies to your project org.neo4j:neo4j-ha:1.5 * running 3 coordinators (either download neo4j-enterprise and use start-coordinator or start the zookeeper instances p

Re: [Neo4j] How do I use parameters in Cypher queries using regular expressions?

2011-11-17 Thread Andres Taylor
I've tried to reproduce this directly in Cypher, and through SDN, but I haven't been able to. I will spend some more time on this tomorrow. If it's possible for you to create a minimal test that reproduces the problem, it would very helpful. Andrés On Thu, Nov 17, 2011 at 8:45 PM, Tero Paananen w

Re: [Neo4j] Record not in use problem and solution

2011-11-17 Thread Mattias Persson
Deleting a node doesn't remove it from its indexes because there's no hard link between a node and its indexes so it would be a costly operation. It merely hides it from IndexHits and puts it up for deletion later (read-repair). Are you getting the exception in another thread and/or is that node in

Re: [Neo4j] Neo4j-Scala Wrapper 0.1.0 released

2011-11-17 Thread Andres Taylor
On Thu, Nov 17, 2011 at 9:55 PM, Peter Neubauer < peter.neuba...@neotechnology.com> wrote: > Actually, > it might be an idea to look at this kind of DSL for Cypher, much along > the (Scala) lines of Rickards Java-DSL, > > http://rickardoberg.wordpress.com/2011/11/14/creating-a-dsl-for-cypher-graph

Re: [Neo4j] Neo4j-Scala Wrapper 0.1.0 released

2011-11-17 Thread Peter Neubauer
Actually, it might be an idea to look at this kind of DSL for Cypher, much along the (Scala) lines of Rickards Java-DSL, http://rickardoberg.wordpress.com/2011/11/14/creating-a-dsl-for-cypher-graph-queries/ instead of trying to mimic literal Cypher Strings. WDYT? Cheers, /peter neubauer GTalk: 

[Neo4j] Neo4j HA and Spring Data Graph 1.1

2011-11-17 Thread kv8
We have an Spring Data Graph implementation that is currently working great with the embedded neo4j database. We want to try out the HA setup and my understanding is you can run HA in embedded mode. Assuming you have the HA configuration setup, would configuring the graphDatabaseService bean to u

Re: [Neo4j] Using the WrappingNeoServerBootstrapper with sbt

2011-11-17 Thread Peter Neubauer
Great, thanks a lot George! Will include it in the setup section in the manual, http://docs.neo4j.org/chunked/snapshot/server-embedded.html#_getting_the_libraries Cheers, /peter neubauer GTalk:      neubauer.peter Skype       peter.neubauer Phone       +46 704 106975 LinkedIn   http://www.linke

Re: [Neo4j] How do I use parameters in Cypher queries using regular expressions?

2011-11-17 Thread Tero Paananen
>> @Query(value = "start n = node(1) match (n)-[:KNOWS]->(c) where c.a =~ >> /.*?{foo}.*?/ return c", type = QueryType.Cypher) >> Page getConnectedNodes(@Param("foo") String foo, Pageable pageable); >> > > The regular expression can either be provided through a parameter, or > inlined in the query.

Re: [Neo4j] The cypher project in neo4j-community has errors in eclipse

2011-11-17 Thread Eric Liang
On 11/18/2011 02:34 AM, Peter Neubauer wrote: > > How about some time during tomorrow CET working hours? > Fine, see you then. Thanks in advance for your time. Eric -- -BEGIN GEEK CODE BLOCK- Version: 3.1 GCM/CS/E/MU/P d+(-) s: a- C++ UL$ P+>++ L++ E++ W++ N+ o+>++ K+++ w !O M-(+) V-- PS

Re: [Neo4j] How do I use parameters in Cypher queries using regular expressions?

2011-11-17 Thread Andres Taylor
On Thu, Nov 17, 2011 at 6:14 PM, Tero Paananen wrote: > @Query(value = "start n = node(1) match (n)-[:KNOWS]->(c) where c.a =~ > /.*?{foo}.*?/ return c", type = QueryType.Cypher) > Page getConnectedNodes(@Param("foo") String foo, Pageable pageable); > The regular expression can either be provided

Re: [Neo4j] Gremlin plugin and script engine question

2011-11-17 Thread Alfredas Chmieliauskas
Got it. Thanks! Rick >> -1 A On Thu, Nov 17, 2011 at 6:36 PM, Marko Rodriguez wrote: >> What exactly does iterate() do? > > A Gremlin expression yields a Pipeline and >        Pipeline implements Iterator > > Thus, a Gremlin expression doesn't return the results of a traversal, only a > lazy

Re: [Neo4j] The cypher project in neo4j-community has errors in eclipse

2011-11-17 Thread Peter Neubauer
How about some time during tomorrow CET working hours? On Nov 17, 2011 2:29 PM, "Eric Liang" wrote: > On 11/17/2011 08:44 PM, Peter Neubauer wrote: > > Eric, > > Maybe we can connect over Skype and get it working? I am somewhat of a > > fixing things expert :-) > OK. I can share the screen but ta

Re: [Neo4j] Record not in use problem and solution

2011-11-17 Thread Axel Morgner
> It cannot be only that. By the looks of it some part of your code uses > Node#hasProperty after Node#delete, which is illegal and that's what's > causing it. Yes, that's right. The exception is expected behaviour. But why the node's still in the index? I think it's just a timing problem in our

Re: [Neo4j] Gremlin plugin and script engine question

2011-11-17 Thread Marko Rodriguez
> What exactly does iterate() do? A Gremlin expression yields a Pipeline and Pipeline implements Iterator Thus, a Gremlin expression doesn't return the results of a traversal, only a lazy iterator for .next()'ing results. For people doing a traversal to yield a sideEffect (e.g. aggregat

Re: [Neo4j] Gremlin plugin and script engine question

2011-11-17 Thread Rick Bullotta
It iterates. Sorry, couldn't resist. ;-) -Original Message- From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On Behalf Of Alfredas Chmieliauskas Sent: Thursday, November 17, 2011 12:31 PM To: Neo4j user discussions Subject: Re: [Neo4j] Gremlin plugin and script e

Re: [Neo4j] Gremlin plugin and script engine question

2011-11-17 Thread Alfredas Chmieliauskas
Thanks! What exactly does iterate() do? A On Thu, Nov 17, 2011 at 4:07 PM, Marko Rodriguez wrote: > Hey Alfredas, > > Be sure to iterate your pipeline > >        x = []; g.v(1).out("from").out("to").aggregate(x).loop(3){it.loops < > 4}.iterate(); x > > * NOTE: You can also do: >        g.v

[Neo4j] How do I use parameters in Cypher queries using regular expressions?

2011-11-17 Thread Tero Paananen
Another regular expression related issue in Cypher. 1.5 GA. I'm using repositories extensively in my application. I'm extending the queries defined by the repository interfaces with my own using the @Query annotation. It seems as if using parametrized regular expressions in these queries isn't wo

[Neo4j] Bug (or feature?) in using regular expressions in Cypher where clauses

2011-11-17 Thread Tero Paananen
This is using 1.5 GA. I think I found a bug (or unsupported feature) in how regular expressions used in where clauses work in Cypher queries. It doesn't look like having multiple regular expression conditions in a where clause back to back works too well. Here's an example that works: start n =

Re: [Neo4j] Gremlin plugin and script engine question

2011-11-17 Thread Marko Rodriguez
Hey Alfredas, Be sure to iterate your pipeline x = []; g.v(1).out("from").out("to").aggregate(x).loop(3){it.loops < 4}.iterate(); x * NOTE: You can also do: g.v(1).out("from").out("to").aggregate(x).loop(3){it.loops < 4} >>-1 but the >> convention is no longer with us in

Re: [Neo4j] Neo4j-Scala Wrapper 0.1.0 released

2011-11-17 Thread Marko Rodriguez
Hey, It might be a little too soon to bring it up, but early December, we are releasing Gremlin Scala in Gremlin 1.4 which will allow you to import Gremlin into your Scala project (e.g. Neo4j-Scala Wrapper) and evaluate Gremlin queries natively. https://github.com/tinkerpop/gremlin/tr

[Neo4j] Gremlin plugin and script engine question

2011-11-17 Thread Alfredas Chmieliauskas
Dear all, This concerns gremlin plugin and the script engine. Maybe there's an explanation for this behavior: 1) gremlin> x = []; g.v(1).out("from").out("to").aggregate(x).loop(3){it.loops < 4};     gremlin> x; ==> v[7] ==> v[3] ==> v[5] 2) gremlin> x = []; g.v(1).out("from").out("to").aggregate(

Re: [Neo4j] Newbie question on server topology

2011-11-17 Thread Vinicius Carvalho
Thanks for the great reply Michael, the "RESTDataService" is SpringRestGraphDatabase , sorry, I was away from docs, and was the best approximation of the real name I had :P Thanks a lot for clarification. I guess I'm just assuming REST will not be enough before even trying, it may not be an overh

Re: [Neo4j] Using the WrappingNeoServerBootstrapper with sbt

2011-11-17 Thread g-eorge
Sure, no problem. Here you go: https://gist.github.com/1373211 On 17 Nov 2011, at 12:41, Peter Neubauer [via Neo4j Community Discussions] wrote: > Great, > Thanks for sharing it! Would love to see this in some public place to be > able to refer to it. Gut it on Github somewhere? > On Nov 1

Re: [Neo4j] Newbie question on server topology

2011-11-17 Thread Michael Hunger
If you're using spring you can also look into Spring Data Neo4j (http://spring.neo4j.org) (see the docs here: http://static.springsource.org/spring-data/data-graph/snapshot-site/reference/html/#reference:neo4j-server) and its use of the SpringRestGraphDatabase and/or the java-rest-binding (ht

Re: [Neo4j] Sampling a Neo4j instance?

2011-11-17 Thread Mattias Persson
I don't think lucene supports that. You could instead make sure that everything you index is also indexed in some kind of "all" field, which would duplicate your index, but make this possible. Den 17 november 2011 11:00 skrev Anders Lindström : > > Thanks Michael for this creative idea. > > But i

Re: [Neo4j] Record not in use problem and solution

2011-11-17 Thread Mattias Persson
2011/11/17 Axel Morgner > We remove nodes from the index with index.remove(node). The index is > initialized at startup with > It cannot be only that. By the looks of it some part of your code uses Node#hasProperty after Node#delete, which is illegal and that's what's causing it. Can you provide

Re: [Neo4j] Using the WrappingNeoServerBootstrapper with sbt

2011-11-17 Thread Markus Joschko
After I finally figured out that one of my main problems was with the version of jersey used (I upgraded to 1.10), I copied over the static web dependency to the lib folder and it worked as well. But your approach is much nicer. Will give it a try. On Thu, Nov 17, 2011 at 1:40 PM, Peter Neubaue

Re: [Neo4j] Neo4j-Scala Wrapper 0.1.0 released

2011-11-17 Thread Andres Taylor
On Thu, Nov 17, 2011 at 1:21 PM, Christopher Schmidt < fakod...@googlemail.com> wrote: > Cypher has some > similarities to SQL as a special query language. And to be honest, I think > using it programmatically will cause the same symtoms as SQL with respect > to runtime errors, type safety, abstra

Re: [Neo4j] Neo4j Spatial build / run problems

2011-11-17 Thread danielb
Sure, here are the files, first after the checkout directly and then after I add the missing entry (maybe you can correct this on the repository?). http://dl.dropbox.com/u/18693700/git.txt http://dl.dropbox.com/u/18693700/meta-inf_fixed.txt -- View this message in context: http://neo4j-commun

[Neo4j] Newbie question on server topology

2011-11-17 Thread Vinicius Carvalho
Hi there! I've being playing around with neo4j for a few weeks now. I'm using embedded graph db, and the data lives inside my developer machine. But now I need to turn things into a more production like stage. Coming from a traditional SQL world where we have our clusters of DB running in some ser

Re: [Neo4j] The cypher project in neo4j-community has errors in eclipse

2011-11-17 Thread Eric Liang
On 11/17/2011 08:44 PM, Peter Neubauer wrote: > Eric, > Maybe we can connect over Skype and get it working? I am somewhat of a > fixing things expert :-) OK. I can share the screen but talk much since my colleagues are still working. :D Anyway, is your skype peter.neubauer and what time is conveni

Re: [Neo4j] The cypher project in neo4j-community has errors in eclipse

2011-11-17 Thread Peter Neubauer
Eric, Maybe we can connect over Skype and get it working? I am somewhat of a fixing things expert :-) On Nov 17, 2011 11:26 AM, "Eric Liang" wrote: > On 11/17/2011 02:46 PM, Anders Nawroth wrote: > > Hi! > > > >> From the discussion ( http://neo4j.org/forums/#nabble-td3217906 ), > >> Anders Nawr

Re: [Neo4j] Using the WrappingNeoServerBootstrapper with sbt

2011-11-17 Thread Peter Neubauer
Great, Thanks for sharing it! Would love to see this in some public place to be able to refer to it. Gut it on Github somewhere? On Nov 17, 2011 1:35 PM, "g-eorge" wrote: > I added the following to my .sbt file and everything appears to work fine > so > far.. > > libraryDependencies ++= Seq( >

Re: [Neo4j] Neo4j Spatial build / run problems

2011-11-17 Thread Peter Neubauer
Daniel, Could you send over the full console output of a mvn clean install -DskipTests ? On Nov 17, 2011 12:55 PM, "danielb" wrote: > Hi I have some problems with the new build of Neo4j Spatial. First if I > checkout and try to build the following error occurs "[ERROR] > > spatial\src\main\java

Re: [Neo4j] Using the WrappingNeoServerBootstrapper with sbt

2011-11-17 Thread g-eorge
I added the following to my .sbt file and everything appears to work fine so far.. libraryDependencies ++= Seq( "org.neo4j.app" % "neo4j-server" % "1.5", "org.neo4j.app" % "neo4j-server" % "1.5" classifier "static-web" from "http://m2.neo4j.org/releases/org/neo4j/app/neo4j-server/1.5/

[Neo4j] Neo4j-Scala Wrapper 0.1.0 released

2011-11-17 Thread Christopher Schmidt
Peter, I think its not possible because "[" and "]" are reserved for Scalas type declarations. The String (fe. "KNOWS") is implicitly converted into DynamicRelationshipType.withName("KNOWS"). What would be possible to get something like this (which is actually just a change of method names): star

Re: [Neo4j] Record not in use problem and solution

2011-11-17 Thread Axel Morgner
> Does this problem occur with automatic node indexing? > We're not using auto indexing, so I can't say. ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user

[Neo4j] Neo4j Spatial build / run problems

2011-11-17 Thread danielb
Hi I have some problems with the new build of Neo4j Spatial. First if I checkout and try to build the following error occurs "[ERROR] spatial\src\main\java\org\neo4j\gis\spatial\indexprovider\SpatialIndexProvider.java:[38,0] error: Internal error: java.io.FileNotFoundException: META-INF/services/or

Re: [Neo4j] Record not in use problem and solution

2011-11-17 Thread Krzysztof Raczyński
Does this problem occur with automatic node indexing? ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user

[Neo4j] Help Needed: Creating a Neo4j Cheat Sheet / Reference Card

2011-11-17 Thread Michael Hunger
Dear Graphistas, today we would like to ask for your contribution in our efforts to create an introductional reference card for Neo4j. We would like to publish it as a 6 page DZone Ref-Card but also include the content in our distribution / website. We feel many people are overwhelmed when it

Re: [Neo4j] Record not in use problem and solution

2011-11-17 Thread Axel Morgner
We remove nodes from the index with index.remove(node). The index is initialized at startup with Index index = graphDb.index().forNodes("fulltextAllNodes", MapUtil.stringMap("provider", "lucene", "type", "fulltext")); Removing the node from the index before executing node.delete() avoids the e

Re: [Neo4j] The cypher project in neo4j-community has errors in eclipse

2011-11-17 Thread Eric Liang
On 11/17/2011 02:46 PM, Anders Nawroth wrote: > Hi! > >> From the discussion ( http://neo4j.org/forums/#nabble-td3217906 ), >> Anders Nawroth said neo4j-cypher works with Eclipse Indigo, so I >> installed a fresh latest version of Eclipse, but still not work. > It worked when I wrote the instructi

Re: [Neo4j] Sampling a Neo4j instance?

2011-11-17 Thread Anders Lindström
Thanks Michael for this creative idea. But is it possible to query for _all_ objects in a Lucene index? As I understand it, I need at least the name of an index key field, e.g. 'title', right? What I would like to do is basically query for * (without knowing _anything_ but the index name, i.e.

Re: [Neo4j] Record not in use problem and solution

2011-11-17 Thread Mattias Persson
"Removing from index": is that done by looking at properties and removing them from the index for every property. If that's the case then this is expected since the node has been deleted just before. 2011/11/17 Peter Neubauer > Axel, > Can you isolate this into a test, and maybe send the message