Re: [Neo] Re: Neo shell problems...

2008-04-30 Thread Mattias Persson
Hi, now I'm back (the brain behind the neo shell :) ).

For starters, the Not in transaction bug was only found in the
1.0-b6 release. It's fixed though, only the shell download link
doesn't refer to the latest jar file! Could someone please fix that!
(I'll attach the right shell-1.0-b6.jar as well). There's also no
assumption of an empty (or non-empty) database so you don't have to do
that reference node thingies.

As for the shell being started without a neo instance already started
(just passing in the path to the neo store), that functionality got
there in the neo/shell -1.0-rc1 version.

Hopefully this new jar will fix the problems.

/ Mattias

2008/4/28 Emil Eifrem [EMAIL PROTECTED]:
 On Sun, Apr 27, 2008 at 11:54 PM, Philip Jägenstedt [EMAIL PROTECTED] wrote:
I don't know why. Again, my nodespace is ∅ so if there are some
assumptions made that there will acutally be something there, it is
not so.

  Quick comment: Mattias (the brain behind the Neo shell) is super busy
  right now and will then be on a plane for about 16 hours. But he'll
  look into this as soon as he's back. There's for certain nothing in
  Neo shell that assumes a non-empty node space though, so that's not
  it.

  Cheers,

  --
  Emil Eifrém, CEO [EMAIL PROTECTED]
  Neo Technology, www.neotechnology.com
  Cell: +46 733 462 271 | US: 206 403 8808

 ___
  Neo mailing list
  User@lists.neo4j.org
  https://lists.neo4j.org/mailman/listinfo/user


___
Neo mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo] EmbeddedNeo implements NeoService

2008-04-30 Thread Mattias Persson
Ok, great Philip!

2008/4/28 Philip Jägenstedt [EMAIL PROTECTED]:
 OK, updated the wiki for you...

  Philip



  On 4/28/08, Emil Eifrem [EMAIL PROTECTED] wrote:
   On Mon, Apr 28, 2008 at 1:47 AM, Philip Jägenstedt [EMAIL PROTECTED] 
 wrote:
 I'm back with a more philosophical question.
  
  
   Hey Philip,
  
I'm on a five minute break here so let me jump in real quick!
  
  

  http://wiki.neo4j.org/content/One_Minute_Guide_Complete_Code declares

  NeoService neo = new EmbeddedNeo(var/base);

  The super-awsome (really) http://wiki.neo4j.org/content/Design_Guide
  consistently uses EmbeddedNeo. When writing code, which ought I use?
  
  
   You should absolutely use NeoService. We didn't have NeoService when
we first wrote the Design Guide and its showing more than a few signs
of its age. The only time you should directly refer to EmbeddedNeo is
once, when you invoke it's constructor to start Neo.
  
Cheers,
  
  
--
Emil Eifrém, CEO [EMAIL PROTECTED]
Neo Technology, www.neotechnology.com
Cell: +46 733 462 271 | US: 206 403 8808
___
Neo mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user
  
  ___
  Neo mailing list
  User@lists.neo4j.org
  https://lists.neo4j.org/mailman/listinfo/user

___
Neo mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo] Re: Neo shell problems...

2008-04-30 Thread Philip Jägenstedt
Looks like the mailing list doesn't like attachments.

On 4/30/08, Mattias Persson [EMAIL PROTECTED] wrote:
 Hi, now I'm back (the brain behind the neo shell :) ).

  For starters, the Not in transaction bug was only found in the
  1.0-b6 release. It's fixed though, only the shell download link
  doesn't refer to the latest jar file! Could someone please fix that!
  (I'll attach the right shell-1.0-b6.jar as well). There's also no
  assumption of an empty (or non-empty) database so you don't have to do
  that reference node thingies.

  As for the shell being started without a neo instance already started
  (just passing in the path to the neo store), that functionality got
  there in the neo/shell -1.0-rc1 version.

  Hopefully this new jar will fix the problems.

  / Mattias

  2008/4/28 Emil Eifrem [EMAIL PROTECTED]:

  On Sun, Apr 27, 2008 at 11:54 PM, Philip Jägenstedt [EMAIL PROTECTED] 
  wrote:
  I don't know why. Again, my nodespace is ∅ so if there are some
  assumptions made that there will acutally be something there, it is
  not so.
  
Quick comment: Mattias (the brain behind the Neo shell) is super busy
right now and will then be on a plane for about 16 hours. But he'll
look into this as soon as he's back. There's for certain nothing in
Neo shell that assumes a non-empty node space though, so that's not
it.
  
Cheers,
  
--
Emil Eifrém, CEO [EMAIL PROTECTED]
Neo Technology, www.neotechnology.com
Cell: +46 733 462 271 | US: 206 403 8808
  

  ___
Neo mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user
  
  

 ___
  Neo mailing list
  User@lists.neo4j.org
  https://lists.neo4j.org/mailman/listinfo/user


___
Neo mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo] Maturity of Python bindings?

