Re: [Neo4j] Can not recover from a HA failure as a BlockingReadTimeoutException

2012-05-15 Thread Peter Neubauer
Samuel,
is it possible for you to update to 1.7 and rerun your test, so we can
better recreate it?

Cheers,

/peter neubauer

G:  neubauer.peter
S:  peter.neubauer
P:  +46 704 106975
L:   http://www.linkedin.com/in/neubauer
T:   @peterneubauer

If you can write, you can code - @coderdojomalmo
If you can sketch, you can use a graph database - @neo4j


On Tue, May 15, 2012 at 10:23 AM, Samuel Feng okos...@gmail.com wrote:
 Dear List,

 I am using 1.6.1 and embedded HA mode.

 Do u have any ideas that how to resolve below error?

 =2012-05-15 16:07:10,453 main ERROR - [ServletCntxListener.moreStart]
 Failed in start the graph
 java.lang.ExceptionInInitializerError
        at com.hlt.neo.CountryFactory.init(CountryFactory.java:60)
        at com.hlt.neo.CountryFactory.clinit(CountryFactory.java:49)
        at
 com.hlt.online.ServletCntxListener.moreStart(ServletCntxListener.java:44)
        at
 com.gr.online.servlet.InitServletCntxListener.contextInitialized(InitServletCntxListener.java:44)
        at
 org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4205)
        at
 org.apache.catalina.core.StandardContext.start(StandardContext.java:4704)
        at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
        at
 org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
        at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
        at
 org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
        at
 org.apache.catalina.core.StandardService.start(StandardService.java:525)
        at
 org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
 Caused by: java.lang.RuntimeException: Tried to join the cluster, but was
 unable to
        at org.neo4j.kernel.HAGraphDb.startUp(HAGraphDb.java:297)
        at org.neo4j.kernel.HAGraphDb.init(HAGraphDb.java:167)
        at org.neo4j.kernel.HAGraphDb.init(HAGraphDb.java:131)
        at
 org.neo4j.kernel.HighlyAvailableGraphDatabase.init(HighlyAvailableGraphDatabase.java:55)
        at com.gr.neo.Graph.init(Graph.java:64)
        at com.gr.neo.Graph.init(Graph.java:45)
        at com.gr.neo.Graph.clinit(Graph.java:42)
        ... 19 more
 Caused by: java.lang.RuntimeException: Gave up trying to copy store from
 master
        at
 org.neo4j.kernel.HAGraphDb.getFreshDatabaseFromMaster(HAGraphDb.java:237)
        at org.neo4j.kernel.HAGraphDb.startUp(HAGraphDb.java:273)
        ... 25 more
 Caused by: org.neo4j.com.ComException:
 org.jboss.netty.handler.queue.BlockingReadTimeoutException
        at
 org.neo4j.com.DechunkingChannelBuffer.readNext(DechunkingChannelBuffer.java:75)
        at
 org.neo4j.com.DechunkingChannelBuffer.readNextChunk(DechunkingChannelBuffer.java:93)
        at
 org.neo4j.com.DechunkingChannelBuffer.init(DechunkingChannelBuffer.java:59)
        at org.neo4j.com.Client.sendRequest(Client.java:210)
        at org.neo4j.com.Client.sendRequest(Client.java:185)
        at org.neo4j.kernel.ha.MasterClient.copyStore(MasterClient.java:268)
        at
 org.neo4j.kernel.HAGraphDb.copyStoreFromMaster(HAGraphDb.java:425)
        at
 org.neo4j.kernel.HAGraphDb.getFreshDatabaseFromMaster(HAGraphDb.java:224)
        ... 26 more
 Caused by: org.jboss.netty.handler.queue.BlockingReadTimeoutException
        at
 org.jboss.netty.handler.queue.BlockingReadHandler.readEvent(BlockingReadHandler.java:236)
        at
 org.jboss.netty.handler.queue.BlockingReadHandler.read(BlockingReadHandler.java:167)
        at
 org.neo4j.com.DechunkingChannelBuffer.readNext(DechunkingChannelBuffer.java:66)
        ... 33 more
 ___
 NOTICE: THIS MAILING LIST IS BEING SWITCHED TO GOOGLE GROUPS, please register 
 and consider posting at https://groups.google.com/forum/#!forum/neo4j

 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user
___
NOTICE: THIS MAILING LIST IS BEING SWITCHED TO GOOGLE GROUPS, please register 
and consider posting at https://groups.google.com/forum/#!forum/neo4j

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


Re: [Neo4j] Neo4j as a service on Fedora 16

2012-04-19 Thread Peter Neubauer
Georg,
I have no knowledge of Fedora - seems to be a problem in the system
setup rather than neo4j. You are rebooting once and can't start the
server, then rebooting again and it works?

Cheers,

/peter neubauer

G:  neubauer.peter
S:  peter.neubauer
P:  +46 704 106975
L:   http://www.linkedin.com/in/neubauer
T:   @peterneubauer

If you can write, you can code - @coderdojomalmo
If you can sketch, you can use a graph database - @neo4j



On Wed, Apr 18, 2012 at 10:32 AM, Georg Summer georg.sum...@gmail.com wrote:
 Hi everyone,

 I want to have neo4j standalone server running as a service on a Fedora 16 VM.
 I can start the server without any problems from the cmdline (/bin/neo4j 
 start)

 The neo4j install obviously does not work because it uses update-rc.d
 with is a Debian thing. So I replaced it with the Fedora equivalent:
 chkconfig --add ${SERVICE_NAME}
 The service gets installed and written into /etc/rc.d/init.d and
 /etc/rc.d/rcX.d. (written into as in symbolic link to the neo4j
 object)
 using chkconfig I can see that the service is registered to be ON on
 runlevel 3-5.
 I can also start it from there (including through systemd: sudo
 systemctl start neo4j-service.service)

 When I reboot the machine though nothing happens. The server is not
 started and there is nothing written into the
 $NEO4J_HOME/data/log/*.log messages. Also nothing pops up in
 /var/log/messages or /var/log/boot.log or dmesg.
 After the reboot I can without any problems start the server again.

 Am I missing something obvious here?

 best regards,

 Georg
 ___
 NOTICE: THIS MAILING LIST IS BEING SWITCHED TO GOOGLE GROUPS, please register 
 and consider posting at https://groups.google.com/forum/#!forum/neo4j

 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user
___
NOTICE: THIS MAILING LIST IS BEING SWITCHED TO GOOGLE GROUPS, please register 
and consider posting at https://groups.google.com/forum/#!forum/neo4j

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


Re: [Neo4j] large graph visualizations/analytics

2012-04-11 Thread Peter Neubauer
Mmh,
have you tried GraphViz? It's not interactive but might be up to the
task, having possibly less overhead than Gephi ...

Cheers,

/peter neubauer

G:  neubauer.peter
S:  peter.neubauer
P:  +46 704 106975
L:   http://www.linkedin.com/in/neubauer
T:   @peterneubauer

Neo4j                                - Graphs rule.
Program or be programmed - Computer Literacy for kids.
http://foocafe.org/#CoderDojo



On Wed, Apr 11, 2012 at 10:17 AM, Ajinkya Kale kaleajin...@gmail.com wrote:
 Hi, I am trying to load neo4j db in Gephi on a 64-bit windows system with
 6GB RAM running a 64-bit jvm but it runs out of memory .. i tried to
 allocate more memory through the jvm parameters and ended up allocating the
 maximum possible without any luck.
 My graphdb is of the following dimensions :

 nodes 2320895
 type1 relationship edge 50655143
 type2 relationship edge 10632833

 Any suggestions on tools/techniques to visualize and run analytics on
 graphdbs of this scale ?

 --

 Regards,
 Ajinkya
 http://ajinkya.info

 .O.
 ..O
 OOO
 ___
 NOTICE: THIS MAILING LIST IS BEING SWITCHED TO GOOGLE GROUPS, please register 
 and consider posting at https://groups.google.com/forum/#!forum/neo4j

 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user
___
NOTICE: THIS MAILING LIST IS BEING SWITCHED TO GOOGLE GROUPS, please register 
and consider posting at https://groups.google.com/forum/#!forum/neo4j

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


Re: [Neo4j] large graph visualizations/analytics

2012-04-11 Thread Peter Neubauer
Ajinkya,
just talked to one of the Gephi guys,

2.3M nodes and 60M edges...you should buy another computer with
at least 60GB of RAM for Gephi.

Cheers,

/peter neubauer

G:  neubauer.peter
S:  peter.neubauer
P:  +46 704 106975
L:   http://www.linkedin.com/in/neubauer
T:   @peterneubauer

Neo4j                                - Graphs rule.
Program or be programmed - Computer Literacy for kids.
http://foocafe.org/#CoderDojo



On Wed, Apr 11, 2012 at 10:17 AM, Ajinkya Kale kaleajin...@gmail.com wrote:
 Hi, I am trying to load neo4j db in Gephi on a 64-bit windows system with
 6GB RAM running a 64-bit jvm but it runs out of memory .. i tried to
 allocate more memory through the jvm parameters and ended up allocating the
 maximum possible without any luck.
 My graphdb is of the following dimensions :

 nodes 2320895
 type1 relationship edge 50655143
 type2 relationship edge 10632833

 Any suggestions on tools/techniques to visualize and run analytics on
 graphdbs of this scale ?

 --

 Regards,
 Ajinkya
 http://ajinkya.info

 .O.
 ..O
 OOO
 ___
 NOTICE: THIS MAILING LIST IS BEING SWITCHED TO GOOGLE GROUPS, please register 
 and consider posting at https://groups.google.com/forum/#!forum/neo4j

 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user
___
NOTICE: THIS MAILING LIST IS BEING SWITCHED TO GOOGLE GROUPS, please register 
and consider posting at https://groups.google.com/forum/#!forum/neo4j

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


Re: [Neo4j] HA - Unable to read additional data from server sessionid 0x0

2012-03-14 Thread Peter Neubauer
Hi there,
I talked to Chris Gioran and got the following diagnostics:

This* is
what happens when in a quorum of 2 ZK instances one goes down.

(*this == the remaining ZK instance - which is not in standalone mode
- will refuse to accept requests, hence the ZooClient in neo will barf
and die).

Reproduced it in exactly the same manner: started a 2 ZK quorum and 2
neo instances using it, brought down one of the zk servers and
restarted one neo instance - it refused to come online again. If that
is what you did, then that is what happened.

To bring it up again, I think you need to get a 3 - node ZK cluster up
and running again before it will accept new cluster nodes again.

Cheers,

/peter neubauer

G:  neubauer.peter
S:  peter.neubauer
P:  +46 704 106975
L:   http://www.linkedin.com/in/neubauer
T:   @peterneubauer

Neo4j 1.6 released                 - dzone.com/6S4K
The Neo4j Heroku Challenge   - http://neo4j-challenge.herokuapp.com/



On Mon, Mar 12, 2012 at 2:00 PM, Samuel Feng okos...@gmail.com wrote:
 Dear List,

 I am using neo4j 1.6.1 and embedded HA Mode.

 The cluster(with 2 servers) works normally at the beginning. However, after
 one server crashed, the cluster can not start up and keep return below
 logs. Seems both of the two servers are trying to connect each other but
 failed again again.

 I tried to remove the version-2 folder to reset the cluster. But the
 problem exits. Could you please help me how to recover the cluster? Thanks
 a lot

 =2012-03-12 20:58:45,946 main-SendThread(125.65.108.89:2181) INFO  -
 [ClientCnxn$SendThread.startConnect] Opening socket connection to server
 125.65.108.23/125.65.108.23:2181
 =2012-03-12 20:58:45,947 main-SendThread(125.65.108.23:2181) INFO  -
 [ClientCnxn$SendThread.primeConnection] Socket connection established to
 125.65.108.23/125.65.108.23:2181, initiating session
 =2012-03-12 20:58:45,950 main-SendThread(125.65.108.23:2181) INFO  -
 [ClientCnxn$SendThread.run] Unable to read additional data from server
 sessionid 0x0, likely server has closed socket, closing socket connection
 and attempting reconnect
 =2012-03-12 20:58:46,066 main-SendThread(125.65.108.89:2181) INFO  -
 [ClientCnxn$SendThread.startConnect] Opening socket connection to server
 125.65.108.23/125.65.108.23:2181
 =2012-03-12 20:58:46,067 main-SendThread(125.65.108.23:2181) INFO  -
 [ClientCnxn$SendThread.primeConnection] Socket connection established to
 125.65.108.23/125.65.108.23:2181, initiating session
 =2012-03-12 20:58:46,068 main-SendThread(125.65.108.23:2181) INFO  -
 [ClientCnxn$SendThread.run] Unable to read additional data from server
 sessionid 0x0, likely server has closed socket, closing socket connection
 and attempting reconnect
 =2012-03-12 20:58:46,153 main-SendThread(125.65.108.23:2181) INFO  -
 [ClientCnxn$SendThread.startConnect] Opening socket connection to server
 125.65.108.89/125.65.108.89:2181
 =2012-03-12 20:58:46,157 main-SendThread(125.65.108.89:2181) INFO  -
 [ClientCnxn$SendThread.primeConnection] Socket connection established to
 125.65.108.89/125.65.108.89:2181, initiating session
 =2012-03-12 20:58:46,160 main-SendThread(125.65.108.89:2181) INFO  -
 [ClientCnxn$SendThread.run] Unable to read additional data from server
 sessionid 0x0, likely server has closed socket, closing socket connection
 and attempting reconnect
 =2012-03-12 20:58:46,802 main-SendThread(125.65.108.23:2181) INFO  -
 [ClientCnxn$SendThread.startConnect] Opening socket connection to server
 125.65.108.89/125.65.108.89:2181
 =2012-03-12 20:58:46,806 main-SendThread(125.65.108.89:2181) INFO  -
 [ClientCnxn$SendThread.primeConnection] Socket connection established to
 125.65.108.89/125.65.108.89:2181, initiating session
 =2012-03-12 20:58:46,812 main-SendThread(125.65.108.89:2181) INFO  -
 [ClientCnxn$SendThread.run] Unable to read additional data from server
 sessionid 0x0, likely server has closed socket, closing socket connection
 and attempting reconnect

 Thanks a lot,

 Samuel
 ___
 NOTICE: THIS MAILING LIST IS BEING SWITCHED TO GOOGLE GROUPS, please register 
 and consider posting at https://groups.google.com/forum/#!forum/neo4j

 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user
___
NOTICE: THIS MAILING LIST IS BEING SWITCHED TO GOOGLE GROUPS, please register 
and consider posting at https://groups.google.com/forum/#!forum/neo4j

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


Re: [Neo4j] HA - Unable to read additional data from server sessionid 0x0

2012-03-14 Thread Peter Neubauer
Nice,
glad it worked out!

Cheers,

/peter neubauer

G:  neubauer.peter
S:  peter.neubauer
P:  +46 704 106975
L:   http://www.linkedin.com/in/neubauer
T:   @peterneubauer

Neo4j 1.6 released                 - dzone.com/6S4K
The Neo4j Heroku Challenge   - http://neo4j-challenge.herokuapp.com/



On Wed, Mar 14, 2012 at 4:25 PM, Samuel Feng okos...@gmail.com wrote:
 Thanks a lot, Peter.

 I found another way to bring it up again,

 As I thought there should be some incorrect status stored in the graph,
 maybe start up the master instance in Non-HA mode can rectify the status. I
 tried and that works. Now the HA cluster is running normally.

 However, to prevent it happen again, I will setup a 3-node zk cluster.
 Thanks a lot~

 Thanks and Regards,

 Samuel

 2012/3/14 Peter Neubauer peter.neuba...@neotechnology.com

 Hi there,
 I talked to Chris Gioran and got the following diagnostics:

 This* is
 what happens when in a quorum of 2 ZK instances one goes down.

 (*this == the remaining ZK instance - which is not in standalone mode
 - will refuse to accept requests, hence the ZooClient in neo will barf
 and die).

 Reproduced it in exactly the same manner: started a 2 ZK quorum and 2
 neo instances using it, brought down one of the zk servers and
 restarted one neo instance - it refused to come online again. If that
 is what you did, then that is what happened.

 To bring it up again, I think you need to get a 3 - node ZK cluster up
 and running again before it will accept new cluster nodes again.

 Cheers,

 /peter neubauer

 G:  neubauer.peter
 S:  peter.neubauer
 P:  +46 704 106975
 L:   http://www.linkedin.com/in/neubauer
 T:   @peterneubauer

 Neo4j 1.6 released                 - dzone.com/6S4K
 The Neo4j Heroku Challenge   - http://neo4j-challenge.herokuapp.com/



 On Mon, Mar 12, 2012 at 2:00 PM, Samuel Feng okos...@gmail.com wrote:
  Dear List,
 
  I am using neo4j 1.6.1 and embedded HA Mode.
 
  The cluster(with 2 servers) works normally at the beginning. However,
 after
  one server crashed, the cluster can not start up and keep return below
  logs. Seems both of the two servers are trying to connect each other but
  failed again again.
 
  I tried to remove the version-2 folder to reset the cluster. But the
  problem exits. Could you please help me how to recover the cluster?
 Thanks
  a lot
 
  =2012-03-12 20:58:45,946 main-SendThread(125.65.108.89:2181) INFO  -
  [ClientCnxn$SendThread.startConnect] Opening socket connection to server
  125.65.108.23/125.65.108.23:2181
  =2012-03-12 20:58:45,947 main-SendThread(125.65.108.23:2181) INFO  -
  [ClientCnxn$SendThread.primeConnection] Socket connection established to
  125.65.108.23/125.65.108.23:2181, initiating session
  =2012-03-12 20:58:45,950 main-SendThread(125.65.108.23:2181) INFO  -
  [ClientCnxn$SendThread.run] Unable to read additional data from server
  sessionid 0x0, likely server has closed socket, closing socket connection
  and attempting reconnect
  =2012-03-12 20:58:46,066 main-SendThread(125.65.108.89:2181) INFO  -
  [ClientCnxn$SendThread.startConnect] Opening socket connection to server
  125.65.108.23/125.65.108.23:2181
  =2012-03-12 20:58:46,067 main-SendThread(125.65.108.23:2181) INFO  -
  [ClientCnxn$SendThread.primeConnection] Socket connection established to
  125.65.108.23/125.65.108.23:2181, initiating session
  =2012-03-12 20:58:46,068 main-SendThread(125.65.108.23:2181) INFO  -
  [ClientCnxn$SendThread.run] Unable to read additional data from server
  sessionid 0x0, likely server has closed socket, closing socket connection
  and attempting reconnect
  =2012-03-12 20:58:46,153 main-SendThread(125.65.108.23:2181) INFO  -
  [ClientCnxn$SendThread.startConnect] Opening socket connection to server
  125.65.108.89/125.65.108.89:2181
  =2012-03-12 20:58:46,157 main-SendThread(125.65.108.89:2181) INFO  -
  [ClientCnxn$SendThread.primeConnection] Socket connection established to
  125.65.108.89/125.65.108.89:2181, initiating session
  =2012-03-12 20:58:46,160 main-SendThread(125.65.108.89:2181) INFO  -
  [ClientCnxn$SendThread.run] Unable to read additional data from server
  sessionid 0x0, likely server has closed socket, closing socket connection
  and attempting reconnect
  =2012-03-12 20:58:46,802 main-SendThread(125.65.108.23:2181) INFO  -
  [ClientCnxn$SendThread.startConnect] Opening socket connection to server
  125.65.108.89/125.65.108.89:2181
  =2012-03-12 20:58:46,806 main-SendThread(125.65.108.89:2181) INFO  -
  [ClientCnxn$SendThread.primeConnection] Socket connection established to
  125.65.108.89/125.65.108.89:2181, initiating session
  =2012-03-12 20:58:46,812 main-SendThread(125.65.108.89:2181) INFO  -
  [ClientCnxn$SendThread.run] Unable to read additional data from server
  sessionid 0x0, likely server has closed socket, closing socket connection
  and attempting reconnect
 
  Thanks a lot,
 
  Samuel
  ___
  NOTICE: THIS MAILING LIST IS BEING SWITCHED TO GOOGLE

Re: [Neo4j] Anything like a changes feed?

2012-02-21 Thread Peter Neubauer
http://docs.neo4j.org/chunked/snapshot/transactions-events.html

Could that be interesting?

Send from a device with crappy keyboard and autocorrection.

/peter
On Feb 21, 2012 6:17 PM, Johnny Luu johnny@yobistore.com wrote:

 That would be a great feature. Reminds me about CouchDB's changes
 notification.

 Johnny

 On Tue, Feb 21, 2012 at 5:27 PM, Nolan Darilek no...@thewordnerd.info
 wrote:

  I'm specing out an app that looks like a great fit for a graph database,
  and this is the first time I'm considering using raw Neo4J (I.e. not
  using the spatial layer.) A big part of this app involves actively
  engaging users. So if their user node becomes connected to a new task
  node, for instance, they are instantly notified that new tasks are
  available for them.
 
  Is it possible to create a listener that automatically monitors an
  embedded database for changes--new relationships created, relationships
  removed, etc.? I can probably do this out-of-band with a separate
  component, but it'd be awesome if I could do this closer to the database.
 
  Thanks!
  ___
  NOTICE: THIS MAILING LIST IS BEING SWITCHED TO GOOGLE GROUPS, please
  register and consider posting at
  https://groups.google.com/forum/#!forum/neo4j
 
  Neo4j mailing list
  User@lists.neo4j.org
  https://lists.neo4j.org/mailman/listinfo/user
 
 ___
 NOTICE: THIS MAILING LIST IS BEING SWITCHED TO GOOGLE GROUPS, please
 register and consider posting at
 https://groups.google.com/forum/#!forum/neo4j

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

___
NOTICE: THIS MAILING LIST IS BEING SWITCHED TO GOOGLE GROUPS, please register 
and consider posting at https://groups.google.com/forum/#!forum/neo4j

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


Re: [Neo4j] Accessing node properties with batch inserter

2012-02-18 Thread Peter Neubauer
Yes, That sounds right. Could you please file an issue?

Send from a device with crappy keyboard and autocorrection.

/peter
On Feb 17, 2012 4:22 PM, Paul Jackson paul_jack...@g1.com wrote:

 Hi Peter,

 I shouldn't have added that code. I added it as a test to see if that was
 the problem. This code does not delete nor use transactions, yet the
 properties returned are empty. I guess I am using it wrong?

 BatchInserter batchInserter = new BatchInserterImpl(storeDir);
 GraphDatabaseService graph = batchInserter.getGraphDbService();
 Node node = graph.createNode();
 long id = node.getId();
 node.setProperty(MyKey, MyValue);
 MapString,Object properties = batchInserter.getNodeProperties(id);

 Intuition says it should remember the property was added. Bug or user
 error?

 Thanks,
 -Paul

___
NOTICE: THIS MAILING LIST IS BEING SWITCHED TO GOOGLE GROUPS, please register 
and consider posting at https://groups.google.com/forum/#!forum/neo4j

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


Re: [Neo4j] Accessing node properties with batch inserter

2012-02-15 Thread Peter Neubauer
Paul,
that GDB instance you get is NOT supporting deletions or transactions
(it does just ignore them) it's more for reading stuff. See the
JavaDoc for the method:

/**
 *
 * @return a GraphDatabaseService that does not support deletion
and transactions
 */
public GraphDatabaseService getGraphDbService();

When having a Batchinserter open, please do all modifications via it ...

Cheers,

/peter neubauer

G:  neubauer.peter
S:  peter.neubauer
P:  +46 704 106975
L:   http://www.linkedin.com/in/neubauer
T:   @peterneubauer

Neo4j 1.6 released                 - dzone.com/6S4K
The Neo4j Heroku Challenge   - http://neo4j-challenge.herokuapp.com/



On Tue, Feb 14, 2012 at 10:33 PM, Paul A. Jackson paul.jack...@pb.com wrote:
 Just started using the batch inserter and I think I am missing a basic 
 concept.

 This code snippet using Neo 1.5 returns a zero-length map. I would expect it 
 to have a single property (MyKey).

    String storeDir = ./neodb;
    deleteDirectory(new File(storeDir));
    BatchInserter batchInserter = new BatchInserterImpl(storeDir);
    GraphDatabaseService graph = batchInserter.getGraphDbService();
    Transaction transaction = graph.beginTx();
    Node node = graph.createNode();
    long id = node.getId();
    node.setProperty(MyKey, MyValue);
    transaction.success();
    transaction.finish();
    MapString,Object properties = batchInserter.getNodeProperties(id);    // 
 properties is empty

 I added the Transaction stuff for testing, but was expecting that to not be 
 necessary as well.

 Thanks,

 Paul Jackson, Principal Software Engineer
 Pitney Bowes Software
 4200 Parliament Place | Suite 600 | Lanham, MD  20706-1844  USA
 O: 301.918.0850 | M: 703.862.0120 | www.pb.com
 paul.jack...@pb.com

 Every connection is a new opportunityT



 Please consider the environment before printing or forwarding this email. If 
 you do print this email, please recycle the paper.

 This email message may contain confidential, proprietary and/or privileged 
 information. It is intended only for the use of the intended recipient(s). If 
 you have received it in error, please immediately advise the sender by reply 
 email and then delete this email message. Any disclosure, copying, 
 distribution or use of the information contained in this email message to or 
 by anyone other than the intended recipient is strictly prohibited. Any views 
 expressed in this message are those of the individual sender, except where 
 the sender specifically states them to be the views of the Company.


 ___
 NOTICE: THIS MAILING LIST IS BEING SWITCHED TO GOOGLE GROUPS, please register 
 and consider posting at https://groups.google.com/forum/#!forum/neo4j

 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user
