Hi all I did... - Split it up to Neo4j Scala, which is mainly the old available neo4j-scala version. A little refactored and enhanced with "Case Class" to "Node properties" marshaling and some Traits for graph service provider handling (-> https://github.com/FaKod/neo4j-scala) - Neo4j Spatial Scala with some spatial convenience methods (-> https://github.com/FaKod/neo4j-spatial-scala) - I updated both READMEs to reflect the current state - lowered both version numbers to 0.1.0-SNAPSHOT (the old where 0.9.9... too high I think) - Updated Scala to 2.9.1 and Neo4j to the last available Neo4j Spatial compatible version (1.4.1) - started to add some more Specs2 test cases (still far away from enough)
Should be a good starting point for playing, testing and discussing various design and DSL decisions :-) Cheers Christopher On Mon, Sep 12, 2011 at 9:17 PM, Peter Neubauer < [email protected]> wrote: > Awesome Christopher, > let us know when things are stabilizing, so we can start to put the > scala bindings onto the build server and run regular tests against > Neo4j master! > > 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 graph database. > http://startupbootcamp.org/ - Ă–resund - Innovation happens HERE. > http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party. > > > > On Mon, Sep 12, 2011 at 9:03 PM, Christopher Schmidt > <[email protected]> wrote: > > OK. I will > > - use my forked neo4j-scala repository for the Neo4j part > > - push the spatial part into my neo4j-spatial-scala repository which will > > have a dependancy to neo4j-scala. > > > > On Mon, Sep 12, 2011 at 9:58 AM, Anders Nawroth < > [email protected]>wrote: > > > >> Hi! > >> > >> So far Neo4j and Neo4j Spatial don't share the same release cycle, so it > >> makes sense to split the scala wrapper in two projects. > >> > >> /anders > >> > >> On 09/12/2011 06:14 AM, Christopher Schmidt wrote: > >> > Yes - thats possible. I think to have a repo would ease the usage of > >> > neo4j-scala. > >> > The next days (hope there is enough time) I will clean up and document > >> the > >> > sources so that they are easier to understand. > >> > Next would be to update to the current versions of Neo4j, Neo4j > Spatial > >> and > >> > Scala. > >> > > >> > Actual, neo4j-scala includes the spatial wrapper as well, do you think > it > >> > is necessary to split it into two projects (neo4j-scala and > >> > neo4j-spatial-scala)? > >> > > >> > On Fri, Sep 9, 2011 at 3:21 PM, Peter Neubauer< > >> > [email protected]> wrote: > >> > > >> >> Very cool Christopher! > >> >> > >> >> We are testing to pull in some of the bindings for Neo4j into the > >> >> manual - would it be possible, when things stabilize, to pull in the > >> >> Scala bindings to the Neo4j repo. build them and start documenting > >> >> some test cases so we can put them into there, too? > >> >> > >> >> 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 graph > >> database. > >> >> http://startupbootcamp.org/ - Ă–resund - Innovation happens HERE. > >> >> http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing > party. > >> >> > >> >> > >> >> > >> >> On Fri, Sep 9, 2011 at 8:10 AM, Christopher Schmidt > >> >> <[email protected]> wrote: > >> >>> Neo4j Scala (https://github.com/FaKod/neo4j-scala) has got some > >> >> improvements > >> >>> - Scala (non nested) Case Class de- serialization to or from a Neo4j > >> Node > >> >>> (see example) > >> >>> - index convenience methods (see example) > >> >>> - create and get Relation Objects, like val relation = start --> > "foo" > >> >> --> > >> >>> end<; > >> >>> > >> >>> It's still alpha, but worth to look at :-) > >> >>> > >> >>> case class Test(s: String, i: Int, ji: java.lang.Integer, d: Double, > l: > >> >>> Long, b: Boolean) > >> >>> > >> >>> object DeSerializingSpec extends Specification with Neo4jWrapper > with > >> >>> EmbeddedGraphDatabaseServiceProvider { > >> >>> > >> >>> def neo4jStoreDir = "/tmp/temp-neo-test" > >> >>> > >> >>> "Node" should { > >> >>> "be serializable" in { > >> >>> var o = Test("This is a String", 1, 2, 3.3, 10, true) > >> >>> var node: Node = null > >> >>> withTx { > >> >>> implicit neo => > >> >>> node = createNode(o) > >> >>> } > >> >>> > >> >>> var oo = deSerialize[Test](node) > >> >>> oo must beEqual(o) > >> >>> } > >> >>> } > >> >>> } > >> >>> > >> >>> > >> >>> object IndexTestSpec extends Specification with Neo4jWrapper with > >> >>> EmbeddedGraphDatabaseServiceProvider with Neo4jIndexProvider { > >> >>> > >> >>> def neo4jStoreDir = "/tmp/temp-neo-index-test" > >> >>> > >> >>> override def NodeIndexConfig = ("MyTestIndex", Map("provider" -> > >> >> "lucene", > >> >>> "type" -> "fulltext")) :: Nil > >> >>> > >> >>> > >> >>> "Neo4jIndexProvider" should { > >> >>> "use the fulltext search index" in { > >> >>> > >> >>> val nodeIndex = getNodeIndex("MyTestIndex").get > >> >>> > >> >>> withSpatialTx { > >> >>> implicit db => > >> >>> > >> >>> val theMatrix = createNode > >> >>> val theMatrixReloaded = createNode > >> >>> > >> >>> // add to index > >> >>> nodeIndex += (theMatrix, "title", "The Matrix") > >> >>> nodeIndex += (theMatrixReloaded, "title", "The Matrix > >> Reloaded") > >> >>> > >> >>> val found = nodeIndex.query("title", "reloAdEd") > >> >>> found.size must beGreaterThanOrEqualTo(1) > >> >>> > >> >>> // remove from index > >> >>> nodeIndex -= theMatrix > >> >>> nodeIndex -= theMatrixReloaded > >> >>> } > >> >>> } > >> >>> } > >> >>> } > >> >>> > >> >>> -- > >> >>> Christopher > >> >>> twitter: @fakod > >> >>> blog: http://blog.fakod.eu > >> >>> _______________________________________________ > >> >>> Neo4j mailing list > >> >>> [email protected] > >> >>> https://lists.neo4j.org/mailman/listinfo/user > >> >>> > >> >> _______________________________________________ > >> >> Neo4j mailing list > >> >> [email protected] > >> >> https://lists.neo4j.org/mailman/listinfo/user > >> >> > >> > > >> > > >> > > >> _______________________________________________ > >> Neo4j mailing list > >> [email protected] > >> https://lists.neo4j.org/mailman/listinfo/user > >> > > > > > > > > -- > > Christopher > > twitter: @fakod > > blog: http://blog.fakod.eu > > _______________________________________________ > > Neo4j mailing list > > [email protected] > > https://lists.neo4j.org/mailman/listinfo/user > > > _______________________________________________ > Neo4j mailing list > [email protected] > https://lists.neo4j.org/mailman/listinfo/user > -- Christopher twitter: @fakod blog: http://blog.fakod.eu _______________________________________________ Neo4j mailing list [email protected] https://lists.neo4j.org/mailman/listinfo/user