2008-04-30 Thread Mattias Persson
It could be a problem in maven because wou have to specify the java
source code version (i.e 1.6 or whatever you use). Maven has a
tendency to default to java 1.4. So here is what you'll want to
include in your pom.xml:


build

plugins
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-compiler-plugin/artifactId
configuration
source1.5/source
target1.5/target
/configuration
/plugin
/plugins
/build



So in a simple example the entire pom.xml would look like:

project
modelVersion4.0.0/modelVersion
groupIdmy-groupId/groupId
artifactIdmy-artifactId/artifactId
name/name
version0.1/version

build
plugins
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-compiler-plugin/artifactId
configuration
source1.5/source
target1.5/target
/configuration
/plugin
/plugins
/build

dependencies
dependency
groupIdorg.neo4j/groupId
artifactIdneo/artifactId
version1.0-rc1-SNAPSHOT/version
/dependency
/dependencies

repositories
repository
idneo4j-public-repository/id
namePublically available Maven 2 repository
for Neo4j/name
urlhttp://m2.neo4j.org/url
snapshots
enabledtrue/enabled
/snapshots
/repository
/repositories
/project

2008/4/28 Emil Eifrem [EMAIL PROTECTED]:
 On Mon, Apr 28, 2008 at 11:16 AM, Philip Jägenstedt [EMAIL PROTECTED] wrote:
   While I've been keeping the Java door open (and gotten a bit enamoured
with it) I am still interested. Maybe I'll even write some code in
Python and some in Java, if that's possible... I'm guessing it's not
possible for two programs to use the sasme datastore at the same time
though, which could potentially be a problem.

  Very true, you can't run two Neo instances (processes, JVMs, etc)
  against the same data store.


  
Also, I'm feeling slightly retarded this morning as I can't figure out
a good place to put my RelationshipTypes enum in Java. Essentially it
needs to be package global, so all I can think of is creating a silly
little class like this:
  
public class Mush {
   public static enum Types implements RelationshipType {
   MUSICBRAINZ,
   ARTISTS,
   ARTIST
   }
}

  You probably want to put it into a file RelTypes.java, which looks like:

enum RelTypes implements RelationshipType
{
   BLAH, BLAH 2
}

  Good luck!

  Cheers,

  --
  Emil Eifrém, CEO [EMAIL PROTECTED]

 Neo Technology, www.neotechnology.com
  Cell: +46 733 462 271 | US: 206 403 8808


 ___
  Neo mailing list
  User@lists.neo4j.org
  https://lists.neo4j.org/mailman/listinfo/user

___
Neo mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: Compiling with Java 1.5 pom.xml (Was: [Neo] Maturity of Python bindings?)

2008-04-30 Thread Mattias Persson
Sorry for the late reply on your previous mail, this is what I
answered exactely :)

2008/4/28 Philip Jägenstedt [EMAIL PROTECTED]:
 On 4/28/08, Emil Eifrem [EMAIL PROTECTED] wrote:
   You probably want to put it into a file RelTypes.java, which looks like:

  That was my first attempt, the class-wrapping was an attempt to get
  maven to compile. It turns out that I needed the following in my
  pom.xml

   build
 plugins
   plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-compiler-plugin/artifactId
 version2.0.2/version
 configuration
   source1.5/source
   target1.5/target
 /configuration
   /plugin
 /plugins
   /build

  I'm not sure what maven does otherwise, but it would seem that it's
  compiling for some older jvm (which I don't have installed, but I
  guess 1.5 can cross-compile). If you want to mention this is the
  documentation somewhere, you can refer to
  http://maven.apache.org/general.html#Compiling-J2SE-5 for the answer.

  Philip
  ___
  Neo mailing list
  User@lists.neo4j.org
  https://lists.neo4j.org/mailman/listinfo/user

___
Neo mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo] Re: Neo shell problems...

2008-04-30 Thread Mattias Persson
Oh btw, sorry I meant that that it's the neo jar file which isn't
the latest.

You can download it here:
http://m2.neo4j.org/org/neo4j/neo/1.0-b6/neo-1.0-b6.jar

You could probably download the latest shell as well :) :
http://m2.neo4j.org/org/neo4j/shell/1.0-b6/shell-1.0-b6.jar

2008/4/30 Philip Jägenstedt [EMAIL PROTECTED]:
 Looks like the mailing list doesn't like attachments.



  On 4/30/08, Mattias Persson [EMAIL PROTECTED] wrote:
   Hi, now I'm back (the brain behind the neo shell :) ).
  