___
NOTICE: THIS MAILING LIST IS BEING SWITCHED TO GOOGLE GROUPS, please register 
and consider posting at https://groups.google.com/forum/#!forum/neo4j

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


Re: [Neo4j] How to limit Traverser

2012-02-08 Thread Peter Neubauer
Emil,
there are some good docs at
http://docs.neo4j.org/chunked/snapshot/tutorials-java-embedded-traversal.html#_new_traversal_frameworkthat
you can use.

In your case, you are stopping the traversal but not excluding the nodes
you find from being part of the result. It seems you are using the first
version of the Traversal framework, where there is not only a
StopEvaluator, but even a ReturnEvaluator that determines what to return.

Alternatively, have a look at Cypher (
http://docs.neo4j.org/chunked/snapshot/tutorials-cypher-java.html from
Java) with the LIMIT keyword, see
http://docs.neo4j.org/chunked/snapshot/query-limit.html)

HTH

Cheers,

/peter neubauer

G:  neubauer.peter
S:  peter.neubauer
P:  +46 704 106975
L:   http://www.linkedin.com/in/neubauer
T:   @peterneubauer

Neo4j 1.6 released - dzone.com/6S4K
The Neo4j Heroku Challenge   - http://neo4j-challenge.herokuapp.com/


On Wed, Feb 8, 2012 at 10:58 AM, Emil Dombagolla 
em...@hsenidoutsourcing.com wrote:

 Hi all,

 Please help me.

 I user Traverse API . I want to get node list from the database and that
 should be limited to 2 nodes.(similar Sql limit query). How can i stop
 the traverse when it found 2 nodes.

 i try something as follows but still returns all the nodes found.

 return getRefereneNode().getUnderlyingNode().traverse(Order.BREADTH_FIRST,
 new LimitEvaluator(),
  ReturnableEvaluator.ALL_BUT_START_NODE, RelTypes.TEMP_EMAIL,
 Direction.OUTGOING);

 private class LimitEvaluator implements StopEvaluator{
  @Override
 public boolean isStopNode(TraversalPosition currentPos) {
 return currentPos.returnedNodesCount()=2;
 }
 }
 Please help on this.
 Thanks
 Emil Dombagolla,
 ___
 NOTICE: THIS MAILING LIST IS BEING SWITCHED TO GOOGLE GROUPS, please
 register and consider posting at
 https://groups.google.com/forum/#!forum/neo4j

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

___
NOTICE: THIS MAILING LIST IS BEING SWITCHED TO GOOGLE GROUPS, please register 
and consider posting at https://groups.google.com/forum/#!forum/neo4j

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


Re: [Neo4j] 1.5 question: auto indexes over REST API

2012-02-06 Thread Peter Neubauer
Aseem,
did you make sure you have enabled autoindexing,
http://docs.neo4j.org/chunked/snapshot/auto-indexing.html#auto-indexing-config?

I just added default config in the servers neo4j.properties files, it's the
same in 1.5, see
https://github.com/neo4j/packaging/commit/15a71269f10286f69031c0c939a8c324097a041ffor
the right keys.

Does that work?

Cheers,

/peter neubauer

G:  neubauer.peter
S:  peter.neubauer
P:  +46 704 106975
L:   http://www.linkedin.com/in/neubauer
T:   @peterneubauer

Neo4j 1.6 released - dzone.com/6S4K
The Neo4j Heroku Challenge   - http://neo4j-challenge.herokuapp.com/


On Wed, Jan 25, 2012 at 9:04 PM, Aseem Kishore aseem.kish...@gmail.comwrote:

 Hi guys,

 Sorry if I'm a bit behind the times here ;) -- we're just now upgrading to
 1.5. (But awesome that 1.6 has been released! We can go ahead upgrade to it
 right after this.)

 We use exclusively the REST API. We were excited about auto-indexing in
 1.4, so we used it over the REST API taking advantage of the implementation
 detail (?) that the index name was node_auto_index.

 So e.g. we would query the auto index via:

 GET /db/data/index/node/*node_auto_index*/key/value


 This seems to still work after we upgrade to 1.5, which is good. But I'm
 looking through the 1.5 manual, and I saw this new section:

 http://docs.neo4j.org/chunked/1.5/rest-api-auto-indexes.html


 Which suggests this new syntax:

 GET http://localhost:7474/db/data/index/*auto*/node/key/value


 This seems to be new, but I can't find any issue on GitHub or any email
 about this. I also can't figure out how to use this myself -- as I query
 the REST API, I never get JSON that references this kind of URL. And if I
 try to query with this kind of URL myself, I always get a 404 or 400.

 What's the deal with this?

 Thanks!

 Aseem
 ___
 NOTICE: THIS MAILING LIST IS BEING SWITCHED TO GOOGLE GROUPS, please
 register and consider posting at
 https://groups.google.com/forum/#!forum/neo4j

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

___
NOTICE: THIS MAILING LIST IS BEING SWITCHED TO GOOGLE GROUPS, please register 
and consider posting at https://groups.google.com/forum/#!forum/neo4j

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


Re: [Neo4j] SpringDataNeo4j 2.0 Supernode navigation

2012-01-15 Thread Peter Neubauer
Agelos,
supernode support for these cases will be handled below SDN. Mattias
has been spiking this in
https://github.com/neo4j/community/tree/super-node-support but we have
had no time to merge this in, since the QA on store changes is
non-trivial.

Cheers,

/peter neubauer

Google:    neubauer.peter
Skype:     peter.neubauer
Phone:     +46 704 106975
LinkedIn:  http://www.linkedin.com/in/neubauer
Twitter:    @peterneubauer
Tungle:    tungle.me/peterneubauer

brew install neo4j  neo4j start
heroku addons:add neo4j



On Thu, Jan 12, 2012 at 8:22 PM, Agelos Pikoulas
agelos.pikou...@gmail.com wrote:
 Hello everyone, just watched Michael Hunger on the Spring Data Neo4j
 webinar - thanks Michael.

 Now to the question, its an old problem - the supernode relationship
 navigation:

 Assume a *Movie *node has N.000.000 incoming *LIKES *from *User *nodes, but
 only a few incoming *ACTS_IN *from *Actor* nodes.

 How would we navigate in SDN from *Movie *onto these *ACTS_IN *relationships
  *Actor *nodes via an indexed relationship (eg
 IndexedRelationShipExpander), without stumping onto those 1M *LIKES
 *relationships
 that will put a huge delay on us ?

 Regards

 Agelos
 ___
 NOTICE: THIS MAILING LIST IS BEING SWITCHED TO GOOGLE GROUPS, please register 
 and consider posting at https://groups.google.com/forum/#!forum/neo4j

 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user
___
NOTICE: THIS MAILING LIST IS BEING SWITCHED TO GOOGLE GROUPS, please register 
and consider posting at https://groups.google.com/forum/#!forum/neo4j

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


Re: [Neo4j] Database left in locked state when an exception is thrown during upgrade

2012-01-11 Thread Peter Neubauer
Paul,
I think this is fixed in SNAPSHOT, and 1.6.M03 is coming out this week
hopefully. Could you please try after the release?

Cheers,

/peter neubauer

Google:    neubauer.peter
Skype:     peter.neubauer
Phone:     +46 704 106975
LinkedIn:  http://www.linkedin.com/in/neubauer
Twitter:    @peterneubauer
Tungle:    tungle.me/peterneubauer

brew install neo4j  neo4j start
heroku addons:add neo4j



On Wed, Jan 11, 2012 at 5:37 PM, Paul A. Jackson paul.jack...@pb.com wrote:
 This is not a huge deal, since the real problem is that the database cannot 
 be updated, but I thought I would share in case this can occur in other 
 scenarios.

 In my case, I have a database that I created with build 1.5m02 that I am 
 opening with release 1.5. According to the error message, I must not have 
 shut down the database properly prior to upgrade. If I attempt this a second 
 time in the same process I get a different exception that implies the 
 database is still locked. It seems to me like this operation should have been 
 attempted inside a try block with a finally block that performs an unlock. 
 Here are the stack traces:

 First attempt:
 Caused by: org.neo4j.graphdb.TransactionFailureException: Could not create 
 data source [nioneodb], see nested exception for cause of error
     at 
 org.neo4j.kernel.impl.transaction.TxModule.registerDataSource(TxModule.java:158)
     at org.neo4j.kernel.GraphDbInstance.start(GraphDbInstance.java:105)
     at 
 org.neo4j.kernel.EmbeddedGraphDbImpl.init(EmbeddedGraphDbImpl.java:190)
     at 
 org.neo4j.kernel.EmbeddedGraphDatabase.init(EmbeddedGraphDatabase.java:80)
     at com.g1.dcg.graph.neo4j.NeoGraph.init(NeoGraph.java:128)
     ... 43 more
 Caused by: java.lang.IllegalStateException: Mismatching store version found 
 (Uknown while expecting v0.A.0) and the store is not cleanly shutdown. 
 Recover the database with the previous database version and then attempt to 
 upgrade
     at 
 org.neo4j.kernel.impl.nioneo.store.NeoStore.checkVersion(NeoStore.java:125)
     at 
 org.neo4j.kernel.impl.nioneo.store.CommonAbstractStore.init(CommonAbstractStore.java:104)
     at 
 org.neo4j.kernel.impl.nioneo.store.AbstractStore.init(AbstractStore.java:120)
     at org.neo4j.kernel.impl.nioneo.store.NeoStore.init(NeoStore.java:78)
     at 
 org.neo4j.kernel.impl.nioneo.xa.NeoStoreXaDataSource.init(NeoStoreXaDataSource.java:165)
     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
     at 
 sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
     at 
 sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
     at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
     at 
 org.neo4j.kernel.impl.transaction.XaDataSourceManager.create(XaDataSourceManager.java:77)
     at 
 org.neo4j.kernel.impl.transaction.TxModule.registerDataSource(TxModule.java:152)
     ... 47 more

 Second attempt in same process:
 Caused by: org.neo4j.graphdb.TransactionFailureException: Could not create 
 data source [nioneodb], see nested exception for cause of error
     at 
 org.neo4j.kernel.impl.transaction.TxModule.registerDataSource(TxModule.java:158)
     at org.neo4j.kernel.GraphDbInstance.start(GraphDbInstance.java:105)
     at 
 org.neo4j.kernel.EmbeddedGraphDbImpl.init(EmbeddedGraphDbImpl.java:190)
     at 
 org.neo4j.kernel.EmbeddedGraphDatabase.init(EmbeddedGraphDatabase.java:80)
     at com.g1.dcg.graph.neo4j.NeoGraph.init(NeoGraph.java:128)
     ... 43 more
 Caused by: java.lang.IllegalStateException: Unable to lock store 
 [E:\Spectrum\server\modules\graph\db\graph\neostore], this is usually a 
 result of some other Neo4j kernel running using the same store.
     at 
 org.neo4j.kernel.impl.nioneo.store.CommonAbstractStore.checkStorage(CommonAbstractStore.java:175)
     at 
 org.neo4j.kernel.impl.nioneo.store.CommonAbstractStore.init(CommonAbstractStore.java:103)
     at 
 org.neo4j.kernel.impl.nioneo.store.AbstractStore.init(AbstractStore.java:120)
     at org.neo4j.kernel.impl.nioneo.store.NeoStore.init(NeoStore.java:78)
     at 
 org.neo4j.kernel.impl.nioneo.xa.NeoStoreXaDataSource.init(NeoStoreXaDataSource.java:165)
     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
     at 
 sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
     at 
 sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
     at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
     at 
 org.neo4j.kernel.impl.transaction.XaDataSourceManager.create(XaDataSourceManager.java:77)
     at 
 org.neo4j.kernel.impl.transaction.TxModule.registerDataSource(TxModule.java:152)
     ... 47 more



 Paul Jackson, Principal Software Engineer
 Pitney Bowes Business Insight
 4200 Parliament Place | Suite 600 | Lanham, MD  20706-1844  USA
 O: 301.918.0850 | M: 703.862.0120 | www.pb.com
 paul.jack

Re: [Neo4j] Does the REL creation lock the start+end node(s)?

2012-01-10 Thread Peter Neubauer
Josef,
Yes, N1 is locked during the creation of the relationship. Different than a
table, Neo4j actually stor direct links between the nodes as relationships,
making data-local traversals without index lookups possible. This means
both nodes will be locked during the TX1 .

HTH

/Peter

On Tuesday, January 10, 2012, Josef Holy josef.h...@gmail.com wrote:
  Hello neo4j-ers,

 I have question - when 2 threads (in embedded neo4j mode) want to
concurrently create the following RELs A and B (each within their own
transaction, nodes N1, N2 and N3 existed before):

 Thread 1 - tx1 - N1--RELA--N2
 Thread 2 - tx2 - N1--RELB--N3

 does the node N1 represent critical section? I mean - if Thread 2's tx2
starts later, does it have to wait till Thread 1's tx1 finishes and thus
releases node N1?

 Sorry for asking, but I don't know the neo4j internals and I would
expect, that the creation of relationship wouldn't lock the 2 nodes -
similarly to the relational (SQL) db, where adding rows to M:N
'relationship' table also doesn't lock records in the entity table(s)...

 Please advise...


 Thanks a lot!

 -Josef.

 ___
 NOTICE: THIS MAILING LIST IS BEING SWITCHED TO GOOGLE GROUPS, please
register and consider posting at
https://groups.google.com/forum/#!forum/neo4j

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


-- 

Cheers,

/peter neubauer

Google:neubauer.peter
Skype: peter.neubauer
Phone: +46 704 106975
LinkedIn:  http://www.linkedin.com/in/neubauer
Twitter:@peterneubauer
Tungle:tungle.me/peterneubauer

brew install neo4j  neo4j start
heroku addons:add neo4j
___
NOTICE: THIS MAILING LIST IS BEING SWITCHED TO GOOGLE GROUPS, please register 
and consider posting at https://groups.google.com/forum/#!forum/neo4j

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


Re: [Neo4j] OSX Lion Neo4j Python bindings installation anyone?

2011-12-28 Thread Peter Neubauer
Very cool.

will keep it in mind when and if the OSX installation comes up again.
Thanks for sharing!

Cheers,

/peter neubauer

Google:neubauer.peter
Skype:peter.neubauer
Phone: +46 704 106975
LinkedIn   http://www.linkedin.com/in/neubauer
Twitter      @peterneubauer

brew install neo4j  neo4j start
heroku addons:add neo4j



On Mon, Dec 5, 2011 at 9:18 AM, Aaron Moffatt aja.moff...@gmail.com wrote:
 If anyone needs example code for getting JCC hooked up instead of relying
 on JPipe, my shot at creating bindings got that working:
 https://github.com/OneSaidWho/neo4py

 In addition to the installation process seeming pretty straight forward
 when using JCC, the speed improvement might be beneficial as well.

 Thanks,

 Aaron Moffatt

 On Sun, Dec 4, 2011 at 11:55 PM, Peter Neubauer 
 peter.neuba...@neotechnology.com wrote:

 Hi all,
 it seems the installation of JPype is not trivial on OSX Lion. Has
 anyone been installing the Python bindings on OSX
 (http://docs.neo4j.org/chunked/snapshot/python-embedded.html) and
 would be willing to write down more detailed installation steps?


 http://docs.neo4j.org/chunked/snapshot/python-embedded-installation.html#_installation_on_osx_linux
 would be the place,

 https://github.com/neo4j/python-embedded/blob/master/src/docs/dev/installation.txt
 to edit.

 Thanks!

 /peter neubauer

 GTalk:      neubauer.peter
 Skype       peter.neubauer
 Phone       +46 704 106975
 LinkedIn   http://www.linkedin.com/in/neubauer
 Twitter      http://twitter.com/peterneubauer

 brew install neo4j  neo4j start
 heroku addons:add neo4j
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user

 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user
___
NOTICE: THIS MAILING LIST IS BEING SWITCHED TO GOOGLE GROUPS, please register 
and consider posting at https://groups.google.com/forum/#!forum/neo4j

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


Re: [Neo4j] [neo4j] Running the web admin inside Tomcat

2011-12-27 Thread Peter Neubauer
Thanks Ian for putting this together, good to know for future
reference! Now we need to find a place in the manual to put this in :)

Cheers,

/peter neubauer

Google:neubauer.peter
Skype:peter.neubauer
Phone: +46 704 106975
LinkedIn   http://www.linkedin.com/in/neubauer
Twitter      @peterneubauer

brew install neo4j  neo4j start
heroku addons:add neo4j



On Fri, Dec 9, 2011 at 12:27 PM, Ian Forsey for...@gmail.com wrote:
 Hi Peter,

 I wasn't sure what you meant by test case, since I don't think this
 something that fits in a unit test, but I've created the following repo with
 an example. The readme.MD explains how to build a war with the issue and one
 without. I'm using spring data neo4j, so have included this along with
 spring in the project, but other than that it is pretty bare-bones.

 https://github.com/theon/neo4j-war-with-webadmin
___
NOTICE: THIS MAILING LIST IS BEING SWITCHED TO GOOGLE GROUPS, please register 
and consider posting at https://groups.google.com/forum/#!forum/neo4j

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


Re: [Neo4j] There's already an HA cluster managed by this ZooKeeper cluster

2011-12-23 Thread Peter Neubauer
No,
once a cluster is up, it will be able to recover after being down for a while.

Cheers,

/peter neubauer

Google:neubauer.peter
Skype:peter.neubauer
Phone: +46 704 106975
LinkedIn   http://www.linkedin.com/in/neubauer
Twitter      @peterneubauer

brew install neo4j  neo4j start
heroku addons:add neo4j



On Fri, Dec 23, 2011 at 1:09 PM, Anirudha Ravindra Ghante
anir...@thoughtworks.com wrote:
 Hi Peter,

 We are not trying to run multiple neo4j clusters on same machine.
 Configuration is :
 3 machines : each running a ZK and neo4j server.

 So, does this mean that if one of the nodes goes down,  we have to delete
 the graph.db before restarting the neo4j server again (even with the above
 configuration)?


 On Fri, Dec 23, 2011 at 6:38 AM, Peter Neubauer 
 peter.neuba...@neotechnology.com wrote:

 Anirudha,
 I think this might be a bug that is fixed in Master. Now, the Neo4j
 Coordinator ZK cluster can manage several HA clusters and should not
 give that exception. However, do you want to run multiple clusters
 there? Otherwise, removing the DB and starting fresh so it gets copied
 over from the master is the way to go.

 Cheers,

 /peter neubauer

 Google:neubauer.peter
 Skype:peter.neubauer
 Phone: +46 704 106975
 LinkedIn   http://www.linkedin.com/in/neubauer
 Twitter      @peterneubauer

 brew install neo4j  neo4j start
 heroku addons:add neo4j



 On Fri, Dec 2, 2011 at 3:08 PM, anirudha anir...@thoughtworks.com wrote:
  Hi,
 
  We are trying to setup neo4j in high-availability mode with 3 nodes in
 the
  cluster.
  When we restart any of the neo4j servers, it fails. We get following
  exception:
 
  == neo4j-zookeeper.log ==
  ERROR main-EventThread org.apache.zookeeper.ClientCnxn - Error while
 calling
  watcher
  java.lang.RuntimeException: There's already an HA cluster managed by this
  ZooKeeper cluster
         at
 org.neo4j.kernel.ha.zookeeper.ZooClient.getRoot(ZooClient.java:370)
         at
 
 org.neo4j.kernel.ha.zookeeper.AbstractZooKeeperManager.getAllMachines(AbstractZooKeeperManager.java:194)
         at
 
 org.neo4j.kernel.ha.zookeeper.AbstractZooKeeperManager.getMasterFromZooKeeper(AbstractZooKeeperManager.java:134)
         at
 org.neo4j.kernel.ha.zookeeper.ZooClient.process(ZooClient.java:122)
         at
 
 org.apache.zookeeper.ClientCnxn$EventThread.processEvent(ClientCnxn.java:530)
         at
 org.apache.zookeeper.ClientCnxn$EventThread.run(ClientCnxn.java:506)
 
 
  If we delete the database folder graph.db and then start the server, it
  starts with no exception and syncs the data.
  Am I missing any configuration?
 
  Thanks.
 
  --
  View this message in context:
 http://neo4j-community-discussions.438527.n3.nabble.com/There-s-already-an-HA-cluster-managed-by-this-ZooKeeper-cluster-tp3554731p3554731.html
  Sent from the Neo4j Community Discussions mailing list archive at
 Nabble.com.
  ___
  Neo4j mailing list
  User@lists.neo4j.org
  https://lists.neo4j.org/mailman/listinfo/user
 ___
 NOTICE: THIS MAILING LIST IS BEING SWITCHED TO GOOGLE GROUPS, please
 register and consider posting at
 https://groups.google.com/forum/#!forum/neo4j

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

 ___
 NOTICE: THIS MAILING LIST IS BEING SWITCHED TO GOOGLE GROUPS, please register 
 and consider posting at https://groups.google.com/forum/#!forum/neo4j

 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user
___
NOTICE: THIS MAILING LIST IS BEING SWITCHED TO GOOGLE GROUPS, please register 
and consider posting at https://groups.google.com/forum/#!forum/neo4j

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


Re: [Neo4j] There's already an HA cluster managed by this ZooKeeper cluster

2011-12-16 Thread Peter Neubauer
Anirudha,
do you have a working link to the logs/gist?

Cheers,

/peter neubauer

TC CEO of the year - vote for Emil Eifrém!
http://crunchies2011.techcrunch.com/nominate/

Google:neubauer.peter
Skype:peter.neubauer
Phone: +46 704 106975
LinkedIn   http://www.linkedin.com/in/neubauer
Twitter      @peterneubauer

brew install neo4j  neo4j start
heroku addons:add neo4j