For starters, the Not in transaction bug was only found in the
1.0-b6 release. It's fixed though, only the shell download link
doesn't refer to the latest jar file! Could someone please fix that!
(I'll attach the right shell-1.0-b6.jar as well). There's also no
assumption of an empty (or non-empty) database so you don't have to do
that reference node thingies.
  
As for the shell being started without a neo instance already started
(just passing in the path to the neo store), that functionality got
there in the neo/shell -1.0-rc1 version.
  
Hopefully this new jar will fix the problems.
  
/ Mattias
  
2008/4/28 Emil Eifrem [EMAIL PROTECTED]:
  
On Sun, Apr 27, 2008 at 11:54 PM, Philip Jägenstedt [EMAIL PROTECTED] 
 wrote:
I don't know why. Again, my nodespace is ∅ so if there are some
assumptions made that there will acutally be something there, it is
not so.

  Quick comment: Mattias (the brain behind the Neo shell) is super busy
  right now and will then be on a plane for about 16 hours. But he'll
  look into this as soon as he's back. There's for certain nothing in
  Neo shell that assumes a non-empty node space though, so that's not
  it.

  Cheers,

  --
  Emil Eifrém, CEO [EMAIL PROTECTED]
  Neo Technology, www.neotechnology.com
  Cell: +46 733 462 271 | US: 206 403 8808

  
___
  Neo mailing list
  User@lists.neo4j.org
  https://lists.neo4j.org/mailman/listinfo/user


  
   ___
Neo mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user
  
  

 ___
  Neo mailing list
  User@lists.neo4j.org
  https://lists.neo4j.org/mailman/listinfo/user


___
Neo mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo] Maturity of Python bindings?

2008-04-30 Thread Philip Jägenstedt
Hmm, 1.0-rc1-SNAPSHOT? Is this the development branch, and is it
what I should use?

Philip

On 4/30/08, Mattias Persson [EMAIL PROTECTED] wrote:
 There's now a link to a complete example from the Getting started Guide.

  2008/4/30 Mattias Persson [EMAIL PROTECTED]:

  Yep, I'll put it up there!
  
2008/4/30 Peter Neubauer [EMAIL PROTECTED]:
  
  
mmh,
  maybe this should go into the Wiki?

  /peter



  On Wed, Apr 30, 2008 at 1:31 PM, Mattias Persson
  [EMAIL PROTECTED] wrote:
   It could be a problem in maven because wou have to specify the java
source code version (i.e 1.6 or whatever you use). Maven has a
tendency to default to java 1.4. So here is what you'll want to
include in your pom.xml:
  

   build
   
   plugins
   plugin
   
 groupIdorg.apache.maven.plugins/groupId
   
 artifactIdmaven-compiler-plugin/artifactId
   configuration
   source1.5/source
   target1.5/target
   /configuration
   /plugin
   /plugins
   /build

  
  
So in a simple example the entire pom.xml would look like:
  
project
   modelVersion4.0.0/modelVersion
   groupIdmy-groupId/groupId
   artifactIdmy-artifactId/artifactId
   name/name
   version0.1/version
  
   build
   plugins
   plugin
   
 groupIdorg.apache.maven.plugins/groupId
   
 artifactIdmaven-compiler-plugin/artifactId
   configuration
   source1.5/source
   target1.5/target
   /configuration
   /plugin
   /plugins
   /build
  
   dependencies
   dependency
   groupIdorg.neo4j/groupId
   artifactIdneo/artifactId
   version1.0-rc1-SNAPSHOT/version
   /dependency
   /dependencies
  
   repositories
   repository
   idneo4j-public-repository/id
   namePublically available Maven 2 repository
for Neo4j/name
   urlhttp://m2.neo4j.org/url
   snapshots
   enabledtrue/enabled
   /snapshots
   /repository
   /repositories
/project
  
2008/4/28 Emil Eifrem [EMAIL PROTECTED]:
  
  
On Mon, Apr 28, 2008 at 11:16 AM, Philip Jägenstedt [EMAIL 
 PROTECTED] wrote:
   While I've been keeping the Java door open (and gotten a bit 
 enamoured
with it) I am still interested. Maybe I'll even write some 
 code in
Python and some in Java, if that's possible... I'm guessing 
 it's not
possible for two programs to use the sasme datastore at the 
 same time
though, which could potentially be a problem.

  Very true, you can't run two Neo instances (processes, JVMs, etc)
  against the same data store.


  
Also, I'm feeling slightly retarded this morning as I can't 
 figure out
a good place to put my RelationshipTypes enum in Java. 
 Essentially it
needs to be package global, so all I can think of is creating 
 a silly
little class like this:
  
public class Mush {
   public static enum Types implements RelationshipType {
   MUSICBRAINZ,
   ARTISTS,
   ARTIST
   }
}

  You probably want to put it into a file RelTypes.java, which 
 looks like:

enum RelTypes implements RelationshipType
{
   BLAH, BLAH 2
}

  Good luck!

  Cheers,

  --
  Emil Eifrém, CEO [EMAIL PROTECTED]

 Neo Technology, www.neotechnology.com
  Cell: +46 733 462 271 | US: 206 403 8808


 ___
  Neo mailing list
  User@lists.neo4j.org
  https://lists.neo4j.org/mailman/listinfo/user