On Wed, Dec 14, 2011 at 2:12 PM, Michael Hunger
michael.hun...@neotechnology.com wrote:
 But it is a cute octocat github 404 :)

 the part w/o the ;cid... works

 https://gist.github.com/1433340

 Cheers

 Michael

 Am 14.12.2011 um 13:18 schrieb Mattias Persson:

 I'm getting a 404 on that link.

 2011/12/6 Michael Hunger michael.hun...@neotechnology.com

 Answer from Mahesh:

 Hi,

 Anirudha is a part of our team.

 We are using 1.5 in a 3 server setup on different physical machines.

 The messages.log from the server failing to start is as follows.
 (https://gist.github.com/1433340;cid=1323211777524-299)
 Here is the messages.log file on the server that is failing

 Hope this helps you help us..

 Cheers...

 Mahesh

 Am 05.12.2011 um 09:03 schrieb Peter Neubauer:

 Hi there,
 what version are you running, any chance you could collect the
 messages.log from the instances and send them over?

 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

 brew install neo4j  neo4j start
 heroku addons:add neo4j



 On Fri, Dec 2, 2011 at 3:08 PM, anirudha anir...@thoughtworks.com
 wrote:
 Hi,

 We are trying to setup neo4j in high-availability mode with 3 nodes in
 the
 cluster.
 When we restart any of the neo4j servers, it fails. We get following
 exception:

 == neo4j-zookeeper.log ==
 ERROR main-EventThread org.apache.zookeeper.ClientCnxn - Error while
 calling
 watcher
 java.lang.RuntimeException: There's already an HA cluster managed by
 this
 ZooKeeper cluster
       at
 org.neo4j.kernel.ha.zookeeper.ZooClient.getRoot(ZooClient.java:370)
       at

 org.neo4j.kernel.ha.zookeeper.AbstractZooKeeperManager.getAllMachines(AbstractZooKeeperManager.java:194)
       at

 org.neo4j.kernel.ha.zookeeper.AbstractZooKeeperManager.getMasterFromZooKeeper(AbstractZooKeeperManager.java:134)
       at
 org.neo4j.kernel.ha.zookeeper.ZooClient.process(ZooClient.java:122)
       at

 org.apache.zookeeper.ClientCnxn$EventThread.processEvent(ClientCnxn.java:530)
       at
 org.apache.zookeeper.ClientCnxn$EventThread.run(ClientCnxn.java:506)


 If we delete the database folder graph.db and then start the server,
 it
 starts with no exception and syncs the data.
 Am I missing any configuration?

 Thanks.

 --
 View this message in context:
 http://neo4j-community-discussions.438527.n3.nabble.com/There-s-already-an-HA-cluster-managed-by-this-ZooKeeper-cluster-tp3554731p3554731.html
 Sent from the Neo4j Community Discussions mailing list archive at
 Nabble.com.
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user

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




 --
 Mattias Persson, [matt...@neotechnology.com]
 Hacker, Neo Technology
 www.neotechnology.com
 ___
 NOTICE: THIS MAILING LIST IS BEING SWITCHED TO GOOGLE GROUPS, please 
 register and consider posting at 
 https://groups.google.com/forum/#!forum/neo4j

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

 ___
 NOTICE: THIS MAILING LIST IS BEING SWITCHED TO GOOGLE GROUPS, please register 
 and consider posting at https://groups.google.com/forum/#!forum/neo4j

 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user
___
NOTICE: THIS MAILING LIST IS BEING SWITCHED TO GOOGLE GROUPS, please register 
and consider posting at https://groups.google.com/forum/#!forum/neo4j

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


Re: [Neo4j] Subgraph isomorphism problem - graph matching problem

2011-12-15 Thread Peter Neubauer
Boris,
Have you given Cypher as a pattern matching language a try,
http://docs.neo4j.org/chunked/snapshot/cypher-query-lang.html

It is kind of superseding the graph matching component.

/peter

Sent from my phone, please excuse typos and autocorrection.
On Dec 14, 2011 4:43 PM, bm boris.m...@optilab.net wrote:

  Hi!

 I tried to use graph mather as a simple subgraph finder... unfortunately it
 doesn't work the way its supposed to.

 1. I create simple graph:

   * Node node1 = graphDb.createNode();
node1.setProperty(ID_KEY, 11);
node1.setProperty(TYPE_KEY, 'E');

Node node2 = graphDb.createNode();
node2.setProperty(ID_KEY, 12);
node2.setProperty(TYPE_KEY, 'V');


Node node3 = graphDb.createNode();
node3.setProperty(ID_KEY, 13);
node3.setProperty(TYPE_KEY, 'V');


Node node4 = graphDb.createNode();
node4.setProperty(ID_KEY, 14);
node4.setProperty(TYPE_KEY, 'E');

Node node5 = graphDb.createNode();
node5.setProperty(ID_KEY, 15);
node5.setProperty(TYPE_KEY, 'E');

Node node6 = graphDb.createNode();
node6.setProperty(ID_KEY, 16);
node6.setProperty(TYPE_KEY, 'E');


node1.createRelationshipTo(node2, RelTypes.INVOLVED);
node2.createRelationshipTo(node4, RelTypes.INVOLVED);
node4.createRelationshipTo(node3, RelTypes.INVOLVED);
node3.createRelationshipTo(node1, RelTypes.INVOLVED);
node2.createRelationshipTo(node6, RelTypes.INVOLVED);
node6.createRelationshipTo(node5, RelTypes.INVOLVED);
node5.createRelationshipTo(node4, RelTypes.INVOLVED);*

 here http://shrani.si/f/5/f7/1DKus39y/picture1.jpgis a picture how it
 looks like.

 2. Then I create simple pattern graph:

  *  PatternNode patternNode1 = new PatternNode();

patternNode1.addPropertyConstraint(TYPE_KEY, new
 ValueMatcherImpl('E'));

PatternNode patternNode2 = new PatternNode();
patternNode2.addPropertyConstraint(TYPE_KEY, new
 ValueMatcherImpl('V'));

PatternNode patternNode3 = new PatternNode();
patternNode3.addPropertyConstraint(TYPE_KEY, new
 ValueMatcherImpl('V'));

PatternNode patternNode4 = new PatternNode();
patternNode4.addPropertyConstraint(TYPE_KEY, new
 ValueMatcherImpl('E'));

PatternNode patternNode5 = new PatternNode();
patternNode5.addPropertyConstraint(TYPE_KEY, new
 ValueMatcherImpl('E'));

PatternNode patternNode6 = new PatternNode();
patternNode6.addPropertyConstraint(TYPE_KEY, new
 ValueMatcherImpl('E'));


patternNode1.createRelationshipTo(patternNode2, Direction.BOTH);
patternNode2.createRelationshipTo(patternNode4, Direction.BOTH);
patternNode1.createRelationshipTo(patternNode3, Direction.BOTH);
patternNode3.createRelationshipTo(patternNode4, Direction.BOTH);*

 link http://shrani.si/f/Y/C6/3AUZFjuo/picture2.jpgto picture.

 3. Finally I try to find graph:

   * PatternMatcher matcher = PatternMatcher.getMatcher();

IterablePatternMatch matches = matcher.match(patternNode1, node1);

 for (PatternMatch match : matches) {
 System.out.println(\nFOUND MATCH: );
 for(PatternElement element: match.getElements())
 System.out.print(element.getNode().getProperty(TYPE_KEY)+
  - +element.getNode().getProperty(ID_KEY)+ );
 }*


 Starting node is always the leftmost node in pictures.

 RESULT:

 FOUND MATCH:
 E - 14 E - 11 V - 13 V - 12
 FOUND MATCH:
 E - 14 E - 11 V - 12 V - 13
 FOUND MATCH:
 E - 14 E - 16 V - 12 V - 13

 First 2 results are fine. Second is just automorphism of first. Third
 result is totaly wrong.

 Is there something I am doing wrong? Will graph-matching ever support*
 true*graph matching?


 Sorry for bad english.

 Have a nice day. :)
 ___
 NOTICE: THIS MAILING LIST IS BEING SWITCHED TO GOOGLE GROUPS, please
 register and consider posting at
 https://groups.google.com/forum/#!forum/neo4j

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

___
NOTICE: THIS MAILING LIST IS BEING SWITCHED TO GOOGLE GROUPS, please register 
and consider posting at https://groups.google.com/forum/#!forum/neo4j

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


Re: [Neo4j] IndexHits extends Iterable is evil

2011-12-13 Thread Peter Neubauer
That indeed is evil, JP.

Could you raise an issue on this please? Please copy even your
explanation in there. Fully agree.

Cheers,

/peter neubauer

TC CEO of the year - vote for Emil Eifrém!
http://crunchies2011.techcrunch.com/nominate/

Google:neubauer.peter
Skype:peter.neubauer
Phone: +46 704 106975
LinkedIn   http://www.linkedin.com/in/neubauer
Twitter      @peterneubauer

brew install neo4j  neo4j start
heroku addons:add neo4j



On Fri, Dec 9, 2011 at 4:02 PM, Jean-Pierre Bergamin
jpberga...@gmail.com wrote:
 Dear neo4j community and developers

 For the second time we stumbled about Iterables that are no Iterables
 in Neo4j. IndexHits e.g. extends Iterator and Iterable and states in
 its documentation that is not really an iterable but always returns
 this in calls to iterator(). So far so good.

 Now when using Spring Data Neo4j, the IndexHits is wrapped and hidden
 behind ClosableIterable and IterableAdapter etc. The user has no idea
 anymore that those IterableWrapper and ClosableIterable things he gets
 back are no iterables at all - well the names tell him of course that
 those things *are* Iterables. This leads to very, very strange
 behaviour like this:

 @Test
 public void ouch() {
        Device d1 = new Device(d1).persist();
        Device d2 = new Device(d2).persist();

        ClosableIterableDevice devices = deviceRepository().findAll();
        assertThat(devices, hasItems(d1));
        assertEquals(1, IteratorUtil.count(devices));
 }

 We add two devices to our DB, but the test clearly states that
 findAll() only returns one (assertEquals(1,
 IteratorUtil.count(devices))).
 As an exercise for the reader: explain why this test misleads you

 Iterable should always return a valid iterator for every call to
 iterator(). Implementing Iterable just to be able to use an iterator
 in a for loop is evil. :-)


 Best regards,
 James
 ___
 NOTICE: THIS MAILING LIST IS BEING SWITCHED TO GOOGLE GROUPS, please register 
 and consider posting at https://groups.google.com/forum/#!forum/neo4j

 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user
___
NOTICE: THIS MAILING LIST IS BEING SWITCHED TO GOOGLE GROUPS, please register 
and consider posting at https://groups.google.com/forum/#!forum/neo4j

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


Re: [Neo4j] allSimplePaths performance

2011-12-13 Thread Peter Neubauer
Cool.
Got that plugin somewhere?

Cheers,

/peter neubauer

TC CEO of the year - vote for Emil Eifrém!
http://crunchies2011.techcrunch.com/nominate/

Google:neubauer.peter
Skype:peter.neubauer
Phone: +46 704 106975
LinkedIn   http://www.linkedin.com/in/neubauer
Twitter      @peterneubauer

brew install neo4j  neo4j start
heroku addons:add neo4j



On Tue, Dec 13, 2011 at 4:52 PM, Petar Dobrev
petar.dob...@myphilanthropedia.org wrote:
 Hey folks,

 just wanted to let you know that I tested it with Neo4j Community 1.6M01
 and can't reproduce the problem. It seems that it got fixed somewhere along
 the way. :)

 Iterating through the depth levels and calling pathsWithLength is still
 faster than allSimplePaths for depths  5 for me, so I'm going to stick to
 it. Even wrote a small plugin for my server to do that.

 Thanks a lot for the great work!

 Best regards,
 Petar.



 On Mon, Nov 28, 2011 at 12:16 PM, Mattias Persson matt...@neotechnology.com
 wrote:

 I think I'd need your dataset to be able to reproduce and fix it, would
 that be possible?

 2011/11/25 Petar Dobrev petar.dob...@myphilanthropedia.org

  On Fri, Nov 25, 2011 at 7:59 PM, Mattias Persson
  matt...@neotechnology.comwrote:
 
  
   Correct, it finds paths on that depth only. If other paths are
  encountered
   along the way they aren't returned.
  
  
 
  However, in the example I provided it misses a path that is present on
 the
  desired depth, that's what I was actually wondering about.
 
  In this example:
 
  The source of the testing program is here:
 https://gist.github.com/1391654
  Output before adding the additional relationship:
  https://gist.github.com/1391668
  Output after adding the additional relationship:
  https://gist.github.com/1391661
 
  shortestPath misses one path (at depth 3) unless an additional
 relationship
  is present, which is unrelated to the paths between the nodes.
 
  Petar
  ___
  Neo4j mailing list
  User@lists.neo4j.org
  https://lists.neo4j.org/mailman/listinfo/user
 



 --
 Mattias Persson, [matt...@neotechnology.com]
 Hacker, Neo Technology
 www.neotechnology.com
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user




 --
 Petar Dobrev
 Engineer
 Philanthropedia
 http://www.myphilanthropedia.org
 ___
 NOTICE: THIS MAILING LIST IS BEING SWITCHED TO GOOGLE GROUPS, please register 
 and consider posting at https://groups.google.com/forum/#!forum/neo4j

 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user
___
NOTICE: THIS MAILING LIST IS BEING SWITCHED TO GOOGLE GROUPS, please register 
and consider posting at https://groups.google.com/forum/#!forum/neo4j

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


Re: [Neo4j] KeyError in python

2011-12-12 Thread Peter Neubauer
Jacopo,
are you still seeing this? It looks like there is some problems with
the Python engine. Have you tried different machines etc?

Cheers,

/peter neubauer

TC CEO of the year - vote for Emil Eifrém!
http://crunchies2011.techcrunch.com/nominate/

Google:neubauer.peter
Skype:peter.neubauer
Phone: +46 704 106975
LinkedIn   http://www.linkedin.com/in/neubauer
Twitter      @peterneubauer

brew install neo4j  neo4j start
heroku addons:add neo4j



On Tue, Dec 6, 2011 at 6:40 PM, Jacopo Farina jacopo1.far...@gmail.com wrote:
 Hi all!
 I'm using python embedded in order to classify all the nodes in a neo4j
 graph previously labeled with properties.
 The graph is about 3.9GB with 7M nodes and 30-40M relationships. I've two
 questions:
 1- the program worked correctly for hours then crashed suddenly with this
 error:
 Traceback (most recent call last):
 File ''assegnaCategoria.py'', line l4, in module
  for n in db.nodes:
 File ''/usr/local/lib/python2.6/dist-packages/neo4)/ _ init _ .py'', line
 44, in _ getitem _
  return sel_.get(items)
 File ''/usr/local/lib/python2.6/dist-packages/neo4)/ _ init _ .py'', line
 6l, in get
 rethrow current exception as(KeyError)
 File ''/usr/local/lib/python2.6/dist-packages/neo4)/util.py'', line 76, in
 rethrow_current_exception_as
 raise ErrorClass(msg)
 KeyError: u'Node[9327924]'

 2-the program is very slow.I started it at 18 pm end it crashed at ~65% of
 the work at 4 am It only reads the database, never changing it, is there a
 way to set it to use the cache intensively? I would put it in /dev/shm/ but
 my RAM is 3GB and the database is bigger.

 The code is this http://codepad.org/leSwqhnc

 Cheers,
 Jacopo
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user
___
NOTICE: THIS MAILING LIST IS BEING SWITCHED TO GOOGLE GROUPS, please register 
and consider posting at https://groups.google.com/forum/#!forum/neo4j

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


Re: [Neo4j] List Redirects Missing Messages

2011-12-11 Thread Peter Neubauer
Hi all,
Everyone should be invited by now to the new list, and there are still
forwarded messages getting stuck as moderated messages like the
discussion James was referring too. Should get better over time, as
the Google Spam filters learn the pattern, and les stuff is coming
from the old list forwarded.

Thanks for your understanding!

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

brew install neo4j  neo4j start
heroku addons:add neo4j



On Sun, Dec 11, 2011 at 8:53 AM, Peter Neubauer
peter.neuba...@neotechnology.com wrote:
 Also,
 I have sent invites you 300 of the members, now I have to wait before being
 able to invite the rest. So not everyone is over yet. Hope to get that
 through during the next few days.

 Sorry for the inconvenience.

 /peter

 Sent from my phone, please excuse typos and autocorrection.

 On Dec 11, 2011 3:13 AM, Andreas Kollegger akolleg...@gmail.com wrote:

 Hi James,

 Thanks for pointing out the problem with the redirects. Here's what we've
 settled on:

 * forward http://neo4j.org/forums/ to the google group
 * create http://neo4j.org/nabble/ as a read-only archive of the mailing
 list

 The existing nabble links should now end up on the archive page instead of
 the forums page.

 Sound ok?

 -Andreas

 On Dec 10, 2011, at 7:07 PM, James Thornton wrote:

  I like the move to Google Groups, and I understand the need for the
  redirect to get everyone moved over. However, there is still some content 
  on
  the old list that isn't on the new one.
 
  For example, on the Feedback after evaluation thread
  (https://groups.google.com/d/topic/neo4j/nciMziChlc8/discussion), Michael's
  last few replies aren't showing up in Google Groups
  (http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-Feedback-after-evaluation-tp3569774p3574631.html),
  presumably because one of his email accounts isn't registered.
 
  And you cannot access the old list's messages anymore because of the
  redirect, so at the moment there is lost content.
 
  Instead of redirecting the entire list, what about redirecting the
  Submit link so that anytime someone tries to write to the old list, they
  are redirected here? This would enable you read the missing messages.
 
  - James
 
 


___
NOTICE: THIS MAILING LIST IS BEING SWITCHED TO GOOGLE GROUPS, please register 
and consider posting at https://groups.google.com/forum/#!forum/neo4j

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


Re: [Neo4j] Feedback after evaluation

2011-12-09 Thread Peter Neubauer
Yes,
I agree. Basically, with Cypher for declarative and optimizable
queries, and Gremlin/Groovy for the power user or fine-tuned
traversals, the REST API could possibly be very minimalistic. Just my
2c.

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

brew install neo4j  neo4j start
heroku addons:add neo4j



On Fri, Dec 9, 2011 at 11:03 AM, James Thornton
james.thorn...@gmail.com wrote:





 On Thursday, December 8, 2011 2:48:59 AM UTC-6, Dmytrii Nagirniak wrote:


 Unfortunately I couldn't see a lot of value in the REST API either.
 The core operations that are taken for granted with native bindings
 (traversals using poor Ruby constructs) would require to execute HTTP
 request (that's what SELECT N+1 in SQL world is).
 Or otherwise I would have to wrap all the logic in the traversal queries.
 It would significantly overcomplicate the system with HTTP handling logic.


 Hi Dmytrii -

 Neo4j Server has a built-in Gremlin scripting engine that enables REST
 clients execute transactions in a single HTTP request.

 Gremlin is a domain-specific language for graphs written in Groovy. If you
 were using a relational database, you would use its domain-specific
 languages, which is SQL. Same idea.

 For the last few weeks, I have been working on Bulbs 0.3, which is a Python
 REST client for Neo4j Server, and I has a library of Gremlin templates in a
 YAML file. The Python methods do named variable substitution on the Gremlin
 templates and then execute them via the Neo4j Server Gremlin extension.

 Here's an example:

 gremlin.yaml
 https://gist.github.com/1450859

 element.py
 https://gist.github.com/1450871

 You can see the create_indexed_vertex Gremlin script has JSON args. Python
 lists and dicts are converted to JSON, and then on the server side, the
 Gremlin script converts them into Groovy maps and lists.

 Marko is working on adding the JSONSlurper library import to Gremlin so you
 won't have to do the import each time
 (https://github.com/tinkerpop/gremlin/issues/259).


 So I decided to write another REST library
 (http:://github.com/dnagir/morpheus),
 but then gave up realising that you just cannot have a proper abstraction
 over HTTP.
 (I'll probably kill off that repo).

 Groovy is pretty simple. Consider reviving Morpheus and using Gremlin for
 scripting -- you'll get all the power of native Ruby and Neo4j without the
 Java.

 When Bulbs 0.3 is released, I'll post the full gremlin.yaml, and you should
 be able to use it in Ruby without any mods since it's just YAML.

 - James








 Also there are no decent HTTP restful clients. The only one is neography -
 that works pretty well, but doesn't give me any abstraction similar to
 neo4j.rb.
 There is also neology. I declare it dead, I couldn't even run tests
 because a dependent gem was removed from the author's own github repository.
 So I even had no way to fix any issues there.

 Last one - architect4r - good idea behind. But the abstractions are leaky.
 You can't make system more or less performant without resorting to HTTP.
 I also did minor contribution to it (accepted PR). But since then the
 author never replied to my tweets, neither he replied to emails.
 Maybe he's just sick or something else, but that's what we have.
 And there were failing specs all over the place.

 So I decided to write another REST library
 (http:://github.com/dnagir/morpheus), but then gave up realising that you
 just cannot have a proper abstraction over HTTP.
 (I'll probably kill off that repo).


 So all in all, to summarise: I am giving up on neo4j because it forces me
 into Java world to leverage its full power.
 I could have agreed on that if I would be a Java dev. But there is nothing
 in this world that can convince me to choose Java instead of Ruby (maybe
 other langs in the future).

 But what DO have to mention is the dedication of people around neo4j.
 Everybody tried their best to help.
 And that feels like everybody within Neo Technologies has common vision
 and is really passionate and keen to help.
 I can't remember any other company that would be so dedicated.

 I would really love to use neo4j, but unfortunately I can't do that until
 it will be available as native binding for C Ruby.

 And as a lost note, I want to say THANKS to the neo4j community for the
 great and amazing support you all guys give.

 Cheers,
 Dmytrii
 http://www.ApproachE.com


 ___
 NOTICE: THIS MAILING LIST IS BEING SWITCHED TO GOOGLE GROUPS, please
 register and consider posting at
 https://groups.google.com/forum/#!forum/neo4j

 Neo4j mailing list
 us...@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user
___
NOTICE: THIS MAILING LIST IS BEING SWITCHED TO GOOGLE GROUPS, please register 
and consider posting at https

[Neo4j] Fwd: Re: [community] * Added Transaction#acquireWriteLock/#acquireReadLock which makes it possible to manually (0b6fae7)

2011-12-09 Thread Peter Neubauer
Fyi

/peter

Sent from my phone, please excuse typos and autocorrection.
-- Forwarded message --
From: Andres Taylor 
reply+c-783311-7909350cb76ca73f513b4c9dfc81fae738eba3b4-591...@reply.github.com

Date: Dec 9, 2011 11:33 PM
Subject: Re: [community] * Added
Transaction#acquireWriteLock/#acquireReadLock which makes it possible to
manually (0b6fae7)
To: Neo4j build server buildser...@neotechnology.com

Lovely! Different isolation levels, here we come!

---
Reply to this email directly or view it on GitHub:
https://github.com/neo4j/community/commit/0b6fae72242e261e8504b33ee2bafce439858d4e#commitcomment-783311
___
NOTICE: THIS MAILING LIST IS BEING SWITCHED TO GOOGLE GROUPS, please register 
and consider posting at https://groups.google.com/forum/#!forum/neo4j

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


Re: [Neo4j] Neo4jClient - Query optmised

2011-12-08 Thread Peter Neubauer
nice,
thanks! Will prepare the testcases for the other case you were asking about.

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

brew install neo4j  neo4j start
heroku addons:add neo4j



On Thu, Dec 8, 2011 at 5:14 AM, Romiko Derbynew
romiko.derby...@readify.net wrote:
 Finally thanks to Peter and Marko, the .Net Neo4jClient code has been 
 optimised to use short hand version of in('') and out('').
 ChangeSet is http://hg.readify.net/neo4jclient/changeset/91ef447a9053
 ___
 NOTICE: THIS MAILING LIST IS BEING SWITCHED TO GOOGLE GROUPS, please register 
 and consider posting at https://groups.google.com/forum/#!forum/neo4j

 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user
___
NOTICE: THIS MAILING LIST IS BEING SWITCHED TO GOOGLE GROUPS, please register 
and consider posting at https://groups.google.com/forum/#!forum/neo4j

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


Re: [Neo4j] println and Table Projections

2011-12-08 Thread Peter Neubauer
Started to set it up here: https://github.com/neo4j/gremlin-plugin/issues/5

Feel free to add stuff to it.

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

brew install neo4j  neo4j start
heroku addons:add neo4j



On Thu, Dec 8, 2011 at 12:58 AM, Romiko Derbynew
romiko.derby...@readify.net wrote:
 Hi,

 Thanks for the tips, will see if I can change the client to use the new 
 format. Indeed, let me try isolate the problems with more simpler queries. I 
 have built a test case below, forgive me if I made it to complex.

 Friend = HasPet = Pet = HasCareTaker = CareTaker
 Friend = HasPet = Pet = HasCareTaker = CareTaker
 Friend

 Test Case Script Setup
 props = [:];rootNode= g.addVertex(props);props[Name] = John;friendNode1 = 
 g.addVertex(props);myRelation = g.addEdge(rootNode, friendNode1, 
 'AllFriends');props[Name] = Jack;friendNode2 = 
 g.addVertex(props);myRelation = g.addEdge(rootNode, friendNode2, 
 'AllFriends');props[Name] = Jill;friendNode3 = 
 g.addVertex(props);myRelation = g.addEdge(rootNode, friendNode3, 
 'AllFriends');props[Name] = ScoobieDoo;petNode1 = 
 g.addVertex(props);myRelation = g.addEdge(friendNode1, 
 petNode1,'HasPet');props[Name] = Garfield;petNode2 = 
 g.addVertex(props);myRelation = g.addEdge(friendNode2, 
 petNode2,'HasPet');props[Name] = Bob;careTakerNode1 = 
 g.addVertex(props);myRelation = g.addEdge(petNode1, 
 careTakerNode1,'HasCareTaker');props[Name] = Harry;careTakerNode2 = 
 g.addVertex(props);myRelation = g.addEdge(petNode2, 
 careTakerNode2,'HasCareTaker')

 Query - Works, but does not have Jill in the table.
 rootNode.out('AllFriends').as('Friend').ifThenElse{it.out('HasPet').hasNext()}{it.out('HasPet')}{it}.as('Pet').out('HasCareTaker').as('CareTaker').table(new
  Table()){it['Name']}{it['Name']}{it['Name']}.cap

 Output
 [[Friend:Jack, Pet:Garfield, CareTaker:Harry], [Friend:John, Pet:ScoobieDoo, 
 CareTaker:Bob]]

 Attempted Query - Does not work - trying to get Jill (Notice I am trying to 
 use println)
 rootNode.out('AllFriends').as('Friend').ifThenElse{it.out('HasPet').hasNext()}{it.out('HasPet')}{println
  ${it} Unknown}.as('Pet').out('HasCareTaker').as('CareTaker').table(new 
 Table()){it['Name']}{it['Name']}{it['Name']}.cap

 Desired Output
 [[Friend:Jack, Pet:Garfield, CareTaker:Harry], [Friend:John, Pet:ScoobieDoo, 
 CareTaker:Bob], [Friend:Jill, Pet:unknown, CareTaker:unknown]]]

 If I can get this working, it means we can have allot more performance from 
 queries without doing separate queries if we have a powerful table projection 
 model, since I rely on the REST API, I feel the table projections is going to 
 be our core method of joining results in one call, so the idea of left/right 
 joins etc.

 -Original Message-
 From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On 
 Behalf Of Marko Rodriguez
 Sent: Wednesday, 7 December 2011 7:07 PM
 To: Neo4j user discussions
 Cc: ne...@googlegroups.com
 Subject: Re: [Neo4j] println and Table Projections

 Hi,

 Peter brings up a good point. Its hard for us to parse complex queries and 
 see where Exceptions are happening. If you can isolate the problem via a 
 simpler traversal, that would be best for us -- and our little baby brains.

 Also, note the following syntax optimizations for your traversal:
        1. outE[[label:'HOSTS']].inV --- out('HOSTS')
        2. Similarly, inE[[label:'X']].outV - in('X')

 Using out() and in() is much more efficient (faster) and more concise. Unless 
 you plan to reason on the properties of an edge, then there is no reason to 
 use outE.inV style syntax as out will do the full vertex-to-vertex jump for 
 you.

 HTH,
 Marko.

 http://markorodriguez.com

 On Dec 7, 2011, at 1:00 AM, Peter Neubauer wrote:

 Mmh,
 I was thinking on how to return the contents of the output stream, I
 am not quite sure how to return that. What woudl be a good format for
 you?

 Also could you reduce this into a small testcase that I can work on?

 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

 brew install neo4j  neo4j start
 heroku addons:add neo4j



 On Wed, Dec 7, 2011 at 8:10 AM, Romiko Derbynew
 romiko.derby...@readify.net wrote:
 Hi,

 I have this statement.
 g.v('0').outE[[label:'HOSTS']].inV.filter{
 it['Key'].equalsIgnoreCase('romikoagency')
 }.inE[[label:'USER_BELONGS_TO']].outV.filter{
 it['Username'].equalsIgnoreCase('romiko.derbynew')
 }.ifThenElse{it.outE[[label:'USER_LINKED_TO_CENTRE']].inV.hasNext()}{
 it.outE[[label:'USER_LINKED_TO_CENTRE']].inV.Name}{println ${it}
 Unknown}.as('Centre')

 I then take this query and do a table projection, however I get the 
 following error.
 println java.lang.String cannot be cast

Re: [Neo4j] TinkerPop Stack Release

2011-12-08 Thread Peter Neubauer
Thanks Marko,
will try to get Gremlin 1.4 into Neo4j ASAP, hopefully after the
weekend. Good work!

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

brew install neo4j  neo4j start
heroku addons:add neo4j



On Thu, Dec 8, 2011 at 4:52 PM, Marko Rodriguez okramma...@gmail.com wrote:
 Hello,

 Yesterday TinkerPop did another stable release. This release depends on Neo4j 
 1.5. Here are the notes for those that are interested:

        New homepage design: http://tinkerpop.com

        Blueprints 1.1 (Blueberry):
                https://github.com/tinkerpop/blueprints/wiki/Release-Notes
        Pipes 0.9 (Sink):
                https://github.com/tinkerpop/pipes/wiki/Release-Notes
        Gremlin 1.4 (Ain't No Thing But a Chicken Wing):
                https://github.com/tinkerpop/gremlin/wiki/Release-Notes
        Frames 0.6 (Truss):
                https://github.com/tinkerpop/frames/wiki/Release-Notes
        Rexster 0.7 (Brian)
                https://github.com/tinkerpop/rexster/wiki/Release-Notes
                Rexster-Kibbles 0.7 (http://rexster-kibbles.tinkerpop.com)


 PLEASE READ THE FOLLOWING NOTES:
        1. Be aware that old rexster.xml files will not work with Rexster 0.7. 
 The tag graph-file has been changed to graph-location.
        2. Realize that when you download Gremlin, there are two versions to 
 pick from --- Groovy and Scala.
                - Gremlin Groovy is what everyone is familiar with.
                - Gremlin Scala is making its debut as an experiment in 
 exposing the Gremlin style in other JVM languages besides Groovy. (thank you 
 Zach Cox)
                - Gremlin Java exists (via Maven2 or raw .jar) for those 
 wanting to do the Gremlin style in pure Java -or- add Gremlin to another JVM 
 language.
                - See: 
 https://github.com/tinkerpop/gremlin/wiki/JVM-Language-Implementations
        3. Pipes no longer depends on Blueprints. All the graph specific pipes 
 have been moved to Gremlin. Pipes is simply a generic data flow framework now.
                - depend on gremlin-java if you want to use Blueprints 
 specific pipes.

 Enjoy!,
 Marko.

 http://markorodriguez.com

 ___
 NOTICE: THIS MAILING LIST IS BEING SWITCHED TO GOOGLE GROUPS, please register 
 and consider posting at https://groups.google.com/forum/#!forum/neo4j

 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user
___
NOTICE: THIS MAILING LIST IS BEING SWITCHED TO GOOGLE GROUPS, please register 
and consider posting at https://groups.google.com/forum/#!forum/neo4j

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


Re: [Neo4j] [neo4j] Running the web admin inside Tomcat

2011-12-08 Thread Peter Neubauer
Mmh, thanks for the feedback! This sounds like a note in the docs, or
some example project setup to make sure this is documented somewhere.
Care to set up a maven project with a testcase that we could pull into
the main build system to avoid further problems? I would like to have
a WAR based project anyway in order to demonstrate servlet-based use
of Neo4j wich I could add in there ...

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

brew install neo4j  neo4j start
heroku addons:add neo4j



On Thu, Dec 8, 2011 at 6:57 PM, Ian Forsey for...@gmail.com wrote:
 It's ok, I figured a work around for this.

 Maven was creating a WAR with the web admin JARs in WEB-INF/lib. If I
 instead extracted the web admin static JAR so the contents were directly in
 the WAR, it worked.

 I had to first tell maven not to package the JAR by specifying provided as
 the scope.

         dependency
             groupIdorg.neo4j.app/groupId
             artifactIdneo4j-server/artifactId
             version1.5/version
             classifierstatic-web/classifier
             scopeprovided/scope
         /dependency

 Then used the maven unpack dependencies plugin to unpack the JAR into the
 WAR:

             plugin
                 groupIdorg.apache.maven.plugins/groupId
                 artifactIdmaven-dependency-plugin/artifactId
                 version2.4/version
                 executions
                     execution
                         goals
                             goalunpack-dependencies/goal
                         /goals
                         phaseprocess-resources/phase
                     /execution
                 /executions
                 configuration
                     includeGroupIdsorg.neo4j.app/includeGroupIds
                     includeArtifactIdsneo4j-server/includeArtifactIds
                     includeClassifiersstatic-web/includeClassifiers
                     includeswebadmin-html/**/includes

 outputDirectorytarget/graphdemo-1.0/WEB-INF/classes/outputDirectory
                 /configuration
             /plugin
___
NOTICE: THIS MAILING LIST IS BEING SWITCHED TO GOOGLE GROUPS, please register 
and consider posting at https://groups.google.com/forum/#!forum/neo4j

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


Re: [Neo4j] println and Table Projections

2011-12-07 Thread Peter Neubauer
Mmh,
I was thinking on how to return the contents of the output stream, I
am not quite sure how to return that. What woudl be a good format for
you?

Also could you reduce this into a small testcase that I can work on?

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

brew install neo4j  neo4j start
heroku addons:add neo4j



On Wed, Dec 7, 2011 at 8:10 AM, Romiko Derbynew
romiko.derby...@readify.net wrote:
 Hi,

 I have this statement.
 g.v('0').outE[[label:'HOSTS']].inV.filter{ 
 it['Key'].equalsIgnoreCase('romikoagency') 
 }.inE[[label:'USER_BELONGS_TO']].outV.filter{ 
 it['Username'].equalsIgnoreCase('romiko.derbynew') 
 }.ifThenElse{it.outE[[label:'USER_LINKED_TO_CENTRE']].inV.hasNext()}{it.outE[[label:'USER_LINKED_TO_CENTRE']].inV.Name}{println
  ${it} Unknown}.as('Centre')

 I then take this query and do a table projection, however I get the following 
 error.
 println java.lang.String cannot be cast to com.tinkerpop.blueprints.pgm.Vertex

 Is there a better way to do this then? I want to reduce our calls to the DB 
 for performance and finding it a bit tough wrapping everything into one  
 query. Currently the above query is split into two different queries.

 Much appreciated.
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


[Neo4j] Neo4j for a CMS backend

2011-12-07 Thread Peter Neubauer
Hi folks,
thought this might be interesting for some of you ...
http://www.dzone.com/links/r/why_im_pretty_excited_about_using_neo4j_for_a_cmd.html

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

brew install neo4j  neo4j start
heroku addons:add neo4j
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] Neo4j for a CMS backend

2011-12-07 Thread Peter Neubauer
Haha,
sorry, my bad. I meant CMDB actually :) Thanks for pointing that out Axel!

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

brew install neo4j  neo4j start
heroku addons:add neo4j



On Wed, Dec 7, 2011 at 9:30 AM, Axel Morgner a...@morgner.de wrote:
 Hi Peter,

 seems like you confused CMDB (Configuration Management Database) with
 CMS (Content Management System)? While Neo4j is perfect for building
 both, the use cases don't have very much in common ...

 Greetings

 Axel


 Am 07.12.2011 09:26, schrieb Peter Neubauer:
 Hi folks,
 thought this might be interesting for some of you ...
 http://www.dzone.com/links/r/why_im_pretty_excited_about_using_neo4j_for_a_cmd.html

 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

 brew install neo4j  neo4j start
 heroku addons:add neo4j
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user


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


Re: [Neo4j] Cypher 3 Trees

2011-12-07 Thread Peter Neubauer
Mmh,
I would like to see that I can specify the stem of the tree as a
path and then get leaf nodes out from that, something like

START root = node(0)
MATCH stem=root-(dir?*), stem-[:LEAF]-leaf
WHERE all(x in nodes(stem)
WHERE x.importance  30)
RETURN leaf, stem

Does that make sense?

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

brew install neo4j  neo4j start
heroku addons:add neo4j



On Wed, Dec 7, 2011 at 2:53 PM, Andres Taylor
andres.tay...@neotechnology.com wrote:
 A subset of the graphs are trees, and they have a few problems that are
 specific for them. I'm right now planning what needs to be added to Cypher
 to make it play nice with your tree structures.

 I'd love to know if you have hierarchical data, and what queries you do and
 would like to do. Doesn't matter if you use Cypher or not.

 Thanks!

 Andrés
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] With rest,how to get the root URI

2011-12-07 Thread Peter Neubauer
Ahh yes,
Good call!

/peter

Sent from my phone, please excuse typos and autocorrection.
On Dec 7, 2011 4:40 PM, maxdemarzi maxdema...@gmail.com wrote:

 http://docs.neo4j.org/chunked/milestone/rest-api-service-root.html

 The Reference Node:

 {
  relationship_index : http://localhost:7474/db/data/index/relationship
 ,
  node : http://localhost:7474/db/data/node;,
  relationship_types : http://localhost:7474/db/data/relationship/types
 ,
  neo4j_version : 1.6.M01,
  batch : http://localhost:7474/db/data/batch;,
  extensions_info : http://localhost:7474/db/data/ext;,
  node_index : http://localhost:7474/db/data/index/node;,
  reference_node : http://localhost:7474/db/data/node/107;,
  extensions : {
  }
 }

 Which reminds me that I need to update neograpy since I simply assume the
 root is node 0, but it seems that isn't always the case.

 --
 View this message in context:
 http://neo4j-community-discussions.438527.n3.nabble.com/With-rest-how-to-get-the-root-URI-tp3566691p3567770.html
 Sent from the Neo4j Community Discussions mailing list archive at
 Nabble.com.
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user

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


[Neo4j] Switching mailinglist during the weekend to Google Groups

2011-12-07 Thread Peter Neubauer
Hi all,
it turns out the Google Apps for you Domain Groups are not showing up
in the central Google Index. That means we will switch this weekend to
https://groups.google.com/forum/#!forum/neo4j instead.

Currently, every mail to this list is forwarded to the new Google
Group, and this will stay so. However, you all will get a notice that
you are added to the new list sometime this week, and we are setting
up an autoresponse saying

NOTICE: THIS MAILING LIST IS BEING SWITCHED TO GOOGLE GROUPS, please
register and consider posting at
https://groups.google.com/forum/#!forum/neo4j

This list will be open for another week or so, so we can make sure
everything is flowing smoothly, but then it will be put in readonly
mode.

Sorry for the inconvenience everyone!


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

brew install neo4j  neo4j start
heroku addons:add neo4j
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] [Neo4j-User] Queries about HA

2011-12-06 Thread Peter Neubauer
Samuel,
I would recommend HA for your usecase, since then the Neo4j cluster
will handling new neo4j instances appearing and copying data etc. Look
at http://docs.neo4j.org/chunked/snapshot/ha.html for setup docs.

There seems to be some interest in RMI remoting to neo4j. However, we
think this is not the ultimate way to go in the long run since it is
Java-centric and still not fast and stable enough for want we want to
achieve. However, if the community finds it useful, I am all up for
someone stepping up and invest the last mile to make it good, maybe
put it on GIThub for easier collaboration, of course.

Tobias original code is at
https://svn.neo4j.org/components/remote-graphdb/trunk/, and the API
should not have moved terribly out of sync, so I guess it is not a LOT
of work to at least get it working.

Anyone?

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

brew install neo4j  neo4j start
heroku addons:add neo4j



On Tue, Dec 6, 2011 at 4:43 AM, Samuel Feng okos...@gmail.com wrote:
 Dear List,

 I'm using neo4j 1.5GA and using embeddedGraphDatabase to access the graph.
 Now the graph size is around 4G.

 Now I would like to try HA mode and have several questions.

 1) Can I access the graph in some kind of remote mode? So that I can use
 many tomcat servers to access the graph remotely and do not need to change
 any code. I understand neo4j can run as a server, however, we can only use
 REST api to accessing the neo4j server, this will cause many many code
 changes for me. Please correct me if I have any misunderstanding.

 Seems there is a neo4j-remote-graphdb component which uses RMI to access a
 graph remotely. BUT in the wiki
 http://components.neo4j.org/neo4j-remote-graphdb/stable/, you mentioned The
 implementation is not speedy enough to be used as the main access channel
 to a Graph Database for actual applications.

 2) If I use neo4j embedded in HA mode, say, I have two neo4j instances(A 
 B) running, When instance A crashed, B continues to work and has many
 writes on it. Then Server A is recovered but it can not attach itself to
 the cluster as the wrong data version. So I need to manually replace the
 instance A's data using B's.

 But the graph size is around 4G, I have to copy all the 4G data to server
 A? Or any other simple and fast ways?

 Thanks and Regards,

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

 --
 You received this message because you are subscribed to the Google Groups 
 Neo4j User Discussions group.
 To post to this group, send email to u...@neo4j.org.
 To unsubscribe from this group, send email to user+unsubscr...@neo4j.org.
 For more options, visit this group at 
 http://groups.google.com/a/neo4j.org/group/user/?hl=en.

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


Re: [Neo4j] [Neo4j-User] Re: org.neo4j.graphdb.TransactionFailureException: Could not create data source lucene[lucene]

2011-12-06 Thread Peter Neubauer
Ajinkya,
thanks for pointing this out. Killed and forwarded the wiki page.

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

brew install neo4j  neo4j start
heroku addons:add neo4j



On Tue, Dec 6, 2011 at 10:34 AM, ajinkyar kaleajin...@gmail.com wrote:
 Thanks for the suggestion .. I will give that a try.
 I found the reference here
 http://wiki.neo4j.org/content/Indexing_with_IndexService

 On Tue, Dec 6, 2011 at 4:10 AM, Michael Hunger [via Neo4j Community
 Discussions] ml-node+s438527n3563820...@n3.nabble.com wrote:

 You don't need LuceneIndexService, where did you find the documentation
 that said to use the old index service? We would like to update that.

 just

 IndexNode myIndex = graphDb.index().forNodes(indexName);
 index.add(node, key, value);
 index.get(key,value);
 index.query(query);

 etc.

 see: http://docs.neo4j.org/chunked/milestone/indexing.html

 Cheers,

 Michael

 Am 06.12.2011 um 09:50 schrieb ajinkyar:

  In that case I cannot use LuceneIndexService ... can you please suggest
 me a
  way so that I can use LuceneIndexService ?
 
  With neo4j-lucene-index-1.6-SNAPSHOT.jar and lucene-core-3.1.0.jar I am
 not
  able to use LuceneIndexService ..
 
 
 
  --
  View this message in context:
 http://neo4j-community-discussions.438527.n3.nabble.com/org-neo4j-graphdb-TransactionFailureException-Could-not-create-data-source-lucene-lucene-tp3560554p3563787.html

  Sent from the Neo4j Community Discussions mailing list archive at
 Nabble.com.
  ___
  Neo4j mailing list
  [hidden email] http://user/SendEmail.jtp?type=nodenode=3563820i=0
  https://lists.neo4j.org/mailman/listinfo/user

 ___
 Neo4j mailing list
 [hidden email] http://user/SendEmail.jtp?type=nodenode=3563820i=1
 https://lists.neo4j.org/mailman/listinfo/user


 --
  If you reply to this email, your message will be added to the discussion
 below:

 http://neo4j-community-discussions.438527.n3.nabble.com/org-neo4j-graphdb-TransactionFailureException-Could-not-create-data-source-lucene-lucene-tp3560554p3563820.html
  To unsubscribe from org.neo4j.graphdb.TransactionFailureException: Could
 not create data source lucene[lucene], click 
 herehttp://neo4j-community-discussions.438527.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=3560554code=a2FsZWFqaW5reWFAZ21haWwuY29tfDM1NjA1NTR8ODk3NzQzMjIx
 .
 NAMLhttp://neo4j-community-discussions.438527.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.InstantMailNamespacebreadcrumbs=instant+emails%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml




 --

 Regards,
 Ajinkya
 http://ajinkya.info


 .O.
 ..O
 OOO


 --
 View this message in context: 
 http://neo4j-community-discussions.438527.n3.nabble.com/org-neo4j-graphdb-TransactionFailureException-Could-not-create-data-source-lucene-lucene-tp3560554p3563862.html
 Sent from the Neo4j Community Discussions mailing list archive at Nabble.com.
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user

 --
 You received this message because you are subscribed to the Google Groups 
 Neo4j User Discussions group.
 To post to this group, send email to u...@neo4j.org.
 To unsubscribe from this group, send email to user+unsubscr...@neo4j.org.
 For more options, visit this group at 
 http://groups.google.com/a/neo4j.org/group/user/?hl=en.

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


Re: [Neo4j] [Neo4j-User] Re: org.neo4j.graphdb.TransactionFailureException: Could not create data source lucene[lucene]

2011-12-06 Thread Peter Neubauer
Yes.
Let me know your address, and I will send one. Green with a white
Rabbit on it. Seriously.

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

brew install neo4j  neo4j start
heroku addons:add neo4j



On Tue, Dec 6, 2011 at 11:09 AM, ajinkyar kaleajin...@gmail.com wrote:
 That reference cost us hell lotta time!! Do we get a free neo4j t-shirt for
 pointing that out ;) !?

 On Tue, Dec 6, 2011 at 5:04 AM, Peter Neubauer [via Neo4j Community
 Discussions] ml-node+s438527n3563901...@n3.nabble.com wrote:

 Ajinkya,
 thanks for pointing this out. Killed and forwarded the wiki page.

 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

 brew install neo4j  neo4j start
 heroku addons:add neo4j



 On Tue, Dec 6, 2011 at 10:34 AM, ajinkyar [hidden 
 email]http://user/SendEmail.jtp?type=nodenode=3563901i=0
 wrote:

  Thanks for the suggestion .. I will give that a try.
  I found the reference here
  http://wiki.neo4j.org/content/Indexing_with_IndexService
 
  On Tue, Dec 6, 2011 at 4:10 AM, Michael Hunger [via Neo4j Community
  Discussions] [hidden 
  email]http://user/SendEmail.jtp?type=nodenode=3563901i=1
 wrote:
 
  You don't need LuceneIndexService, where did you find the documentation
  that said to use the old index service? We would like to update that.
 
  just
 
  IndexNode myIndex = graphDb.index().forNodes(indexName);
  index.add(node, key, value);
  index.get(key,value);
  index.query(query);
 
  etc.
 
  see: http://docs.neo4j.org/chunked/milestone/indexing.html
 
  Cheers,
 
  Michael
 
  Am 06.12.2011 um 09:50 schrieb ajinkyar:
 
   In that case I cannot use LuceneIndexService ... can you please
 suggest
  me a
   way so that I can use LuceneIndexService ?
  
   With neo4j-lucene-index-1.6-SNAPSHOT.jar and lucene-core-3.1.0.jar I
 am
  not
   able to use LuceneIndexService ..
  
  
  
   --
   View this message in context:
 
 http://neo4j-community-discussions.438527.n3.nabble.com/org-neo4j-graphdb-TransactionFailureException-Could-not-create-data-source-lucene-lucene-tp3560554p3563787.html
 
   Sent from the Neo4j Community Discussions mailing list archive at
  Nabble.com.
   ___
   Neo4j mailing list
   [hidden email] http://user/SendEmail.jtp?type=nodenode=3563820i=0

   https://lists.neo4j.org/mailman/listinfo/user
 
  ___
  Neo4j mailing list
  [hidden email] http://user/SendEmail.jtp?type=nodenode=3563820i=1
  https://lists.neo4j.org/mailman/listinfo/user
 
 
  --
   If you reply to this email, your message will be added to the
 discussion
  below:
 
 
 http://neo4j-community-discussions.438527.n3.nabble.com/org-neo4j-graphdb-TransactionFailureException-Could-not-create-data-source-lucene-lucene-tp3560554p3563820.html
   To unsubscribe from org.neo4j.graphdb.TransactionFailureException:
 Could
  not create data source lucene[lucene], click here

  .
  NAML
 http://neo4j-community-discussions.438527.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.InstantMailNamespacebreadcrumbs=instant+emails%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml

 
 
 
 
  --
 
  Regards,
  Ajinkya
  http://ajinkya.info
 
 
  .O.
  ..O
  OOO
 
 
  --
  View this message in context:
 http://neo4j-community-discussions.438527.n3.nabble.com/org-neo4j-graphdb-TransactionFailureException-Could-not-create-data-source-lucene-lucene-tp3560554p3563862.html

  Sent from the Neo4j Community Discussions mailing list archive at
 Nabble.com.
  ___
  Neo4j mailing list
  [hidden email] http://user/SendEmail.jtp?type=nodenode=3563901i=2
  https://lists.neo4j.org/mailman/listinfo/user
 
  --
  You received this message because you are subscribed to the Google
 Groups Neo4j User Discussions group.
  To post to this group, send email to [hidden 
  email]http://user/SendEmail.jtp?type=nodenode=3563901i=3.

  To unsubscribe from this group, send email to [hidden 
  email]http://user/SendEmail.jtp?type=nodenode=3563901i=4.

  For more options, visit this group at
 http://groups.google.com/a/neo4j.org/group/user/?hl=en.
 
 ___
 Neo4j mailing list
 [hidden email] http://user/SendEmail.jtp?type=nodenode=3563901i=5
 https://lists.neo4j.org/mailman/listinfo/user


 --
  If you reply to this email, your message will be added to the discussion
 below:

 http://neo4j-community-discussions.438527.n3.nabble.com

[Neo4j] Anyone interested to present Neo4j at the JUG in Atlanta?

2011-12-06 Thread Peter Neubauer
Hi folks,
is anyone interested in presenting Neo4j at the JUG in Atlanta i 21-22
March 2012? Would love to promote some awesome Graphistas personal
brands there!

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

brew install neo4j  neo4j start
heroku addons:add neo4j
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


[Neo4j] Malmö Neo4j meetup tonight

2011-12-06 Thread Peter Neubauer
Hi all,
for those of you in Lund, Malmö, CPH or Helsingborg, come over to MINC
for some Heroku, Jruby and Cypher beering tonight!

http://www.meetup.com/Neo4j-Oresund/events/42155032/

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

brew install neo4j  neo4j start
heroku addons:add neo4j
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] HA starting issue

2011-12-06 Thread Peter Neubauer
Have you got the logs (probably mostly messages.log from the failing instance?

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

brew install neo4j  neo4j start
heroku addons:add neo4j



On Tue, Dec 6, 2011 at 1:55 PM, lawrence.bandeira
lawrence.bande...@gmail.com wrote:
 Hi Ian,

 I already followed this steps and I couldn't run Neo4j in HA Mode.

 The following log has appeared when I type:
 ./neo4j-enterprise-1.5-1/bin/neo4j start
 Starting Neo4j Server...WARNING: not changing user
  process [6226]... waiting for server to be ready... BAD.
 Neo4j Server may have failed to start, please check the logs.

 When I run in Single Mode it works, but when I run in HA mode, that just
 happens.

 I tried on Windows and Linux and I have the same problem.

 Thanks for your time.

 --
 View this message in context: 
 http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-HA-starting-issue-tp3260535p3564254.html
 Sent from the Neo4j Community Discussions mailing list archive at Nabble.com.
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] There's already an HA cluster managed by this ZooKeeper cluster

2011-12-05 Thread Peter Neubauer
Hi there,
what version are you running, any chance you could collect the
messages.log from the instances and send them over?

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

brew install neo4j  neo4j start
heroku addons:add neo4j



On Fri, Dec 2, 2011 at 3:08 PM, anirudha anir...@thoughtworks.com wrote:
 Hi,

 We are trying to setup neo4j in high-availability mode with 3 nodes in the
 cluster.
 When we restart any of the neo4j servers, it fails. We get following
 exception:

 == neo4j-zookeeper.log ==
 ERROR main-EventThread org.apache.zookeeper.ClientCnxn - Error while calling
 watcher
 java.lang.RuntimeException: There's already an HA cluster managed by this
 ZooKeeper cluster
        at org.neo4j.kernel.ha.zookeeper.ZooClient.getRoot(ZooClient.java:370)
        at
 org.neo4j.kernel.ha.zookeeper.AbstractZooKeeperManager.getAllMachines(AbstractZooKeeperManager.java:194)
        at
 org.neo4j.kernel.ha.zookeeper.AbstractZooKeeperManager.getMasterFromZooKeeper(AbstractZooKeeperManager.java:134)
        at org.neo4j.kernel.ha.zookeeper.ZooClient.process(ZooClient.java:122)
        at
 org.apache.zookeeper.ClientCnxn$EventThread.processEvent(ClientCnxn.java:530)
        at org.apache.zookeeper.ClientCnxn$EventThread.run(ClientCnxn.java:506)


 If we delete the database folder graph.db and then start the server, it
 starts with no exception and syncs the data.
 Am I missing any configuration?

 Thanks.

 --
 View this message in context: 
 http://neo4j-community-discussions.438527.n3.nabble.com/There-s-already-an-HA-cluster-managed-by-this-ZooKeeper-cluster-tp3554731p3554731.html
 Sent from the Neo4j Community Discussions mailing list archive at Nabble.com.
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] org.neo4j.graphdb.TransactionFailureException: Could not create data source lucene[lucene]

2011-12-05 Thread Peter Neubauer
Hi,
this sounds like a version error:

Caused by: java.lang.NoSuchMethodError:
org.neo4j.kernel.impl.transaction.xaframework.XaContainer.create(Ljava/lang/String;Lorg/neo4j/kernel/impl/transaction/xaframework/XaCommandFactory;Lorg/neo4j/kernel/impl/transaction/xaframework/XaTransactionFactory;Ljava/

What versions of the JARs are on your classpath? The first lines of
each messages.log will contain the classpath for the neo4j instance
...

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

brew install neo4j  neo4j start
heroku addons:add neo4j



On Mon, Dec 5, 2011 at 9:16 AM, Ajinkya Kale kaleajin...@gmail.com wrote:
 Caused by: java.lang.NoSuchMethodError:
 org.neo4j.kernel.impl.transaction.xaframework.XaContainer.create(Ljava/lang/String;Lorg/neo4j/kernel/impl/transaction/xaframework/XaCommandFactory;Lorg/neo4j/kernel/impl/transaction/xaframework/XaTransactionFactory;Ljava/
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] Not sure how to access webadmin in Red Hat Enterprise Linux 5.4

2011-12-05 Thread Peter Neubauer
Nice.
Thanks for sharing Max!

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

brew install neo4j  neo4j start
heroku addons:add neo4j



On Mon, Dec 5, 2011 at 9:23 AM, maxdemarzi maxdema...@gmail.com wrote:
 Bring up the Putty GUI.
 Load your saved session
 On the side menu:
 Go to Connection  SSH  Tunnels
 Source Port: 7474
 Destination: localhost:7474
 Click Add
 Click back on Session on the side menu
 Click on your saved session.
 Click Save.
 Now try it again, and it will setup the tunnel for you when you connect.



 --
 View this message in context: 
 http://neo4j-community-discussions.438527.n3.nabble.com/Not-sure-how-to-access-webadmin-in-Red-Hat-Enterprise-Linux-5-4-tp3558449p3560770.html
 Sent from the Neo4j Community Discussions mailing list archive at Nabble.com.
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] [Neo4j-User] Re: Aggregates inside copySplit()

2011-12-05 Thread Peter Neubauer
Cool.
lemme know if you need any help with that maybe outline planning or so.

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

brew install neo4j  neo4j start
heroku addons:add neo4j



On Mon, Dec 5, 2011 at 11:39 PM, Romiko Derbynew
romiko.derby...@readify.net wrote:
 Hi Peter,

 That sounds like a nice idea for sure :)

 -Original Message-
 From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On 
 Behalf Of Peter Neubauer
 Sent: Monday, 5 December 2011 5:31 PM
 To: Neo4j user discussions
 Subject: Re: [Neo4j] Aggregates inside copySplit()

 Wohow,
 cool work Romiko! I would love a screencast on this from the .NET side!

 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

 brew install neo4j  neo4j start
 heroku addons:add neo4j



 On Mon, Dec 5, 2011 at 6:34 AM, Romiko Derbynew romiko.derby...@readify.net 
 wrote:
 Hi Marko,

 Working nicely now :)

 Here is how it looks on our client. I am not sure if I can call _() an 
 identityPipe, any inspiration here? I had to use Aggregate here, instead of 
 Store(), else the Except does not work.

 var results = graphClient
                .RootNode
                .CopySplit(
                    new IdentityPipe()
                        .OutAgency(Hosts.TypeKey, a = a.Key ==
 userIdentifier.AgencyKey)
                        .InUser(UserBelongsTo.TypeKey)
                        .OutCentre(UserLinkedToCentre.TypeKey)
                        .InUser(UserLinkedToCentre.TypeKey)
                        .InReferral(CreatedBy.TypeKey, r =
 r.Completed == false)
                        .AggregateVReferral(ReferralWithCentres),
                    new IdentityPipe()
                        .OutAgency(Hosts.TypeKey, a = a.Key ==
 userIdentifier.AgencyKey)
                )
                .FairMerge()
                .InReferral(ReferralBelongsTo.TypeKey, r =
 r.Completed == false)
                .As(ReferralId)
                .ExceptVReferral(ReferralWithCentres)
                .GremlinDistinct()
                .OutUser(CreatedBy.TypeKey)
                .As(UserGivenName)
                .As(UserFamilyName)
                .TableReferralByGroup, Referral, User, User(
                    referral = referral.UniqueId,
                    user = user.FamilyName,
                    user = user.GivenName
                );

 Which generates this optimised query.
 ReferralWithCentres =
 [];g.v(p0)._.copySplit(_().outE[[label:p1]].inV.filter{
 it[p2].equalsIgnoreCase(p3)
 }.inE[[label:p4]].outV.outE[[label:p5]].inV.inE[[label:p6]].outV.inE[[
 label:p7]].outV.filter{ it[p8] == p9 }.aggregate(ReferralWithCentres),
 _().outE[[label:p10]].inV.filter{ it[p11].equalsIgnoreCase(p12)
 }).fairMerge.inE[[label:p13]].outV.filter{ it[p14] == p15
 }.as(p16).except(ReferralWithCentres).uniqueObject().outE[[label:p17]]
 .inV.as(p18).as(p19).table(new Table()){it[p20]}{it[p21]}{it[p22]}.cap

 Thanks again for all the help :)

 -Original Message-
 From: user-boun...@lists.neo4j.org
 [mailto:user-boun...@lists.neo4j.org] On Behalf Of Marko A. Rodriguez
 Sent: Sunday, 4 December 2011 4:09 PM
 To: Neo4j user discussions
 Subject: Re: [Neo4j] Aggregates inside copySplit()

 Hey,

 That will probably give you unwanted behavior as aggregate is a greedy step. 
 If you just want to lazily store and not aggregate then:

  Gremlin 1.3:   sideEffect{x.add(it)}
  Gremlin 1.4:   store(x)

 HTH,
 Marko.

 http://markorodriguez.com

 On Dec 3, 2011, at 8:50 PM, Romiko Derbynew romiko.derby...@readify.net 
 wrote:

 Sorry, forgot to complete question. So I use a 
 x=[];g.v(0).out.copySplit(_().out.aggregate(x), 
 _().out).fairMerge().out.retain(x). I guess this is not possible, where a 
 retain clause is used after a fairMerge()?

 -Original Message-
 From: user-boun...@lists.neo4j.org
 [mailto:user-boun...@lists.neo4j.org] On Behalf Of Romiko Derbynew
 Sent: Sunday, 4 December 2011 2:38 PM
 To: Neo4j user discussions (user@lists.neo4j.org)
 Subject: [Neo4j] Aggregates inside copySplit()

 Hi,

 Is it possible to use aggregates within a copySplit pipe?
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user


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


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

[Neo4j] GAFYD groups and google search?

2011-12-05 Thread Peter Neubauer
Hi all,
we were thinking of migrating the list to u...@neo4j.org, but there
seems to be the problem that the main google index is not indexing
groups hosted on GAFYD (neo4j.org). Does anyone know if that is really
the case or if there is workarounds? Would suck not to have a
searchable archive.

If not, it seems the next best option is to have a normal Google
Group, like https://groups.google.com/forum/#!forum/neo4j which we can
use.

Any Google experts out there with insights?

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

brew install neo4j  neo4j start
heroku addons:add neo4j
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] [Neo4j-User] What is this query in JavaScript (REST)?

2011-12-05 Thread Peter Neubauer
Hi there,
Any reason you need to do that explicitly?

/peter

Sent from my phone, please excuse typos and autocorrection.
On Dec 6, 2011 2:51 AM, Dmytrii Nagirniak dna...@gmail.com wrote:

 Hi,

 How would I rewrite this Cypher query with JavaScript (so it can be sent
 to the traversal API)?

 START s=node(123) MATCH s-[:users]-[:current]-u WHERE u.email = 'abc'
 RETURN u

 Cheers,
 Dmytrii.
 http://www.ApproachE.com




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

 --
 You received this message because you are subscribed to the Google Groups
 Neo4j User Discussions group.
 To post to this group, send email to u...@neo4j.org.
 To unsubscribe from this group, send email to user+unsubscr...@neo4j.org.
 For more options, visit this group at
 http://groups.google.com/a/neo4j.org/group/user/?hl=en.


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


Re: [Neo4j] Gremlin/Groovy UNIQUE + Closure support

2011-12-04 Thread Peter Neubauer
Guys,
I can include a dedup example in the gremlin plugin docs if you Romiko give
me a small nice example? Will upgrade when Gremlin 1.4 us out...

/peter

Sent from my phone, please excuse typos and autocorrection.
On Dec 4, 2011 12:52 AM, Marko Rodriguez okramma...@gmail.com wrote:

 Hi,

 uniqueObject is in Gremlin 1.3 and below. The online docs are for Gremlin
 1.4 and uniqueObject is now called dedup. To see the Gremlin 1.3
 documentation, see the wiki/ directory of the distribution.

 HTH,
 Marko.

 http://markorodriguez.com

 On Dec 3, 2011 4:13 PM, Romiko Derbynew romiko.derby...@readify.net
 wrote:

 Hi Marko,

 Thank you very much for this information, is it possible that the
 documentation will include these gremlin methods, since on the
 Gremlin-Steps page, I failed to notice any mention of UniqueObject()? I am
 now updating the .NetClient asap :) Thank you once again!


 -Original Message-
 From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org
 ]...
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user

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


[Neo4j] Blog entry on the Heroku screencast

2011-12-04 Thread Peter Neubauer
Hi folks,
seems people enjoyed the screencast, So I wrote a small blog post
about it, http://blog.neo4j.org/2011/12/neo4j-labs-heroku-neo4j-and-google.html
.

Thanks to Patrick for prompting this with http://tm.durusau.net/?p=18847 !

Feel free to comment with ideas on what you would like to have
screencasted and what could be improved, and maybe do one yourself
that we all can enjoy?

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

brew install neo4j  neo4j start
heroku addons:add neo4j
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] Compilation Error Community Edition 1.6

2011-12-04 Thread Peter Neubauer
Gourav,
Does it work with Java 6 and maven 2?

/peter

Sent from my phone, please excuse typos and autocorrection.
On Dec 4, 2011 2:03 AM, gouravmitra gourav.n...@gmail.com wrote:

 Hi,

  Currently, I am studying about graph databases and would like to get
 involve in this open source project. I have downloaded the community
 edition
 source code from github and trying compile using maven. I am getting
 following error

 */[ERROR] COMPILATION ERROR :
 [INFO] -
 [ERROR]

 \MyStorage\RIT\DBSI\community\kernel\src\main\java\org\neo4j\kernel\impl\transaction\DefaultTransactionManagerProvider.java:[27,0]
 error: Internal error: java.io.FileNotFoundException:

 META-INF/services/org.neo4j.kernel.impl.transaction.TransactionManagerProvider
 [ERROR]

 \MyStorage\RIT\DBSI\community\kernel\target\generated-sources\version\org\neo4j\kernel\impl\ComponentVersion.java:[6,0]
 error: Internal error: java.io.FileNotFoundException:
 META-INF/services/org.neo4j.kernel.Version
 [INFO] 2 errors /*

 My System has:
 OS: Win 7
 JDK: 1.7.0_01
 Maven: 3.0.3

 Please let me know if anybody had seen this error and what was your
 recovery?

 Logs are
 MVN Console:

 http://neo4j-community-discussions.438527.n3.nabble.com/file/n3558335/InstallLog.txt
 InstallLog.txt
 MVN Console with debug:

 http://neo4j-community-discussions.438527.n3.nabble.com/file/n3558335/InstallLogMaven.txt
 InstallLogMaven.txt

 Thank You,
 Gourav Mitra

 -
 Gourav Mitra
 --
 View this message in context:
 http://neo4j-community-discussions.438527.n3.nabble.com/Compilation-Error-Community-Edition-1-6-tp3558335p3558335.html
 Sent from the Neo4j Community Discussions mailing list archive at
 Nabble.com.
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user

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


Re: [Neo4j] Relationship indexes

2011-12-04 Thread Peter Neubauer
Frank,
Do you have a minimal test case reproducing this?

/peter

Sent from my phone, please excuse typos and autocorrection.
On Dec 2, 2011 9:12 PM, Frank fr...@studyblue.com wrote:

 Thanks for the reply.

 I *think* that what I need is to do is this:

 Relationship relationship = relationshipIndex.get(signature, signature,
 lastNode, null).getSingle();

 If I understand the documentation correctly, this should return only the
 relationships attached to the node lastNode that have the value I'm
 asking for.

 Unfortunately, my attempt to use this function results in the following
 exception:

 java.lang.UnsupportedOperationException
at
 org.neo4j.rest.graphdb.index.RestRelationshipIndex.get(RestRelationshipIndex.java:42)

 I'm kind of stuck at this point. Any ideas?

 Frank

 On Dec 2, 2011, at 1:59 PM, Peter Neubauer [via Neo4j Community
 Discussions] wrote:

  Frank,
  Either you could put just some of the rels into the index, or maybe have
 an
  additional property in the index for the direction?
 
  /peter
 
  Sent from my phone, please excuse typos and autocorrection.
  On Dec 2, 2011 8:28 PM, Frank [hidden email] wrote:
 
   I'm having some trouble understanding relationship indexes.
  
   I plan to have nodes with many (hundreds, sometimes thousands) of
   relationships to other nodes.
  
   Give node N, I want to be able to quickly locate one of those
 relationships
   given a key. I want to consider only the outgoing relationships of that
   node, not all nodes.
  
   Can this be accomplished? The problem I'm seeing is that when I try to
 look
   up a relationship from a RelationshipIndex, I don't see how to limit
 that
   lookup to just the outgoing relationships of one node.
  
   --
   View this message in context:
  
 http://neo4j-community-discussions.438527.n3.nabble.com/Relationship-indexes-tp3555465p3555465.html
   Sent from the Neo4j Community Discussions mailing list archive at
   Nabble.com.
   ___
   Neo4j mailing list
   [hidden email]
   https://lists.neo4j.org/mailman/listinfo/user
  
  ___
  Neo4j mailing list
  [hidden email]
  https://lists.neo4j.org/mailman/listinfo/user
 
 
  If you reply to this email, your message will be added to the discussion
 below:
 
 http://neo4j-community-discussions.438527.n3.nabble.com/Relationship-indexes-tp3555465p323.html
  To unsubscribe from Relationship indexes, click here.
  NAML



 --
 View this message in context:
 http://neo4j-community-discussions.438527.n3.nabble.com/Relationship-indexes-tp3555465p347.html
 Sent from the Neo4j Community Discussions mailing list archive at
 Nabble.com.
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user

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


Re: [Neo4j] Aggregates inside copySplit()

2011-12-04 Thread Peter Neubauer
Wohow,
cool work Romiko! I would love a screencast on this from the .NET side!

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

brew install neo4j  neo4j start
heroku addons:add neo4j



On Mon, Dec 5, 2011 at 6:34 AM, Romiko Derbynew
romiko.derby...@readify.net wrote:
 Hi Marko,

 Working nicely now :)

 Here is how it looks on our client. I am not sure if I can call _() an 
 identityPipe, any inspiration here? I had to use Aggregate here, instead of 
 Store(), else the Except does not work.

 var results = graphClient
                .RootNode
                .CopySplit(
                    new IdentityPipe()
                        .OutAgency(Hosts.TypeKey, a = a.Key == 
 userIdentifier.AgencyKey)
                        .InUser(UserBelongsTo.TypeKey)
                        .OutCentre(UserLinkedToCentre.TypeKey)
                        .InUser(UserLinkedToCentre.TypeKey)
                        .InReferral(CreatedBy.TypeKey, r = r.Completed == 
 false)
                        .AggregateVReferral(ReferralWithCentres),
                    new IdentityPipe()
                        .OutAgency(Hosts.TypeKey, a = a.Key == 
 userIdentifier.AgencyKey)
                )
                .FairMerge()
                .InReferral(ReferralBelongsTo.TypeKey, r = r.Completed == 
 false)
                .As(ReferralId)
                .ExceptVReferral(ReferralWithCentres)
                .GremlinDistinct()
                .OutUser(CreatedBy.TypeKey)
                .As(UserGivenName)
                .As(UserFamilyName)
                .TableReferralByGroup, Referral, User, User(
                    referral = referral.UniqueId,
                    user = user.FamilyName,
                    user = user.GivenName
                );

 Which generates this optimised query.
 ReferralWithCentres = [];g.v(p0)._.copySplit(_().outE[[label:p1]].inV.filter{ 
 it[p2].equalsIgnoreCase(p3) 
 }.inE[[label:p4]].outV.outE[[label:p5]].inV.inE[[label:p6]].outV.inE[[label:p7]].outV.filter{
  it[p8] == p9 }.aggregate(ReferralWithCentres), 
 _().outE[[label:p10]].inV.filter{ it[p11].equalsIgnoreCase(p12) 
 }).fairMerge.inE[[label:p13]].outV.filter{ it[p14] == p15 
 }.as(p16).except(ReferralWithCentres).uniqueObject().outE[[label:p17]].inV.as(p18).as(p19).table(new
  Table()){it[p20]}{it[p21]}{it[p22]}.cap

 Thanks again for all the help :)

 -Original Message-
 From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On 
 Behalf Of Marko A. Rodriguez
 Sent: Sunday, 4 December 2011 4:09 PM
 To: Neo4j user discussions
 Subject: Re: [Neo4j] Aggregates inside copySplit()

 Hey,

 That will probably give you unwanted behavior as aggregate is a greedy step. 
 If you just want to lazily store and not aggregate then:

  Gremlin 1.3:   sideEffect{x.add(it)}
  Gremlin 1.4:   store(x)

 HTH,
 Marko.

 http://markorodriguez.com

 On Dec 3, 2011, at 8:50 PM, Romiko Derbynew romiko.derby...@readify.net 
 wrote:

 Sorry, forgot to complete question. So I use a 
 x=[];g.v(0).out.copySplit(_().out.aggregate(x), 
 _().out).fairMerge().out.retain(x). I guess this is not possible, where a 
 retain clause is used after a fairMerge()?

 -Original Message-
 From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On 
 Behalf Of Romiko Derbynew
 Sent: Sunday, 4 December 2011 2:38 PM
 To: Neo4j user discussions (user@lists.neo4j.org)
 Subject: [Neo4j] Aggregates inside copySplit()

 Hi,

 Is it possible to use aggregates within a copySplit pipe?
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user


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


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


Re: [Neo4j] org.neo4j.graphdb.TransactionFailureException: Could not create data source lucene[lucene]

2011-12-04 Thread Peter Neubauer
Ajinkya,
are you sure you have shut down your BatchInserter and no other Java
process is accessing the DB? Also, the full stacktrace from the log
would be helpful ...

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

brew install neo4j  neo4j start
heroku addons:add neo4j



On Mon, Dec 5, 2011 at 6:48 AM, ajinkyar kaleajin...@gmail.com wrote:
 org.neo4j.graphdb.TransactionFailureException: Could not create data source
 lucene[lucene]
        at
 org.neo4j.kernel.impl.transaction.TxModule.registerDataSource(TxModule.java:189)
        at
 org.neo4j.kernel.GraphDbInstance.registerLuceneDataSource(GraphDbInstance.java:212)
        at org.neo4j.kernel.GraphDbInstance.start(GraphDbInstance.java:114)
        at
 org.neo4j.kernel.EmbeddedGraphDbImpl.init(EmbeddedGraphDbImpl.java:187)
        at
 org.neo4j.kernel.EmbeddedGraphDatabase.init(EmbeddedGraphDatabase.java:80)
        at
 org.neo4j.kernel.EmbeddedGraphDatabase.init(EmbeddedGraphDatabase.java:63)


 EmbeddedGraphDatabase not working with lucene-core-3.1.0.jar (or any lucene
 jar) and gives above error.
 Whereas BatchInserterImpl works fine with  lucene-core-3.1.0.jar

 --
 View this message in context: 
 http://neo4j-community-discussions.438527.n3.nabble.com/org-neo4j-graphdb-TransactionFailureException-Could-not-create-data-source-lucene-lucene-tp3560554p3560554.html
 Sent from the Neo4j Community Discussions mailing list archive at Nabble.com.
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


[Neo4j] OSX Lion Neo4j Python bindings installation anyone?

2011-12-04 Thread Peter Neubauer
Hi all,
it seems the installation of JPype is not trivial on OSX Lion. Has
anyone been installing the Python bindings on OSX
(http://docs.neo4j.org/chunked/snapshot/python-embedded.html) and
would be willing to write down more detailed installation steps?

http://docs.neo4j.org/chunked/snapshot/python-embedded-installation.html#_installation_on_osx_linux
would be the place,
https://github.com/neo4j/python-embedded/blob/master/src/docs/dev/installation.txt
to edit.

Thanks!

/peter neubauer

GTalk:      neubauer.peter
Skype       peter.neubauer
Phone       +46 704 106975
LinkedIn   http://www.linkedin.com/in/neubauer
Twitter      http://twitter.com/peterneubauer

brew install neo4j  neo4j start
heroku addons:add neo4j
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] Controlling Traversal Depth with Python Neo4j Bindings

2011-12-03 Thread Peter Neubauer
Chris,
Sounds like a case for Cypher, Jake just added on support for it?

/peter

Sent from my phone, please excuse typos and autocorrection.
On Dec 2, 2011 2:40 AM, Chris Diehl di...@alumni.cmu.edu wrote:

 Hi Jake,

 I have a situation where I want to start at a given node in my graph and
 traverse down a linear chain of nodes a specified # of hops. Is there a way
 for me to specify the traversal depth using the Python bindings?
 If not, what would you suggest as the best way to achieve that goal?

 Cheers, Chris
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user

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


Re: [Neo4j] Log message for unmanaged extension

2011-12-03 Thread Peter Neubauer
Mmh,
good question. I think they should get out into messages.log, maybe
you could raise an issue about this so we can track the missing
message down?

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

brew install neo4j  neo4j start
heroku addons:add neo4j



On Fri, Dec 2, 2011 at 7:12 AM, Brendan cheng ccp...@hotmail.com wrote:

 Hi,
 I tried to debug my unmanaged extension with
 private static final Logger log = Logger.getLogger(Register.class);
 and
 generate a message like:
 log.warn(passed check point 1);
 But I couldn't find any these messages from any log files, neo4j.0.0.log, 
 console.log, message.log...etc
 How should I setup the log message?
 Regards,
 Brendan
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


[Neo4j] Neo4j Öresund meetup next Tuesday

2011-12-02 Thread Peter Neubauer
Everyone,
the next Neo4j Öresund meetup is coming up next Tuesday. I think we
might be able to show off some nice Heroku-Sinatra-GoogleCalc
integration, too, along with some NOSQL war stories and beer, so be
there or be [] !

http://www.meetup.com/Neo4j-Oresund/events/42155032/

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

brew install neo4j  neo4j start
heroku addons:add neo4j
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] Standalone server and transactions

2011-12-02 Thread Peter Neubauer
Radoslaw,
if you need transactions, embedded and multiple machines, you can
always use HA to let the DB replicate between your servers.

More to the point, we have shun away from a low level API binary
protocol because of serialization overhead reasons when you do for
instance traversals transparently on the client side with the Java
API.

All this is changing with Cypher, that lets you transfer declarative
statements to the server. The missing piece now is the support for
modifying operations - either via mutating diff statements or
in-Cypher mutating support. Then, the binary protocol will be
feasible.

Got any input on how you would prefer this?

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

brew install neo4j  neo4j start
heroku addons:add neo4j



On Fri, Dec 2, 2011 at 10:38 AM, zolv z...@o2.pl wrote:
 Anyway, You are talking now about things that doesn't exist and I have to
 implement them on my own.

 I can't imagine RDBMS server that doesn't give me JDBC driver in the box.
 Unfortunately Neo4j is like this. There is no native transaction-full
 support so Neo4j can work as standalone server with many connections to it.
 And that's the point.

 Now I have to choose one of the:
 - Neo4j as standalone server with REST without transactions
 or
 - Neo4j embedded with only 1 connection with transactions.

 I can't imagine the situation where DB server is embedded in application
 (really big application) which allows 1 connection (not 2, not many, but
 1!). There is no possibility to have separated machine for DB because then
 there is no transactions. Transactions in meaning the core of persisting
 data doesn't exist in DBMS...I'm amazed that nobody has thought about these
 as a bottleneck problem.

 --
 View this message in context: 
 http://neo4j-community-discussions.438527.n3.nabble.com/Standalone-server-and-transactions-tp3553058p3554188.html
 Sent from the Neo4j Community Discussions mailing list archive at Nabble.com.
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] Neo4j Öresund meetup next Tuesday

2011-12-02 Thread Peter Neubauer
My ASCII art skills suck. I mean square :)

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

brew install neo4j  neo4j start
heroku addons:add neo4j



On Fri, Dec 2, 2011 at 10:53 AM, Nigel Small ni...@nigelsmall.name wrote:
 Be there or be an empty array? I may start saying that just to confuse
 people :-)

 On 2 Dec 2011 09:30, Peter Neubauer peter.neuba...@neotechnology.com
 wrote:

 Everyone,
 the next Neo4j Öresund meetup is coming up next Tuesday. I think we
 might be able to show off some nice Heroku-Sinatra-GoogleCalc
 integration, too, along with some NOSQL war stories and beer, so be
 there or be [] !

 http://www.meetup.com/Neo4j-Oresund/events/42155032/

 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

 brew install neo4j  neo4j start
 heroku addons:add neo4j
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user

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


Re: [Neo4j] Named matched with depth gives error

2011-12-02 Thread Peter Neubauer
Great.
Let us know if that is working for you.

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

brew install neo4j  neo4j start
heroku addons:add neo4j



On Fri, Dec 2, 2011 at 8:08 AM, dnagir dna...@gmail.com wrote:
 Thank Michael,

 I didn't realise there's snapshot version available from the download page.

 I prefer downloading the whole package instead of one particular thing, as 
 Jim suggested.

 But glad to know there's such an option.

 Cheers.

 On 02/12/2011, at 5:20 PM, Michael Hunger [via Neo4j Community Discussions] 
 wrote:

 download the 1.6 SNAPSHOT from neo4j.org/downloads

 mobile mail please excuse brevity and typos

 Am 02.12.2011 um 01:27 schrieb dnagir [hidden email]:

  I fixed this 
  yesterdayhttps://github.com/neo4j/community/commit/37c2867871c7d953c2021177d0b72cd8ba825be0.
 
  Thanks a lot for that.
  How can I get the build that includes the fix? (Sorry for the question, 
  but just starting with noe4j).
 
  Sorry you ran into it...
  NP.
 
  Cheers.
 
  --
  View this message in context: 
  http://neo4j-community-discussions.438527.n3.nabble.com/Named-matched-with-depth-gives-error-tp3548195p3553337.html
  Sent from the Neo4j Community Discussions mailing list archive at 
  Nabble.com.
  ___
  Neo4j mailing list
  [hidden email]
  https://lists.neo4j.org/mailman/listinfo/user
 ___
 Neo4j mailing list
 [hidden email]
 https://lists.neo4j.org/mailman/listinfo/user


 If you reply to this email, your message will be added to the discussion 
 below:
 http://neo4j-community-discussions.438527.n3.nabble.com/Named-matched-with-depth-gives-error-tp3548195p3553894.html
 To unsubscribe from Named matched with depth gives error, click here.
 NAML



 --
 View this message in context: 
 http://neo4j-community-discussions.438527.n3.nabble.com/Named-matched-with-depth-gives-error-tp3548195p3553941.html
 Sent from the Neo4j Community Discussions mailing list archive at Nabble.com.
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] WADL specification is the complete reference for all HTTP interactions with Neo4j?

2011-12-02 Thread Peter Neubauer
Johnny,
at which URI si the WADL hosted? Would like to look at the code, or
you could dig into the code yourself if you don't want to wait.

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

brew install neo4j  neo4j start
heroku addons:add neo4j



On Thu, Dec 1, 2011 at 1:28 AM, yobi johnny@yobistore.com wrote:
 I have noticed that you provide a runtime generated WADL specification for
 the HTTP API.

 I'm going to create a WADL to Node.js SDK converter so I don't have to
 create the functionality and change things manually each time you have a new
 release with changes to the HTTP API.
 a
 But before I do that I wanna be sure that this WADL specification is always
 an _up to date_ spec for _all_ HTTP interactions.

 Could someone confirm this?

 --
 View this message in context: 
 http://neo4j-community-discussions.438527.n3.nabble.com/WADL-specification-is-the-complete-reference-for-all-HTTP-interactions-with-Neo4j-tp3550226p3550226.html
 Sent from the Neo4j Community Discussions mailing list archive at Nabble.com.
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] OSMImporter: Is there a way to do incremental imports?

2011-12-02 Thread Peter Neubauer
Not sure,
Craig, do you have the code somewhere?

/peter

On Tue, Nov 22, 2011 at 4:17 PM, grimace macegh...@gmail.com wrote:
 thanks for the response(s)!  The hardware I'm testing on is not the best and
 only 4G of ram so I'm limited, but this seems the best opportunity for me to
 learn this...that being said...

 For incremental imports, stitching osm files together, we re-activate the
 old code that tests the lucene index before adding nodes and relations.
 There might be some subtle edge cases to consider, but a set of tests
 with
 overlapping and non-overlapping osm files should flush them out.

 I'd love to play with this. Is the old code there for me to re-enable in
 testing? Or can you point me to where this might be put in?

 Thx,
 Greg

 --
 View this message in context: 
 http://neo4j-community-discussions.438527.n3.nabble.com/OSMImporter-Is-there-a-way-to-do-incremental-imports-tp3526941p3527995.html
 Sent from the Neo4j Community Discussions mailing list archive at Nabble.com.
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] WADL specification is the complete reference for all HTTP interactions with Neo4j?

2011-12-02 Thread Peter Neubauer
How about extensions and plugins? Are these discovered by Jetty also?

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

brew install neo4j  neo4j start
heroku addons:add neo4j



On Fri, Dec 2, 2011 at 11:55 AM, Michael Hunger
michael.hun...@neotechnology.com wrote:
 http://localhost:7474/db/data/application.wadl
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


[Neo4j] Heroku, Neo4j and Google Spreadsheet in 10min. Flat.

2011-12-02 Thread Peter Neubauer
Hi all,
todays lab project: http://vimeo.com/33032604

Thought you might enjoy it.

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

brew install neo4j  neo4j start
heroku addons:add neo4j
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] Heroku, Neo4j and Google Spreadsheet in 10min. Flat.

2011-12-02 Thread Peter Neubauer
It's all in there!

/peter

Sent from my phone, please excuse typos and autocorrection.
On Dec 2, 2011 6:37 PM, Rick Bullotta rick.bullo...@thingworx.com wrote:

 Nice! Show me how to access those services and I'll build you a killer UI
 for it using ThingWorx - in 10 minutes. ;-)

 -Original Message-
 From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org]
 On Behalf Of Peter Neubauer
 Sent: Friday, December 02, 2011 11:51 AM
 To: Neo4j user discussions; neo4jrb
 Subject: [Neo4j] Heroku, Neo4j and Google Spreadsheet in 10min. Flat.

 Hi all,
 todays lab project: http://vimeo.com/33032604

 Thought you might enjoy it.

 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

 brew install neo4j  neo4j start
 heroku addons:add neo4j
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user

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


Re: [Neo4j] Relationship indexes

2011-12-02 Thread Peter Neubauer
Frank,
Either you could put just some of the rels into the index, or maybe have an
additional property in the index for the direction?

/peter

Sent from my phone, please excuse typos and autocorrection.
On Dec 2, 2011 8:28 PM, Frank fr...@studyblue.com wrote:

 I'm having some trouble understanding relationship indexes.

 I plan to have nodes with many (hundreds, sometimes thousands) of
 relationships to other nodes.

 Give node N, I want to be able to quickly locate one of those relationships
 given a key. I want to consider only the outgoing relationships of that
 node, not all nodes.

 Can this be accomplished? The problem I'm seeing is that when I try to look
 up a relationship from a RelationshipIndex, I don't see how to limit that
 lookup to just the outgoing relationships of one node.

 --
 View this message in context:
 http://neo4j-community-discussions.438527.n3.nabble.com/Relationship-indexes-tp3555465p3555465.html
 Sent from the Neo4j Community Discussions mailing list archive at
 Nabble.com.
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user

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


Re: [Neo4j] New Bug Logged - Gremlin 114

2011-11-30 Thread Peter Neubauer
Thanks Romiko,
will look into it first time when I have time. How critical is it for you?

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

brew install neo4j  neo4j start
heroku addons:add neo4j



On Wed, Nov 30, 2011 at 1:31 AM, Romiko Derbynew
romiko.derby...@readify.net wrote:
 Hi,

 New bugged logged at: https://github.com/neo4j/community/issues/114

 Details below for others to peruse.

 Gremlin Table Projections - Column Order Incorrect when using chained 
 .As('x').As('y')

 EXPECTED Order: Createdy, ReferralGroup, ReferralId, ReferralData

 When AS statements appear next to each other.
 Consider A (WORKS - But not logical - have to reverse order when more than 1 
 AS statement is chained together right after each other for column array to 
 match):
 {script:g.v(0).outE[[label:'HOSTS']].inV.filter{ it.Key == 'romikoagency' 
 }.inE[[label:'USER_BELONGS_TO']].outV.filter{ it.Username == 
 'romiko.derbynew' 
 }.as('CreatedBy').outE[[label:'USER_LINKED_TO_PROGRAM']].inV.as('ReferralGroup').inE[[label:'HAS_SUGGESTED_PROGRAM']].outV.inE[[label:'REFERRAL_HAS_DECISIONS_SECTION']].outV.as('ReferralDate').as('ReferralId').table(new
  Table()){it.Username}{it.Name}{it.UniqueId}{it.DateInitiatedUtc}.cap
 }

 notice: as('ReferralDate').as('ReferralId') and then notice the column order 
 below is opposite this: columns  ReferralId, ReferralDate ]

 Results
 [ [ {
 data : [ [ romiko.derbynew, Testa, 331, /Date(1322007153048+1100)/ ], 
 [ romiko.derbynew, Testa, 321, /Date(1322003375637+1100)/ ]],
 columns : [ CreatedBy, ReferralGroup, ReferralId, ReferralDate ]
 } ] ]


 Consider B (Does not work - this is more LOGICAL from gremlin perspective but 
 is bugged, the Chained AS right after each other gets reversed in the column 
 array.)
 {script:g.v(0).outE[[label:'HOSTS']].inV.filter{ it.Key == 'romikoagency' 
 }.inE[[label:'USER_BELONGS_TO']].outV.filter{ it.Username == 
 'romiko.derbynew' 
 }.as('CreatedBy').outE[[label:'USER_LINKED_TO_PROGRAM']].inV.as('ReferralGroup').inE[[label:'HAS_SUGGESTED_PROGRAM']].outV.inE[[label:'REFERRAL_HAS_DECISIONS_SECTION']].outV.as('ReferralId').as('ReferralDate').table(new
  Table()){it.Username}{it.Name}{it.UniqueId}{it.DateInitiatedUtc}.cap
 }

 Notice: .as('ReferralId').as('ReferralDate') and then the columns columns 
  ReferralDate, ReferralId ]

 Results
 [ [ {
 data : [ [ romiko.derbynew, Testa, 331, /Date(1322007153048+1100)/ ]],
 columns : [ CreatedBy, ReferralGroup, ReferralDate, ReferralId ]
 } ] ]


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


Re: [Neo4j] Id capacity exceeded

2011-11-30 Thread Peter Neubauer
Alfredas,
AFAIK there is a limit on the number of Relationship types is max
32000 in the cache layer, a bit higher in the storage layer. Mattias
has been doing a branch for more in order to support Rene Pickhard in
his Activity Stream algo that uses types heavily, see
http://www.rene-pickhardt.de/data-structure-for-social-news-streams-on-graph-data-bases/
but that is not in master.

So, I think a property on the relationships is a better way to go right now.

Also updated the docs to reflect this, see
https://github.com/neo4j/manual/commit/796ef8d2e3bf99df7410f53e37860296e6b616c6

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

brew install neo4j  neo4j start
heroku addons:add neo4j



On Tue, Nov 29, 2011 at 6:58 PM, Alfredas Chmieliauskas
alfredas...@gmail.com wrote:
 Dear all,

 after creating some relations i get the error
 org.neo4j.kernel.impl.nioneo.store.UnderlyingStorageException: Id
 capacity exceeded
 See trace below.

 I have to create around 1m relations. Out of those there are 100'000
 different types of relations. Probably the number of relation types
 this is the cause of the problem. Alternatively I could create 1 type
 of relation but add a property to identify them. I just want to be
 sure about the cause of the error and if there are any configurable
 ways to get around it...

 Alfredas

 org.neo4j.kernel.impl.nioneo.store.UnderlyingStorageException: Id
 capacity exceeded
        at 
 org.neo4j.kernel.impl.nioneo.store.IdGeneratorImpl.assertIdWithinCapacity(IdGeneratorImpl.java:170)
        at 
 org.neo4j.kernel.impl.nioneo.store.IdGeneratorImpl.nextId(IdGeneratorImpl.java:161)
        at 
 org.neo4j.kernel.impl.nioneo.store.CommonAbstractStore.nextId(CommonAbstractStore.java:393)
        at 
 org.neo4j.kernel.impl.nioneo.xa.NeoStoreXaDataSource.nextId(NeoStoreXaDataSource.java:428)
        at 
 org.neo4j.kernel.impl.nioneo.xa.NioNeoDbPersistenceSource.nextId(NioNeoDbPersistenceSource.java:111)
        at 
 org.neo4j.kernel.impl.persistence.IdGenerator.nextId(IdGenerator.java:43)
        at 
 org.neo4j.kernel.impl.core.DefaultRelationshipTypeCreator$RelTypeCreater.run(DefaultRelationshipTypeCreator.java:98)
 org.neo4j.graphdb.TransactionFailureException: Unable to create
 relationship type 4791005
        at 
 org.neo4j.kernel.impl.core.DefaultRelationshipTypeCreator.getOrCreate(DefaultRelationshipTypeCreator.java:58)
        at 
 org.neo4j.kernel.impl.core.RelationshipTypeHolder.createRelationshipType(RelationshipTypeHolder.java:142)
        at 
 org.neo4j.kernel.impl.core.RelationshipTypeHolder.addValidRelationshipType(RelationshipTypeHolder.java:81)
        at 
 org.neo4j.kernel.impl.core.NodeManager.createRelationship(NodeManager.java:289)
        at 
 org.neo4j.kernel.impl.core.NodeImpl.createRelationshipTo(NodeImpl.java:495)
        at 
 org.neo4j.kernel.impl.core.NodeProxy.createRelationshipTo(NodeProxy.java:197)
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] How to return the start nodes of all the paths with Cypher

2011-11-30 Thread Peter Neubauer
Well,
in Gremlin, it is basically scripting, so you would probably do a loop
and follow the pattern until you are at the right depth, see
http://docs.neo4j.org/chunked/snapshot/gremlin-plugin.html#rest-api-flow-algorithms-with-gremlin
for a flow algo that loops until the target node = sink, without any
hard limitation.

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

brew install neo4j  neo4j start
heroku addons:add neo4j



On Wed, Nov 30, 2011 at 11:46 AM, Andres Taylor
andres.tay...@neotechnology.com wrote:
 On Wed, Nov 30, 2011 at 11:32 AM, dnagir dna...@gmail.com wrote:

 I would probably like to write something among these lines (it's not valid
 query of course):


 START s=node(10)
 MATCH p = s-[:whatever]-t
 RETURN t, LENGTH(p) as len
 HAVING len = MAX( LENGTH(p) )


 Well, this query would also return 'b' in the example you shared above. I
 think we need something that says follow this path until you can't follow
 it any more. If you're working with a B-tree, you should be able to say
 given this sub-root, give me all leafs. Something like:

 START c = node(17)
 MATCH x-[*END]-c
 RETURN x

 I really don't like this syntax, but I think the information belongs in
 there somewhere...

 Seems like clause similar to SQL HAVING is missing.

 It doesn't exactly reflect what I want but just thought from top of my
 head.

 So currently I have to use other query language if I want to do this.
 Right?


 A traversal would do it pretty simply. Maybe someone else can share a
 end-of-graph traversal example?

 I'm sure Gremlin can do it as well. Don't know how to do it in Gremlin
 though - Peter, Marko?

 Andrés
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


[Neo4j] Moving to u...@neo4j.org

2011-11-30 Thread Peter Neubauer
Hi all,
we are going to move from mailman to google groups,
http://groups.google.com/a/neo4j.org/groups/dir soon, I just wanted to
give you a heads-up that I will invite add of the current members to
http://groups.google.com/a/neo4j.org/group/user/topics?lnk when we are
ready.

Just wanted to warn you that there might be a surprising welcome
message from that group soonish, hope you don't mind!

Let me know if you have any objections.

Happy hacking!

/peter neubauer

GTalk:      neubauer.peter
Skype       peter.neubauer
Phone       +46 704 106975
LinkedIn   http://www.linkedin.com/in/neubauer
Twitter      http://twitter.com/peterneubauer

brew install neo4j  neo4j start
heroku addons:add neo4j
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] Neo4j Spatial build / run problems

2011-11-30 Thread Peter Neubauer
Daniel,
glad to hear it works out! I think we need to make the loading of the
index more robust, so the order is less important. Feel free to
suggest improvements on that, and make some more tests for it.

Also, keep us informed on how your project is going. Maybe a small
blog is in order to show off?

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

brew install neo4j  neo4j start
heroku addons:add neo4j



On Wed, Nov 30, 2011 at 3:04 PM, danielb danielbercht...@gmail.com wrote:
 Now I missed another important point:
 With that settings the database would still not return any results. I
 changed the bounding box values to 9.9 and 48.4. I then got an error message
 with insufficient heap space. With more digits it would load even more from
 the R-tree.
 I increased the cache sizes from the standard few megabytes to several
 hundreds of megabytes and now can do the queries. (600k nodes, 1M
 properties, 1M relationships)

 --
 View this message in context: 
 http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-Spatial-build-run-problems-tp3515519p3548384.html
 Sent from the Neo4j Community Discussions mailing list archive at Nabble.com.
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] REST API - always batch?

2011-11-30 Thread Peter Neubauer
Dmytri,
sounds like an interesting plan! I don't think there is anything
directly that I can see, except a bug,
https://github.com/neo4j/community/issues/113 with \\ which you
might watch our for, reported by Josh Adell.

Let us know how it works out!

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

brew install neo4j  neo4j start
heroku addons:add neo4j



On Thu, Dec 1, 2011 at 5:53 AM, Dmytrii Nagirniak dna...@gmail.com wrote:
 Hi,

 I wonder what the disadvantages would be if every request to the server would 
 always be a batch (even for simple GETs)?

 This would make it easier to use the API from the application.

 How bad is this idea?

 Cheers,
 Dima
 http://www.ApproachE.com




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


Re: [Neo4j] cypher question - subqueries possible?

2011-11-29 Thread Peter Neubauer
Very cool Johann.
Mind writing this into a short blog post? Would love to see this code
and some short illustration on this, even for others to learn from it
...

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              - NOSQL for the Enterprise.
http://startupbootcamp.org/    - Öresund - Innovation happens HERE.



On Tue, Nov 29, 2011 at 1:59 PM, jschweigl johann.schwe...@gmail.com wrote:
 Thanks for all the replies. To explain what I am doing: I'm harvesting
 information from the software engineering tool some guys here are using:
 Excel (gawk!). Excel sheets are parsed and converted to graphs,
 incrementally enriched with properties as I digest subsequent sheets so that
 at the end I get a database of everything which I intend to use for export
 into something useful like Enterprise Architect from Sparx.

 The queries I write should do some kind of QA, showing inconsistencies
 introduced by typos in the sheets or incorrect parsing of free text in the
 cells. The model excerpt we are looking at is

 http://neo4j-community-discussions.438527.n3.nabble.com/file/n3545086/mockups.png

 There are some phenomena I do not understand regarding the query syntax and
 the resulting nodes:

 - Query 6 lists all mockups with no relations: 27 items, fine
 - Query 7 lists all mockups linked to a scenario but not linked to any
 subprocess: 53
 - Query 8 lists all mockups linked to a subprocess but not linked to any
 scenario: 53. Exactly the same ones
 - Query 9 lists all mockups linked to both at least one subprocess and
 scenario: 53. Again, exactly the same ones

 Query 10 and 11 are the same as 9 and 10, but written according to the hints
 from the forum.
 - Query 10 returns no nodes, which I believe is correct, at least according
 to an overview supplied with the Excel sheet and a few random samples
 - Query 11 returns a node with _id and mockupName being null - huh? I'm
 using a quickly hacked POJO mapping layer. jo4neo only works up to neo 1.4
 so I came up with my own which does the absolute minimum I needed for the
 job, but as _id is the primary key, I'm pretty sure I don't store such
 nodes. A bug is always possible, but
 - Query 19 lists all mockup nodes and there is no one with null in both
 fields.

 The math: there are 27 unlinked nodes, queries 7, 8, and 9 retrieve the very
 same 53 nodes which I believe to be linked to both scenarios and
 subprocesses so either the query or the result must be wrong and query 19
 delivers a total of 80 nodes. 27 + 53 = 80.

 As I already said I'm not familiar with neo and cypher yet, but I do not see
 the semantic difference between queries 7 and 8 vs. 10 and 11, yet the
 results differ significantly, and this even between 10 and 11.

 As an overview, here are the queries and the (shortened) output:


 6: Unused mockups
 START mock=node:nodeIndex(_simpleType = 'Mockup') MATCH
 ()-[r?:HAS_MOCKUP]-mock WHERE r IS NULL RETURN distinct mock._id,
 mock.mockupName ORDER BY mock.mockupName
 ++
 | mock._id                             | mock.mockupName |
 ++
 | e80cdb81-9283-3279-9ec4-1c27ace2a3fd | K01-05          |
 | 5095c15a-3230-3b5a-aa03-acd45057470b | K01-07-0        |
  ...
 | 6ba433d8-5989-399a-b463-8a088eafe756 | P2-P04-8-2      |
 | b3209a20-2081-3444-9047-4615bc6b95b3 | RAO-4-2         |
 ++
 27 rows, 37 ms

 7: Mockup linked to scenario not used by any subprocess
 START scenario=node:nodeIndex(_simpleType = 'Scenario'),
 sub=node:nodeIndex(_simpleType = 'Subprocess') MATCH
 scenario-[:HAS_MOCKUP]-mock-[r?:HAS_MOCKUP]-sub WHERE r IS NULL RETURN
 distinct mock._id, mock.mockupName ORDER BY mock.mockupName
 ++
 | mock._id                             | mock.mockupName |
 ++
 | 81a05542-99b2-3672-8498-a31770562416 | K00-1-1         |
 | 7bc08fcc-6380-3ba3-810c-b61d85e9d5d4 | K00-2-2         |
  ...
 | 0adf74e4-b28f-3301-b903-c65697129c24 | P2-P05-2-1      |
 | 4db08241-c9d7-3ac4-a453-6e8b5957efdb | P2-P05-2-2      |
 ++
 53 rows, 739 ms

 8: Mockup linked to subprocess not used by any scenario
 START scenario=node:nodeIndex(_simpleType = 'Scenario'),
 sub=node:nodeIndex(_simpleType = 'Subprocess') MATCH
 sub-[:HAS_MOCKUP]-mock-[r?:HAS_MOCKUP]-scenario WHERE r IS NULL RETURN
 distinct mock._id, mock.mockupName ORDER BY mock.mockupName
 ++
 | mock._id                             | mock.mockupName |
 ++
 | 81a05542-99b2-3672-8498-a31770562416 | K00-1-1

Re: [Neo4j] Contributors section in the manual

2011-11-29 Thread Peter Neubauer
Right now,
nothing. I took it from the GIThub API and reformatted it. Maybe date
of first commit would be good?

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              - NOSQL for the Enterprise.
http://startupbootcamp.org/    - Öresund - Innovation happens HERE.



On Tue, Nov 29, 2011 at 3:47 PM, Craig Taverner cr...@amanzi.com wrote:
 What is the sort order? Date of first commit, number of lines, commits,
 packages?
 On Nov 21, 2011 2:35 PM, Peter Neubauer peter.neuba...@neotechnology.com
 wrote:

 Everyone,
 have started to put in some random people in, see
 http://docs.neo4j.org/chunked/snapshot/contributors.html .

 Any ideas what more info to provide here, or how to make this nicer?

 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              - NOSQL for the Enterprise.
 http://startupbootcamp.org/    - Öresund - Innovation happens HERE.



 On Sun, Nov 13, 2011 at 10:42 AM, Peter Neubauer
 peter.neuba...@neotechnology.com wrote:
  To start with,
  The manual is for the direct codebase that is part of the distribution.
 The
  next step is to include sections and pointers to other stable related
  projects and drivers.
 
  Does that sound reasonable?
 
  On Nov 13, 2011 1:36 AM, Nigel Small ni...@nigelsmall.name wrote:
 
  Are you looking for info on associated projects like py2neo or direct
  contributions to the main code base?
 
  On a side note, I've been getting quite a few hits to my blog post on
  pagination in Neo4j. The bits I wrote for that are all Python/py2neo
 again
  but that or something similar might be worth including somewhere on the
  Neo
  site as it appears to be a reasonably sought-after topic.
 
  Cheers
 
  *Nigel Small*
  Phone: +44 7814 638 246
  Blog: http://nigelsmall.name/
  GTalk: ni...@nigelsmall.name
  MSN: nasm...@live.co.uk
  Skype: technige
  Twitter: @technige https://twitter.com/#!/technige
  LinkedIn: http://uk.linkedin.com/in/nigelsmall
 
 
 
  On 12 November 2011 20:40, Peter Neubauer
  peter.neuba...@neotechnology.comwrote:
 
   Hi guys,
   I would love to add a section on contributors to the Neo4j Manual, in
   http://docs.neo4j.org/chunked/snapshot/community.html so that all of
   you that participate in the process can be found in there.
  
   Do you have any suggestions on how to present this, that is - what
   info, links and maybe a short presentation snippets and pictures?
   Graph to components or simply a table?
  
   Thoughts?
  
   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              - NOSQL for the Enterprise.
   http://startupbootcamp.org/    - Öresund - Innovation happens HERE.
   ___
   Neo4j mailing list
   User@lists.neo4j.org
   https://lists.neo4j.org/mailman/listinfo/user
  
  ___
  Neo4j mailing list
  User@lists.neo4j.org
  https://lists.neo4j.org/mailman/listinfo/user
 
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user

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


Re: [Neo4j] py2neo - GEOFF enhancements

2011-11-29 Thread Peter Neubauer
That sounds great! Let me know when you are stable, and I will see if
I can do some more on the server plugin side, so we can shoot in
things there!

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              - NOSQL for the Enterprise.
http://startupbootcamp.org/    - Öresund - Innovation happens HERE.



On Mon, Nov 28, 2011 at 9:52 PM, Nigel Small ni...@nigelsmall.name wrote:
 Hi Peter

 Bulk of the work is now done on the Java version of the GEOFF enhancements.
 There have been some significant changes to the classes and a number of
 extra tests inserted. The signature of the load method has now been
 extended to:

 public static Neo4jNamespace loadIntoNeo4j(Reader reader,
 GraphDatabaseService graphDB, MapString, ? extends PropertyContainer
 hooks)

 ...where the final parameter expects a Map full of names
 Nodes/Relationships which may then be referenced from within the GEOFF
 source.

 Let me know how you get on and give me a shout if I've forgotten anything
 :-)

 Cheers

 Nige

 *Nigel Small*
 Phone: +44 7814 638 246
 Blog: http://nigelsmall.name/
 GTalk: ni...@nigelsmall.name
 MSN: nasm...@live.co.uk
 Skype: technige
 Twitter: @technige https://twitter.com/#%21/technige
 LinkedIn: http://uk.linkedin.com/in/nigelsmall



 On 23 November 2011 10:12, Peter Neubauer pe...@neubauer.se wrote:

 Looks great to me Nigel! I think this is a very good first step on
 parameters. Let me know when you are done with the Java code, would
 like to bring this into the @Graph annotations after our next
 milestone release, 1.6.M01.

 /peter

 On Tue, Nov 22, 2011 at 10:14 PM, Nigel Small ni...@nigelsmall.name
 wrote:
  Hi all
 
  I have just completed a set of GEOFF enhancements within py2neo (as yet
  only available from GitHub). Named parameters (hooks) and composite
  descriptors are now supported, please see the following sample file for
 an
  illustration of the new capabilites:
 
 
 https://github.com/nigelsmall/py2neo/blob/master/src/py2neo-examples/geoff/node-hooks.geoff
 
  In addition, a change has been made for index entries to use |foo| syntax
  instead of {foo} syntax as previously (although the old syntax will still
  work for now).
 
  Finally, there is a new wiki page detailing the current format in full:
 
  https://github.com/nigelsmall/py2neo/wiki/GEOFF
 
  I will now start planning the set of work required for the neo4j-geoff
  project to bring that up to the same level.
 
  Cheers
 
  Nige
 
  *Nigel Small*
  Phone: +44 7814 638 246
  Blog: http://nigelsmall.name/
  GTalk: ni...@nigelsmall.name
  MSN: nasm...@live.co.uk
  Skype: technige
  Twitter: @technige https://twitter.com/#!/technige
  LinkedIn: http://uk.linkedin.com/in/nigelsmall
  ___
  Neo4j mailing list
  User@lists.neo4j.org
  https://lists.neo4j.org/mailman/listinfo/user
 
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user

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


Re: [Neo4j] google n grams data set in neo4j

2011-11-28 Thread Peter Neubauer
Seriously cool stuff René!

I would love to hear more as the project progresses! Also, maybe the
dataset could be added to the example dataset collection for playing around
with neo4j? WDYT?

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  - NOSQL for the Enterprise.
http://startupbootcamp.org/- Öresund - Innovation happens HERE.


2011/11/27 René Pickhardt r.pickha...@googlemail.com

 Hey Everyone,

 I am curently advising two high school students for a programing project
 for some german student competition.

 They have inserted the German google n-gram data set several GB of natural
 language to a neo4j data base and used this to make sentence prediction to
 improve typing speed.

 The entire project is far from being complete but there is some code
 available on how we modelled n-grams in neo4j and what we used for
 prediction

 Both approaches very basic and as you would expect them. Still they already
 work in a decent way showing again the power of neo4j.

 We would be happy for some feedback thoghts and suggestions for further
 improvement. Find more info in my blog post:

 http://www.rene-pickhardt.de/download-google-n-gram-data-set-and-neo4j-source-code-for-storing-it/

 or in the source code:

 http://code.google.com/p/complet/source/browse/trunk/Completion_DataCollector/src/completion_datacollector/Main.java?spec=svn64r=64

 by the way. even though the code is just hacked down it uses hashmaps to
 store nodes in memory and increase inserting speed. and builds the lucene
 index later. Of course it would be even better to use the batch inserter.

 best regards René
 --
 --
 mobile: +49 (0)176 6433 2481

 Skype: +49 (0)6131 / 4958926

 Skype: rene.pickhardt

 www.rene-pickhardt.de
  http://www.beijing-china-blog.com
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user

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


Re: [Neo4j] Nested/ chained queries

2011-11-28 Thread Peter Neubauer
Lasse,
for Java, you might even look at
http://docs.neo4j.org/chunked/snapshot/tutorials-java-embedded-traversal.html#_new_traversal_frameworkto
get some inspiration ...

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  - NOSQL for the Enterprise.
http://startupbootcamp.org/- Öresund - Innovation happens HERE.


On Mon, Nov 28, 2011 at 10:16 AM, lassewesth lassewe...@gmail.com wrote:


 maxdemarzi wrote
 
  nodes = @neo.traverse(node1,
nodes,
{order = breadth first,
 uniqueness = node global,
 relationships = [{type= friends,
  direction = out},
 {type= likes,
  direction = out}],
  return filter = {
  language = javascript,
  body = position.length()
  == 2  position.lastRelationship().getType().name() == 'likes';},
 depth = 2})
 

 Max, excellent explanation, thanks. I'll get busy translating that into
 Java.

 --
 View this message in context:
 http://neo4j-community-discussions.438527.n3.nabble.com/Nested-chained-queries-tp3536514p3541740.html
 Sent from the Neo4j Community Discussions mailing list archive at
 Nabble.com.
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user

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


[Neo4j] Securing scripting in the server

2011-11-28 Thread Peter Neubauer
Hi all awesome Java hackers,

I have a question:

When putting demo and trial systems online, one should watch out for people
doing bad stuff. In our case, I think the biggest security holes are the
scripting execution points:

- Neo4j Shell webadmin console (has a groovy execution command)
- Gremlin script execution (Groovy)
- Neo4j REST traversal Javascript evaluator bodies (Rhino)
-


Now, the question is if any of you has some experience tweaking the Java
Security Manager to remove System.exit, File write permissions and other
bad stuff from that code. Would love to see some examples of real-life
securing JSR232 script engines. Or are there other mechanisms that work
better than
http://docs.oracle.com/javase/tutorial/essential/environment/security.htmlfor
this type fo task?

Thanks a lot for any hints!

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  - NOSQL for the Enterprise.
http://startupbootcamp.org/- Öresund - Innovation happens HERE.
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] Neo4j Spatial build / run problems

2011-11-28 Thread Peter Neubauer
Daniel,
there is now
https://github.com/neo4j/spatial/blob/master/src/test/java/org/neo4j/gis/spatial/SpatialPluginFunctionalTest.java#L53executing
a cypher spatial query over REST, could you check this out and
try to run it? If it works, you can simply analyze what goes over the wire
- I guess there needs to be some escaping foo when you use CURL for this.

Let me know how it works out!

On Mon, Nov 28, 2011 at 5:09 PM, danielb danielbercht...@gmail.com wrote:

 Hi Peter,

 that works, yes! But I still can't do spatial queries with the OSMLayer
 over
 the server page. Today I have written a small test program in Java which
 also includes a bbox query for a specific point and then traverses to the
 corresponding OSM node. So far I am satisfied with that (I will also
 continue in Java), maybe you can still get this 'issue' to work at your
 side
 - or I just don't get it :)

 Regards, Daniel

 --
 View this message in context:
 http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-Spatial-build-run-problems-tp3515519p3542618.html
 Sent from the Neo4j Community Discussions mailing list archive at
 Nabble.com.
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user

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


Re: [Neo4j] Securing scripting in the server

2011-11-28 Thread Peter Neubauer
Oh man,
that were times! Good point, will see if this is usable. Thanks a lot for
the hint!

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  - NOSQL for the Enterprise.
http://startupbootcamp.org/- Öresund - Innovation happens HERE.


On Mon, Nov 28, 2011 at 6:41 PM, Marko Rodriguez okramma...@gmail.comwrote:

 Hi Peter,

  Now, the question is if any of you has some experience tweaking the Java
  Security Manager to remove System.exit, File write permissions and other
  bad stuff from that code. Would love to see some examples of real-life
  securing JSR232 script engines. Or are there other mechanisms that work
  better than
 
 http://docs.oracle.com/javase/tutorial/essential/environment/security.htmlfor
  this type fo task?

 Remember you, me, and Josh worked on LinkedProcess a few years back (
 http://xmpp.org/extensions/inbox/lop.html ). Given that any random user
 on the web could execute arbitrary code on another users machines, we had
 to solve the security hole problem. In our Java-based reference
 implementation LoPSideD, we tweaked the JVM such that arbitrary JSR223 code
 does not violate particulate security constraints. See:


 https://github.com/tinkerpop/tinkubator/blob/master/lopsided/lopsided-farm/sweden_countryside.properties

 and...


 https://github.com/tinkerpop/tinkubator/blob/master/lopsided/lopsided-farm/src/main/java/org/linkedprocess/farm/Farm.java#L189

 ...the full codebase is in the Tinkubator at this location:
https://github.com/tinkerpop/tinkubator/tree/master/lopsided

 In short, I believe that this was all set at the thread-level -- ?? --
 however, Josh was the one who did the work on security so you might want to
 ask him.

 Hope that gives you some starting points,
 Marko.

 http://markorodriguez.com
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user

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


[Neo4j] Contributors page extended

2011-11-28 Thread Peter Neubauer
Hi all,
following my earlier post, now the list of contributors has been expended
to the GIThub-listed contributors to Neo4j-community,
http://docs.neo4j.org/chunked/snapshot/contributors.html

Thank you all! I will look through and list everyone that has contributed
to any of the core distribution projects, even before we moved to GIThub.
As time goes, i think we should expand this to anyone who has sent in the
CLA.

Anything you think should be on that documentation page? Would be nice to
flesh it out a bit ...

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  - NOSQL for the Enterprise.
http://startupbootcamp.org/- Öresund - Innovation happens HERE.
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] cypher question - subqueries possible?

2011-11-28 Thread Peter Neubauer
Johan,
got a graph picture on this?

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  - NOSQL for the Enterprise.
http://startupbootcamp.org/- Öresund - Innovation happens HERE.


On Mon, Nov 28, 2011 at 11:48 PM, jschweigl johann.schwe...@gmail.comwrote:

 Hi all,

 I have three kinds of nodes A, B and C. Both type A and B (distinguished by
 a property) have a relationship of the same type to node type C. I want to
 find nodes C which have a relationship to A but not to B.

 The only idea I came up with is to have a query return all A nodes having a
 relationship to C as a START nodeset and then count B nodes having a
 relationship to the nodes from the set with count 0. But as START only
 accepts node id or index queries, that's not possible.

 Do you plan to include set operations in cypher? UNION and INTERSECTION of
 query results would also be an approach.

 Or, even better, is there a solution using current language features? I'm
 still quite new to the topic, so I might have missed something.

 --
 View this message in context:
 http://neo4j-community-discussions.438527.n3.nabble.com/cypher-question-subqueries-possible-tp3543685p3543685.html
 Sent from the Neo4j Community Discussions mailing list archive at
 Nabble.com.
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user

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


Re: [Neo4j] Nested/ chained queries

2011-11-27 Thread Peter Neubauer
nice Max,
thanks for the follow-up!

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  - NOSQL for the Enterprise.
http://startupbootcamp.org/- Öresund - Innovation happens HERE.


On Sun, Nov 27, 2011 at 12:49 AM, maxdemarzi maxdema...@gmail.com wrote:

 Sure, it's like getting friends of friends:
 https://github.com/maxdemarzi/neography/blob/master/examples/facebook.rb

 This should work, but I haven't tested it, so keep an eye out for typos.

 nodes = @neo.traverse(node1,
  nodes,
  {order = breadth first,
   uniqueness = node global,
   relationships = [{type= friends,
direction = out},
   {type= likes,
direction = out}],
return filter = {
language = javascript,
body = position.length() ==
 2  position.lastRelationship() == 'likes';},
   depth = 2})


 --
 View this message in context:
 http://neo4j-community-discussions.438527.n3.nabble.com/Nested-chained-queries-tp3536514p3539279.html
 Sent from the Neo4j Community Discussions mailing list archive at
 Nabble.com.
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user

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


Re: [Neo4j] Activity Streams and Twitter Sample App

2011-11-27 Thread Peter Neubauer
Rene,
you mean the fork that Mattias has been providing you with for handling
millions of relationship types? It is possible to take that into master,
however, I think Johan said we need to test and make sure all cases are
covered. Don't have an ETA on that ATM. I think you could raise an issue
and point to Mattias branch to keep track of the feature!

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  - NOSQL for the Enterprise.
http://startupbootcamp.org/- Öresund - Innovation happens HERE.


2011/11/26 René Pickhardt r.pickha...@googlemail.com

 @ qcon: I can't find the twitter videos on
 http://qconlondon.com/london-2011/ rick could you please point to further
 rescources?

 @ aseem: I gave a detailed answer to your questions on

 http://www.rene-pickhardt.de/graphity-an-efficient-graph-model-for-retrieving-the-top-k-news-feeds-for-users-in-social-networks/#comment-1295

 but I think we have the same oppinion. The approach that you wrote down
 here is exactly what my baseline STOU does. you have your friendship
 relations as a (S)tar and the events as (T)emporal (O)rdered (U)pdeats ( =
 STOU ) The merging traversal is the same in STOU and Graphity. The only
 difference is that in STOU I have to sort the egonetwork O(d log d) where d
 is infact the outdegree.

 Once we understand this everything else is easy: You look at your kind of
 application and decide what your ratio of read to write operations is. Once
 reading happens far more frequently you better use graphity in the other
 case your method seems more sufficiant.

 What I have learnt from your comments that not only the ratio of reads to
 writes is interesting but the distribution of outdegrees should be
 considered when deciding which algorithm to use.. If the outdegree really
 stays small your approach will be more efficiently.

 @maxdemermazi:
 performance with bigger k drops in both cases. retrieval with graphity is
 O(k log k) where STOU is O(d log d + k log k) and for small k the d part is
 just dominating. So what's happening here is that graphity will always be
 faster since no sorting of the egonetwork is involved.
 Besides. Why would you want to have such a big k. Even if your twitter
 stream genereated that many updates when you come to the website you will
 only get to see a small k of them and as soon as you scroll down you will
 see the next k + l tweets...

 @custom neo4j: well let's ask Peter if neotechnology will include support
 to handle that many relationship types again to neo4j. I certainly would be
 happy about that.

 2011/11/22 maxdemarzi maxdema...@gmail.com

  A couple of things bothered me about Rene's approach.
 
  1. Custom Neo4j that could handle lots of relationship types.  Not 100%
  sure
  where this fits?
  2. Performance drops like a bomb when K (the number of items retrieved)
  increases.
 
  So it kind of works to get the top 15 items... A twitter stream could
 have
  500 items easy per update (on my iphone every few hours).
 
 
 
  --
  View this message in context:
 
 http://neo4j-community-discussions.438527.n3.nabble.com/Activity-Streams-and-Twitter-Sample-App-tp3477669p3526543.html
  Sent from the Neo4j Community Discussions mailing list archive at
  Nabble.com.
  ___
  Neo4j mailing list
  User@lists.neo4j.org
  https://lists.neo4j.org/mailman/listinfo/user
 



 --
 --
 mobile: +49 (0)176 6433 2481

 Skype: +49 (0)6131 / 4958926

 Skype: rene.pickhardt

 www.rene-pickhardt.de
  http://www.beijing-china-blog.com
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user

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


Re: [Neo4j] Network accessible hostname

2011-11-27 Thread Peter Neubauer
Done, see https://github.com/neo4j/community/issues/46

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  - NOSQL for the Enterprise.
http://startupbootcamp.org/- Öresund - Innovation happens HERE.


On Sat, Nov 26, 2011 at 1:45 AM, Jim Webber j...@neotechnology.com wrote:

 Hi Peter,

 I think I might have verbally volunteered for this issue.

 Can you assign it to me? Email would help me to remember :-)

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

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


Re: [Neo4j] Invalid JSON Issue

2011-11-27 Thread Peter Neubauer
Thanks for the great issue report, will look at it asap.

/peter

Sent from my phone, please excuse typos and autocorrection.
On Nov 28, 2011 3:04 AM, Romiko Derbynew romiko.derby...@readify.net
wrote:

 Hi,

 Ticket opened

 https://github.com/neo4j/community/issues/110

 Details:

 When I try run this query via rest.
 {script:g.v(0).out('HOSTS').filter{ it.Key ==
 'romikoagency'}.in('USER_BELONGS_TO').as('username').as('userGivenName').out('USER_LINKED_TO_PROGRAM').as('program').table(new
 Table()){it.Username}{it.GivenName}{it.Name}.cap
 }

 Notice the combination of table and cap. I get this result in the raw HTTP
 response.
 [ [[userGivenName:romiko.derbynew, username:Romiko, program:Testa],
 [userGivenName:romiko.derbynew, username:Romiko, program:Zumba Lessons],
 [userGivenName:romiko.derbynew, username:Romiko, program:Counselling],
 [userGivenName:romiko.derbynew, username:Romiko, program:Counselling],
 [userGivenName:romiko.derbynew, username:Romiko, program:After Care]] ]

 The above JSON result is invalid, should it be?:
 [
 {userGivenName:romiko.derbynew, username:Romiko,
 program:Testa},
 {userGivenName:romiko.derbynew, username:Romiko, program:Zumba
 Lessons}, {userGivenName:romiko.derbynew, username:Romiko,
 program:Counselling},
 {userGivenName:romiko.derbynew, username:Romiko,
 program:Counselling},
 {userGivenName:romiko.derbynew, username:Romiko, program:After
 Care}
 ]

 We have extended the Neo4jClient to now support table projections and cap
 combo, however, the JSON deserialization is broken due to the invalid json
 results.

 Kind Regards
 Romiko

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

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


Re: [Neo4j] spaces in entity properties?

2011-11-27 Thread Peter Neubauer
You should be able to use any string including spaces as a property key. If
you encounter problems then that is probably a bug.

/peter

Sent from my phone, please excuse typos and autocorrection.
On Nov 28, 2011 6:33 AM, yobi johnny@yobistore.com wrote:

 Is it possible to have spaces in entity properties eg.

 first name: Foo Bar
 native language: Baz

 or do I have to use:

 first_name: Foo Bar
 native_language: Baz

 Thanks!

 --
 View this message in context:
 http://neo4j-community-discussions.438527.n3.nabble.com/spaces-in-entity-properties-tp3541413p3541413.html
 Sent from the Neo4j Community Discussions mailing list archive at
 Nabble.com.
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user

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


Re: [Neo4j] Neo4j Spatial build / run problems

2011-11-25 Thread Peter Neubauer
Daniel, will do and write some integration tests for this, sorry for the
inconvenience!

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  - NOSQL for the Enterprise.
http://startupbootcamp.org/- Öresund - Innovation happens HERE.


On Fri, Nov 25, 2011 at 10:43 AM, danielb danielbercht...@gmail.com wrote:

 Hi Peter,

 unfortunately I can't get it to work. The layer named after osmpath could
 not be used in query because of ':' and '/'. I don't know how to escape
 them
 here. However I did not like the layer to be named in this way, so I
 changed
 the OSMImporter to take 'layerName' and 'osmPath'. I now import the OSM
 file
 with the layer named 'geom' and added the indexprovider. A bbox query now
 stops with GC overhead limit exceeded :/
 Can you please verify the OSMimport with bbox query over Cypher / HTTP?

 Regards, Daniel

 --
 View this message in context:
 http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-Spatial-build-run-problems-tp3515519p3535681.html
 Sent from the Neo4j Community Discussions mailing list archive at
 Nabble.com.
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user

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


Re: [Neo4j] Neo4j Spatial build / run problems

2011-11-25 Thread Peter Neubauer
Daniel,
https://github.com/neo4j/spatial/commit/0636f88bdf05663fa8c260a1850849a96e78a568is
now running through for me and does execute a Cypher Query over REST,
so
could you please try this out, just to be sure?

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  - NOSQL for the Enterprise.
http://startupbootcamp.org/- Öresund - Innovation happens HERE.


On Fri, Nov 25, 2011 at 1:42 PM, danielb danielbercht...@gmail.com wrote:

 Thanks Peter!

 --
 View this message in context:
 http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-Spatial-build-run-problems-tp3515519p3536012.html
 Sent from the Neo4j Community Discussions mailing list archive at
 Nabble.com.
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user

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


Re: [Neo4j] Network accessible hostname

2011-11-25 Thread Peter Neubauer
Clay,
I think that is something we need to check next week, and probably make an
issue to run the Webadmin etc with relative URLs as absolute URLs can be a
pain. Would that help for your case?

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  - NOSQL for the Enterprise.
http://startupbootcamp.org/- Öresund - Innovation happens HERE.


On Thu, Nov 24, 2011 at 9:54 PM, Clay Monkus
c...@intelligentbuildings.comwrote:

 I am a newbie with Neo4j, so any help is appreciated.
 I have tried many different configuration options regarding the server's
 complete URL for neo4j, but the application does not seem to honor those
 configuration changes.  This can be seen by going to:

 http://my.site.com/webadmin/#/data/search/0/

 which indicates that it is trying to connect to:

 http://j2ee.my.site.com:7474/db/data/node/0, which is local.

 Per a suggestion on the neo4j fora, I have made the following changes to
 the
 configuration:

 ***
 # REST endpoint for the data API
 # Note the / in the end is mandatory
 org.neo4j.server.webadmin.data.uri=http://my.site.com/db/data/

 # REST endpoint of the administration API (used by Webadmin)
 org.neo4j.server.webadmin.management.uri=http://my.site.com/db/manage/
 ***

 Allegedly, using the full URI should allow the admin panel to communicate
 with the backend.  However, per the logs, the application is not picking up
 these configuration changes after restart:

 ***
 ***
 2011-11-22 08:34:07.549-0600: --- SERVER STARTUP START ---
 2011-11-22 08:34:07.549-0600: Server configuration:
 2011-11-22 08:34:07.551-0600: org.neo4j.server.database.location =
 data/graph.db
 2011-11-22 08:34:07.552-0600: org.neo4j.server.webserver.port = 7474
 2011-11-22 08:34:07.552-0600: org.neo4j.server.webserver.address =
 127.0.0.106
 2011-11-22 08:34:07.552-0600: org.neo4j.server.webadmin.rrdb.location =
 data/rrd
 2011-11-22 08:34:07.552-0600: org.neo4j.server.db.tuning.properties =
 conf/neo4j.properties
 2011-11-22 08:34:07.552-0600: org.neo4j.server.webadmin.management.uri =
 /db/manage/
 2011-11-22 08:34:07.552-0600: org.neo4j.server.webadmin.data.uri =
 /db/data/
 2011-11-22 08:34:07.575-0600: Mounted discovery module
 (org.neo4j.server.rest.discovery) at: /
 2011-11-22 08:34:07.613-0600: Loaded server plugin CypherPlugin
 (org.neo4j.server.plugin.cypher.CypherPlugin)
 2011-11-22 08:34:07.614-0600: GraphDatabaseService.execute_query: execute a
 query
 2011-11-22 08:34:07.615-0600: Loaded server plugin GremlinPlugin
 (org.neo4j.server.plugin.gremlin.GremlinPlugin)
 2011-11-22 08:34:07.615-0600: GraphDatabaseService.execute_script: execute
 a
 Gremlin script with 'g' set to the Neo4jGraph and 'results' containing the
 results. Only results of one object type is supported.
 2011-11-22 08:34:07.615-0600: Mounted REST API at: /db/data/
 2011-11-22 08:34:07.616-0600: Mounted management API at: /db/manage/
 2011-11-22 08:34:07.653-0600: Mounted webadmin at: /webadmin
 2011-11-22 08:34:09.084-0600: Server started on: http://127.0.0.106:7474/
 2011-11-22 08:34:09.085-0600: --- SERVER STARTUP END ---
 ***

 As you can see in those logs, neither the data URI nor the web management
 URI have updated to the settings that I placed in the configuration file:

 ***
 2011-11-22 08:34:07.552-0600: org.neo4j.server.webadmin.management.uri =
 /db/manage/
 2011-11-22 08:34:07.552-0600: org.neo4j.server.webadmin.data.uri =
 /db/data/
 ***

 They should show the full URL, namely, http://my.site.com/db/manage/ and
 http://my.site.com/db/data/, respectively.

 Do you have any suggestions regarding the configuration?

 Thanks,



 Clay Monkus
 Director of Technology
 Intelligent Buildings
 c...@intelligentbuildings.com
 6000 Fairview Road, Tower II, Suite 1200
 Charlotte, NC 28210 U.S.A.

 704.345.4174 | Mobile
 704.759.2700 | Main
 704.759.2701 | Fax
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user

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


[Neo4j] [Announcement] Neo4j 1.6.M01 Jörn Kniv

2011-11-25 Thread Peter Neubauer
Hi all,
glad to say that we are back to 2 weeks milestone cycles.

Enjoy everyone and have a great Thanksgiving, US peeps!

http://blog.neo4j.org/2011/11/neo4j-16m01-jorn-kniv.html

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  - NOSQL for the Enterprise.
http://startupbootcamp.org/- Öresund - Innovation happens HERE.
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] Network accessible hostname

2011-11-25 Thread Peter Neubauer
Yes,
this is covered in https://github.com/neo4j/community/issues/46 right?

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  - NOSQL for the Enterprise.
http://startupbootcamp.org/- Öresund - Innovation happens HERE.


On Fri, Nov 25, 2011 at 6:43 PM, cmonkus c...@intelligentbuildings.comwrote:

 That absolutely would help in our case.

 --
 View this message in context:
 http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-Network-accessible-hostname-tp3534733p3536651.html
 Sent from the Neo4j Community Discussions mailing list archive at
 Nabble.com.
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user

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


Re: [Neo4j] allSimplePaths performance

2011-11-24 Thread Peter Neubauer
Petar,
very cool if this worked out. Maybe you could write up a testcase that
verifies that the results are the same, and then put this as a fork to
the graphalgo package? Sounds like a great addition if this works out?

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              - NOSQL for the Enterprise.
http://startupbootcamp.org/    - Öresund - Innovation happens HERE.



On Thu, Nov 24, 2011 at 11:42 AM, Petar Dobrev peter.dob...@gmail.com wrote:
 Hi guys,

 I have a graph of about 2.5M nodes and 8M relationships and I am trying to
 find all simple paths between two nodes with maximum depth of 8.

 The allSimplePaths graph algo works well for maximum depth of 5, but for 8
 it runs really long (I didn't even wait for it to finish). So I thought
 it's just that the graph is too complicated and the search operation is
 very expensive.

 On the other hand I noticed that shortestPath and pathsWithLength both work
 fast. So I tried this experiment:

   - Run shortestPath and record the shortest length
   - Iterate from the shortest length to max_depth
      - Run pathsWithLength and append the results
      -

 And it turns out to be working really well.. much, much faster than the
 allSimplePaths solution, which I found quite baffling, since the latter
 solution should be doing more work to accomplish the same task.

 Maybe it's just with my graph, but it's still weird.

 Best regards,
 Petar
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user

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


Re: [Neo4j] Neo4j Spatial build / run problems

2011-11-24 Thread Peter Neubauer
Daniel,
the OSM import is loaded into its own layer corresponding to the
dataset file name as a default I think (there should be a layer node
created fro it, much in the same way as for the 'geom' index. So, if
you load that layer the same way as an index provider as you did with
the 'geom' index, you should be able to do just that.

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              - NOSQL for the Enterprise.
http://startupbootcamp.org/    - Öresund - Innovation happens HERE.



On Thu, Nov 24, 2011 at 1:52 PM, danielb danielbercht...@gmail.com wrote:
 Hi Peter,

 I now have a graph with the 'geom' index + testnode from the above code and
 imported some OSM data afterwards. I now want to find 2 nodes by bbox query
 - 550349 and 205372 (see http://dl.dropbox.com/u/18693700/graph.png). How
 can I achieve this? If I query for the bbox I should at least find the
 corresponding GEOM nodes and then traverse over the incoming edge?

 I can for example do the following:
 cypher start n=node:node(way_osm_id = '119810554')
 cypher return n
 cypher
 ==
 +--+
 == | n
 |
 ==
 +--+
 == |
 Node[550349]{way_osm_id-119810554,oneway-BOTH,timestamp-1309673329000,highway-residential,name-Frauenstraße,version-2}
 |
 ==
 +--+
 == 1 rows, 168 ms

 In the posts before I could query the geometry with index 'geom'. The index
 manager only has the following entries:

 node lucene {_blueprints:type:MANUAL, type:exact}
 relation lucene {_blueprints:type:MANUAL, type:exact}
 geom spatial {_blueprints:type:MANUAL}
 way lucene {_blueprints:type:MANUAL, type:exact}
 changeset lucene {_blueprints:type:MANUAL, type:exact}
 user lucene {_blueprints:type:MANUAL, type:exact}

 I also have uploaded the complete folder of Neo4j spatial + graph.db:
 http://dl.dropbox.com/u/18693700/neo4j_spatial_osm_graphdb.rar

 Regards, Daniel



 --
 View this message in context: 
 http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-Spatial-build-run-problems-tp3515519p3533548.html
 Sent from the Neo4j Community Discussions mailing list archive at Nabble.com.
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user

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


Re: [Neo4j] Neo4j Data Capacities

2011-11-24 Thread Peter Neubauer
Yes.
However, before that you will probably run into other limitations,
like file sizes, IO and RAM. That is why we are a bit careful about
just going to Longs or UUIDs.

Anything you are thinking of in particular?

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              - NOSQL for the Enterprise.
http://startupbootcamp.org/    - Öresund - Innovation happens HERE.



On Thu, Nov 24, 2011 at 1:55 PM, bm3780 bm3...@gmail.com wrote:
 I've read that Neo4j has data capacity limitations
 (http://docs.neo4j.org/chunked/milestone/capabilities-capacity.html).  I
 would like to confirm my understandings that the node, properties, and
 relationships limitations are for each type (e.g. AND condition), not an
 either/or  (e.g. OR condition).

 Neo4j can hold:
   * ~34 billions nodes, AND
   * ~34 billion relationships, AND
   * ~68 billion properties

 So I could theoretically have a single graph with 34 billion nodes, where
 each node had two properties and a single relationship.

 --
 View this message in context: 
 http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-Data-Capacities-tp3533552p3533552.html
 Sent from the Neo4j Community Discussions mailing list archive at Nabble.com.
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user

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


Re: [Neo4j] Neo4j sponsoring the global day of code retreat

2011-11-23 Thread Peter Neubauer
Cool,
just looking up Copenhagen ...
http://coderetreat.ning.com/events/global-day-of-coderetreat-in-copenhagen

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              - NOSQL for the Enterprise.
http://startupbootcamp.org/    - Öresund - Innovation happens HERE.



On Wed, Nov 23, 2011 at 10:16 AM, Michael Hunger
michael.hun...@neotechnology.com wrote:
 I'm happy to announce that Neo Technology sponsors the Global Day of Code 
 Retreat as a Continent Sponsor.

 Quote from Corey Haines (http://coderetreat.org)

 Global Day of Coderetreat is a world-wide event celebrating passion and 
 software craftsmanship.
 Over 2000 passionate software developers around the world (90 cities) will 
 spend the day practicing the craft of
 software development using the coderetreat format.


 So please have a look, if there is a code retreat near you, feel free to join 
 on Dec. 3rd. It's a lot of fun!

 (if you like to, you can also organize a coderetreat on your own and join the 
 movement)

 Cheers

 Michael, excited.

 http://www.infoq.com/news/2011/11/global_day_of_code_retreat
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user

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


Re: [Neo4j] py2neo - GEOFF enhancements

2011-11-23 Thread Peter Neubauer
Looks great to me Nigel! I think this is a very good first step on
parameters. Let me know when you are done with the Java code, would
like to bring this into the @Graph annotations after our next
milestone release, 1.6.M01.

/peter

On Tue, Nov 22, 2011 at 10:14 PM, Nigel Small ni...@nigelsmall.name wrote:
 Hi all

 I have just completed a set of GEOFF enhancements within py2neo (as yet
 only available from GitHub). Named parameters (hooks) and composite
 descriptors are now supported, please see the following sample file for an
 illustration of the new capabilites:

 https://github.com/nigelsmall/py2neo/blob/master/src/py2neo-examples/geoff/node-hooks.geoff

 In addition, a change has been made for index entries to use |foo| syntax
 instead of {foo} syntax as previously (although the old syntax will still
 work for now).

 Finally, there is a new wiki page detailing the current format in full:

 https://github.com/nigelsmall/py2neo/wiki/GEOFF

 I will now start planning the set of work required for the neo4j-geoff
 project to bring that up to the same level.

 Cheers

 Nige

 *Nigel Small*
 Phone: +44 7814 638 246
 Blog: http://nigelsmall.name/
 GTalk: ni...@nigelsmall.name
 MSN: nasm...@live.co.uk
 Skype: technige
 Twitter: @technige https://twitter.com/#!/technige
 LinkedIn: http://uk.linkedin.com/in/nigelsmall
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user

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


Re: [Neo4j] How to boost performance?

2011-11-23 Thread Peter Neubauer
Vinicius,
in order to cut down on the REST JSON overhead (which you don't have
in the RDBMS case), maybe you could look at just counting the results,
something like

START n = node(3)
MATCH n--()--(x)
return count(x)

And see what happens?

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              - NOSQL for the Enterprise.
http://startupbootcamp.org/    - Öresund - Innovation happens HERE.



On Wed, Nov 23, 2011 at 11:54 AM, Vinicius Carvalho
java.vinic...@gmail.com wrote:
 Hi there, I've posted a few days ago about the POC I'm doing here at my
 company. I have some initial numbers and I'd like to ask for some help here
 in order to promote neo4j here in LMI Ericsson.

 I've loaded a mySQL db with a really simple entity, that pretty much only
 represents a node and relations (only properties it has is an UID and x/y
 space coordinate for each node)

 The DB contains 250.000 cells and 19. relations stored in a myISAM table,
 indexed only by it's primary key. Please find the DDL for the two tables.

 CREATE TABLE  `pci`.`cells` (
  `id` varchar(32) collate utf8_bin NOT NULL,
  `x_pos` double default NULL,
  `y_pos` double default NULL,
  `pci` smallint(6) default '0',
  PRIMARY KEY  (`id`)
 )

 CREATE TABLE  `pci`.`relations` (
  `id` int(11) NOT NULL auto_increment,
  `source` varchar(32) collate utf8_bin default NULL,
  `target` varchar(32) collate utf8_bin default NULL,
  PRIMARY KEY  (`id`),
  KEY `src_idx` (`source`),
  KEY `src_target` (`target`)
 )

 So as you can see, a simple secondary table contains the relationship with
 source and targets pointing to the cells table.

 I've loaded this exact same DB into a neoserver running on the same
 machine: A Blade with 26 cpus (6 cores each) and 16gb RAM.

 One of the requirements we have is to find all associations of my
 associations. Something that in neo I did like this:

 START n = node(3)
 MATCH n--()--(x)
 return x

 For this specific node it returns 6475 nodes.

 I have tested this before using Hibernate in two modes: without a L2 cache,
 and with an L2 Cache (Ehcache standalone no replication).
 Here's a snippet of the code that loads it, so you can understand what's
 going under the hood:


 @Override
 public ListCell loadCellWithRealtions(String... ids) {
 Session session = (Session) em.getDelegate();
 Criteria c = session.createCriteria(Cell.class)
 .setFetchMode(incomingRelations, FetchMode.SELECT)
 .setFetchMode(outgoingRelations, FetchMode.SELECT)
 .add(Restrictions.in(id, Arrays.asList(ids)));
 ListCell results = c.list();
 for(Cell cell : results){
 Hibernate.initialize(cell.getIncomingRelations());
 Hibernate.initialize(cell.getOutgoingRelations());
 }
 return results;
 }

 @Override
 public ListCell loadCellWithNeighbourRelations(String... ids) {
 ListCell cells = loadCellWithRealtions(ids);
 for(Cell c : cells){
 for(Relation r : c.getIncomingRelations()){
 Hibernate.initialize(r.getSource().getIncomingRelations());
 Hibernate.initialize(r.getSource().getOutgoingRelations());
 }
 for(Relation r : c.getOutgoingRelations()){
 Hibernate.initialize(r.getTarget().getIncomingRelations());
 Hibernate.initialize(r.getTarget().getOutgoingRelations());
 }
 }
 return cells;
 }



 So the first method executes one query and 2 subselects to find a cell and
 all relations, the second method, iterate over each relation and do the
 same. So I pretty much will have something like 3+r*3 selects on db, where
 r is the number of relations right.

 Ok, to be a bit fair with the tests, I've ran this for the same node 10
 times (get a chance to warm the caches), exclude the longest and smallest
 result, and then took a mean of it. Here's the results:

 EhCache: 70ms
 Plain Hibernate: 550ms

 I still don't have a version of neo4j code running integrated in the app
 server, but the idea is to use REST API. Running the query on the REST API
 took over 2 seconds on average, but due the large size of the response,
 network lagging was the issue. So I ran the same query 10 times using the
 web console, and the average time for neo was 300ms

 Before asking anything I do know that we will have more complex queries
 where neo will shine, but I need to improve those results in order to sell
 it here :), with those numbers, ppl will just say that having a cache and
 using Relational model would suffice.

 Anything I could do to improve this?

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

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


Re: [Neo4j] How to boost performance?

2011-11-23 Thread Peter Neubauer
Vinicius,
in real-world usages, you probably want to build a REST API that
operates on domain and usecase level. Shuffling 6K nodes forth and
back and resolve properties sounds not good to me, given the REST
discovery overhead of the JSON representation. At the very least, you
could do

START n = node(3)
MATCH n--()--(x)
return ID(x), x.name


Which will give you only the minimum data you need to perform the
operations initially and please management :)

Just my 2c

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              - NOSQL for the Enterprise.
http://startupbootcamp.org/    - Öresund - Innovation happens HERE.



On Wed, Nov 23, 2011 at 12:54 PM, Vinicius Carvalho
java.vinic...@gmail.com wrote:
 Hi Peter, thanks, that indeed boosts to lower 10 ms, but we really need to
 access the nodes to perform the operations.

 I know that to be fair on a test, we should be running an embedded version
 of neo4j inside the appserver, after all the cache resides in the same JVM.

 But I'm not worried with performance against cache, just would like to have
 a faster access versus the RDBMS.

 I'm working on a version using an embedded read only db pointing to the
 server data files, hope it boosts performance a lot :). I'll be fare and
 give the same amount of memory as I would give to the cache, so I can
 benefit from Object caching on neo as well.

 Regards

 On Wed, Nov 23, 2011 at 11:44 AM, Peter Neubauer 
 peter.neuba...@neotechnology.com wrote:

 Vinicius,
 in order to cut down on the REST JSON overhead (which you don't have
 in the RDBMS case), maybe you could look at just counting the results,
 something like

 START n = node(3)
 MATCH n--()--(x)
 return count(x)

 And see what happens?

 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              - NOSQL for the Enterprise.
 http://startupbootcamp.org/    - Öresund - Innovation happens HERE.



 On Wed, Nov 23, 2011 at 11:54 AM, Vinicius Carvalho
 java.vinic...@gmail.com wrote:
  Hi there, I've posted a few days ago about the POC I'm doing here at my
  company. I have some initial numbers and I'd like to ask for some help
 here
  in order to promote neo4j here in LMI Ericsson.
 
  I've loaded a mySQL db with a really simple entity, that pretty much only
  represents a node and relations (only properties it has is an UID and x/y
  space coordinate for each node)
 
  The DB contains 250.000 cells and 19. relations stored in a myISAM table,
  indexed only by it's primary key. Please find the DDL for the two tables.
 
  CREATE TABLE  `pci`.`cells` (
   `id` varchar(32) collate utf8_bin NOT NULL,
   `x_pos` double default NULL,
   `y_pos` double default NULL,
   `pci` smallint(6) default '0',
   PRIMARY KEY  (`id`)
  )
 
  CREATE TABLE  `pci`.`relations` (
   `id` int(11) NOT NULL auto_increment,
   `source` varchar(32) collate utf8_bin default NULL,
   `target` varchar(32) collate utf8_bin default NULL,
   PRIMARY KEY  (`id`),
   KEY `src_idx` (`source`),
   KEY `src_target` (`target`)
  )
 
  So as you can see, a simple secondary table contains the relationship
 with
  source and targets pointing to the cells table.
 
  I've loaded this exact same DB into a neoserver running on the same
  machine: A Blade with 26 cpus (6 cores each) and 16gb RAM.
 
  One of the requirements we have is to find all associations of my
  associations. Something that in neo I did like this:
 
  START n = node(3)
  MATCH n--()--(x)
  return x
 
  For this specific node it returns 6475 nodes.
 
  I have tested this before using Hibernate in two modes: without a L2
 cache,
  and with an L2 Cache (Ehcache standalone no replication).
  Here's a snippet of the code that loads it, so you can understand what's
  going under the hood:
 
 
  @Override
  public ListCell loadCellWithRealtions(String... ids) {
  Session session = (Session) em.getDelegate();
  Criteria c = session.createCriteria(Cell.class)
  .setFetchMode(incomingRelations, FetchMode.SELECT)
  .setFetchMode(outgoingRelations, FetchMode.SELECT)
  .add(Restrictions.in(id, Arrays.asList(ids)));
  ListCell results = c.list();
  for(Cell cell : results){
  Hibernate.initialize(cell.getIncomingRelations());
  Hibernate.initialize(cell.getOutgoingRelations());
  }
  return results;
  }
 
  @Override
  public ListCell loadCellWithNeighbourRelations(String... ids) {
  ListCell cells = loadCellWithRealtions(ids);
  for(Cell c : cells){
  for(Relation r : c.getIncomingRelations()){
  Hibernate.initialize(r.getSource().getIncomingRelations());
  Hibernate.initialize(r.getSource().getOutgoingRelations());
  }
  for(Relation r : c.getOutgoingRelations()){
  Hibernate.initialize

Re: [Neo4j] Neo4j Spatial build / run problems

2011-11-23 Thread Peter Neubauer
Daniel,
try this:

curl -X POST 
http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/addSimplePointLayer
-H Content-Type:application/json -d '{layer:geom, lat:lat,
lon:lon}'
curl -X POST http://localhost:7474/db/data/node -H
Content-Type:application/json -H Accept:application/json -d
'{lon: 15.2, lat: 60.1}'
curl -X POST -H Content-Type:application/json -d
'{layer:geom,node:http://localhost:7474/db/data/node/5}'
http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/addNodeToLayer
curl -X POST -H Content-Type:application/json -d
'{layer:geom,minx:15.0,maxx:15.3,miny:60.0,maxy:60.2}'
http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/findGeometriesInLayer

Does that work?

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              - NOSQL for the Enterprise.
http://startupbootcamp.org/    - Öresund - Innovation happens HERE.



On Wed, Nov 23, 2011 at 12:30 PM, danielb danielbercht...@gmail.com wrote:
 Hi Peter,

 I am more stuck today than yesterday oO I can't get the index to appear in
 the indexmanager any more. First I dropped the database and started from
 zero:

 C:\neo4j-community-1.5\binNeo4j.bat start

 SERVICE_NAME: Neo4j-Server
        TYPE               : 10  WIN32_OWN_PROCESS
        STATE              : 2  START_PENDING
                                (NOT_STOPPABLE, NOT_PAUSABLE,
 IGNORES_SHUTDOWN)
        WIN32_EXIT_CODE    : 0  (0x0)
        SERVICE_EXIT_CODE  : 0  (0x0)
        CHECKPOINT         : 0x0
        WAIT_HINT          : 0x7d0
        PID                : 2132
        FLAGS              :

 C:\neo4j-community-1.5\binb:

 B:\curl http://localhost:7474/db/data/
 {
  relationship_index : http://localhost:7474/db/data/index/relationship;,
  node : http://localhost:7474/db/data/node;,
  relationship_types : http://localhost:7474/db/data/relationship/types;,
  neo4j_version : 1.5,
  batch : http://localhost:7474/db/data/batch;,
  extensions_info : http://localhost:7474/db/data/ext;,
  node_index : http://localhost:7474/db/data/index/node;,
  reference_node : http://localhost:7474/db/data/node/0;,
  extensions : {
    CypherPlugin : {
      execute_query :
 http://localhost:7474/db/data/ext/CypherPlugin/graphdb/execute_query;
    },
    SpatialPlugin : {
      addEditableLayer :
 http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/addEditableLayer;,
      addCQLDynamicLayer :
 http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/addCQLDynamicLayer;,
      updateGeometryFromWKT :
 http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/updateGeometryFromWKT;,
      findGeometriesInLayer :
 http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/findGeometriesInLayer;,
      addGeometryWKTToLayer :
 http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/addGeometryWKTToLayer;,
      getLayer :
 http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/getLayer;,
      addSimplePointLayer :
 http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/addSimplePointLayer;,
      addNodeToLayer :
 http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/addNodeToLayer;
    },
    GremlinPlugin : {
      execute_script :
 http://localhost:7474/db/data/ext/GremlinPlugin/graphdb/execute_script;
    }
  }
 }
 B:\curl -d layer=geomlon=lonlat=lat
 http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/addSimplePointLayer
 [ {
  outgoing_relationships :
 http://localhost:7474/db/data/node/2/relationships/out;,
  data : {
    layer_class : org.neo4j.gis.spatial.EditableLayerImpl,
    layer : geom,
    geomencoder : org.neo4j.gis.spatial.encoders.SimplePointEncoder,
    geomencoder_config : lon:lat,
    ctime : 1322045456422
  },
  traverse : http://localhost:7474/db/data/node/2/traverse/{returnType};,
  all_typed_relationships :
 http://localhost:7474/db/data/node/2/relationships/all/{-list||types},
  property : http://localhost:7474/db/data/node/2/properties/{key};,
  self : http://localhost:7474/db/data/node/2;,
  properties : http://localhost:7474/db/data/node/2/properties;,
  outgoing_typed_relationships :
 http://localhost:7474/db/data/node/2/relationships/out/{-list||types},
  incoming_relationships :
 http://localhost:7474/db/data/node/2/relationships/in;,
  extensions : {
  },
  create_relationship :
 http://localhost:7474/db/data/node/2/relationships;,
  paged_traverse :
 http://localhost:7474/db/data/node/2/paged/traverse/{returnType}{?pageSize,leaseTime};,
  all_relationships :
 http://localhost:7474/db/data/node/2/relationships/all;,
  incoming_typed_relationships :
 http://localhost:7474/db/data/node/2/relationships/in/{-list||types}
 } ]
 B:\curl -X POST http://localhost:7474/db/data/index/node/ -H Content-Type:
 application/json -d '{name:geom, config:{provider:spatial}}'
 {
  message : Unexpected character (''' (code 39)): expected a valid value
 (number, String, array, object, 'true', 'false

  1   2   3   4   5   6   7   8   9   10   >