[Neo4j] Fwd: Sync databases

2011-09-13 Thread Eddy Respondek
I recently posted the following topic on the Gremlin users list and I've
been directed here. Apparently Michael Hunger is the man I want to talk to
:)

It seems there are a few other people interested in finding out my results
as well.


Forwarded conversation
Subject: Sync databases


From: *Eddy Respondek* 
Date: Wed, Sep 14, 2011 at 11:30 AM
To: gremlin-us...@googlegroups.com


This may be a little off topic but maybe someone has done something similar
before.

Basically I have a separate Wordpress site (php/mysql) which I've been
extending significantly and I've setup another server on the same network
for graph db testing (neo4j/tinkerpop/python-bulbs). I'm confident with my
graph setup now and would like to attempt to get something small into
development so I can monitor the results. I want to do a simple "like"
relationship between users and articles.

That means I need to keep an identical index of user ids and article ids in
the graph db. I know how to update the id's when a new user or article is
created, deleted, etc. What I don't know is the correct way to ensure data
integrity in case something goes wrong like the graph db server crashes,
etc.

Does anyone have any thoughts on the best way to do this?

--
From: *Marko Rodriguez* 
Date: Wed, Sep 14, 2011 at 11:44 AM
To: gremlin-us...@googlegroups.com


Hey Eddy,

Someone might be able to help you here, but the guy who will give you the
two page rattle on such matters is Michael Hunger on the Neo4j users list.
I've read him talking about similar things --- "cross db transactions"-style
stuff.

You might want to post your thoughts to that list.

Marko.

http://markorodriguez.com

--
From: *James Thornton* 
Date: Wed, Sep 14, 2011 at 12:34 PM
To: gremlin-us...@googlegroups.com


Hi Eddy -

You should definitely post this question to the Neo4j list as well because I
would be interested in Michael's ideas on this.

One approach would be to use a message-passing library like ZeroMQ (
http://www.zeromq.org/) to set up a communication channel between PHP and
Python. This will allow you to write to both MySQL and Neo4j when you create
a new user.

ZeroMQ is stupid fast. You can send millions of requests per second (
http://www.zeromq.org/results:10gbe-tests-v031), and it supports pub/sub and
muticast so you can write to multiple devices/programs at once (
http://zguide.zeromq.org/page:all).

Here are the PHP and Python bindings:

* http://www.zeromq.org/bindings:php
* http://www.zeromq.org/bindings:python

JSON is probably the easiest way to serialize data, or you could use a
binary serialization library like MessagePack.

I'm working on creating a batch loader for Bulbs that uses ZeroMQ to send
requests to a Java/Jython server running the Neo4jBatchGraph implementation
Marko just added (
https://groups.google.com/d/topic/gremlin-users/muuylAEZKrQ/discussionZeroMQ)
-- I'll post an example soon.

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


Re: [Neo4j] GremlinPlugin in REST

2011-09-13 Thread Javier de la Rosa
Thank you for the very quick response and fix. I'll try the new snapshot.

Regards!

On Tue, Sep 13, 2011 at 16:39, Peter Neubauer
 wrote:
> Wohow,
> this is actually a bug introduced when we added Maps as parameter
> types. I added a test for it in the gremlin-plugin, and fixed it in
> server, 
> https://github.com/neo4j/community/commit/ed42542e191de9966e1b5ada80bf8a6684bd6d1d
>
> As snapshots get out, you should be able to run it normally in Neo4j
> Server 1.5-SNAPSHOT.
>
> Thanks for reporting it - it surfaces only when you do a GET on the
> Gremlin plugin URL!
>
> Cheers,
>
> /peter neubauer
>
> GTalk:      neubauer.peter
> Skype       peter.neubauer
> Phone       +46 704 106975
> LinkedIn   http://www.linkedin.com/in/neubauer
> Twitter      http://twitter.com/peterneubauer
>
> http://www.neo4j.org               - Your high performance graph database.
> http://startupbootcamp.org/    - Öresund - Innovation happens HERE.
> http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party.
>
>
>
> On Tue, Sep 13, 2011 at 10:11 PM, Javier de la Rosa  wrote:
>> Hi, all,
>>
>> Today I have downloaded the last version of Neo4j, thus, 1.5.M01. I
>> run some of my tests and some of them falied, what related to Gremlin
>> plugin.
>> If I run using Neo4j 1.4.1 I get the next:
>>
>> $ curl 
>> "http://localhost:7474/db/data/ext/GremlinPlugin/graphdb/execute_script";
>> {
>>  "extends" : "graphdb",
>>  "description" : "execute a Gremlin script with 'g' set to the
>> Neo4jGraph and 'results' containing the results. Only results of one
>> object type is supported.",
>>  "name" : "execute_script",
>>  "parameters" : [ {
>>    "description" : "The Gremlin script",
>>    "optional" : false,
>>    "name" : "script",
>>    "type" : "string"
>>  }, {
>>    "description" : "JSON Map of additional parameters for script variables",
>>    "optional" : true,
>>    "name" : "params",
>>    "type" : "string"
>>  } ]
>> }
>>
>> But when I use the Neo4j 1.5.M01:
>>
>> $ curl 
>> "http://localhost:7474/db/data/ext/GremlinPlugin/graphdb/execute_script";
>> 
>> 
>> 
>> Error 500 INTERNAL_SERVER_ERROR
>> 
>> HTTP ERROR 500
>> Problem accessing /db/data/ext/GremlinPlugin/graphdb/execute_script. 
>> Reason:
>>     INTERNAL_SERVER_ERRORCaused
>> by:java.lang.NullPointerException
>>        at 
>> org.neo4j.server.rest.repr.ExtensionPointRepresentation$ParameterRepresentation.serialize(ExtensionPointRepresentation.java:110)
>>        [...]
>>        at 
>> org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
>> 
>> Powered by Jetty://
>> 
>> [...]
>> 
>>
>> 
>> 
>>
>>
>> Is that normal? is there something that I'm doing wrong?
>>
>> Thanks.
>>
>> --
>> Javier de la Rosa
>> http://versae.es
>> ___
>> 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
>



-- 
Javier de la Rosa
http://versae.es
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] GremlinPlugin in REST

2011-09-13 Thread Peter Neubauer
Wohow,
this is actually a bug introduced when we added Maps as parameter
types. I added a test for it in the gremlin-plugin, and fixed it in
server, 
https://github.com/neo4j/community/commit/ed42542e191de9966e1b5ada80bf8a6684bd6d1d

As snapshots get out, you should be able to run it normally in Neo4j
Server 1.5-SNAPSHOT.

Thanks for reporting it - it surfaces only when you do a GET on the
Gremlin plugin URL!

Cheers,

/peter neubauer

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

http://www.neo4j.org               - Your high performance graph database.
http://startupbootcamp.org/    - Öresund - Innovation happens HERE.
http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party.



On Tue, Sep 13, 2011 at 10:11 PM, Javier de la Rosa  wrote:
> Hi, all,
>
> Today I have downloaded the last version of Neo4j, thus, 1.5.M01. I
> run some of my tests and some of them falied, what related to Gremlin
> plugin.
> If I run using Neo4j 1.4.1 I get the next:
>
> $ curl 
> "http://localhost:7474/db/data/ext/GremlinPlugin/graphdb/execute_script";
> {
>  "extends" : "graphdb",
>  "description" : "execute a Gremlin script with 'g' set to the
> Neo4jGraph and 'results' containing the results. Only results of one
> object type is supported.",
>  "name" : "execute_script",
>  "parameters" : [ {
>    "description" : "The Gremlin script",
>    "optional" : false,
>    "name" : "script",
>    "type" : "string"
>  }, {
>    "description" : "JSON Map of additional parameters for script variables",
>    "optional" : true,
>    "name" : "params",
>    "type" : "string"
>  } ]
> }
>
> But when I use the Neo4j 1.5.M01:
>
> $ curl 
> "http://localhost:7474/db/data/ext/GremlinPlugin/graphdb/execute_script";
> 
> 
> 
> Error 500 INTERNAL_SERVER_ERROR
> 
> HTTP ERROR 500
> Problem accessing /db/data/ext/GremlinPlugin/graphdb/execute_script. 
> Reason:
>     INTERNAL_SERVER_ERRORCaused
> by:java.lang.NullPointerException
>        at 
> org.neo4j.server.rest.repr.ExtensionPointRepresentation$ParameterRepresentation.serialize(ExtensionPointRepresentation.java:110)
>        [...]
>        at 
> org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
> 
> Powered by Jetty://
> 
> [...]
> 
>
> 
> 
>
>
> Is that normal? is there something that I'm doing wrong?
>
> Thanks.
>
> --
> Javier de la Rosa
> http://versae.es
> ___
> 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] GremlinPlugin in REST

2011-09-13 Thread Javier de la Rosa
Hi, all,

Today I have downloaded the last version of Neo4j, thus, 1.5.M01. I
run some of my tests and some of them falied, what related to Gremlin
plugin.
If I run using Neo4j 1.4.1 I get the next:

$ curl "http://localhost:7474/db/data/ext/GremlinPlugin/graphdb/execute_script";
{
  "extends" : "graphdb",
  "description" : "execute a Gremlin script with 'g' set to the
Neo4jGraph and 'results' containing the results. Only results of one
object type is supported.",
  "name" : "execute_script",
  "parameters" : [ {
"description" : "The Gremlin script",
"optional" : false,
"name" : "script",
"type" : "string"
  }, {
"description" : "JSON Map of additional parameters for script variables",
"optional" : true,
"name" : "params",
"type" : "string"
  } ]
}

But when I use the Neo4j 1.5.M01:

$ curl "http://localhost:7474/db/data/ext/GremlinPlugin/graphdb/execute_script";



Error 500 INTERNAL_SERVER_ERROR

HTTP ERROR 500
Problem accessing /db/data/ext/GremlinPlugin/graphdb/execute_script. Reason:
INTERNAL_SERVER_ERRORCaused
by:java.lang.NullPointerException
at 
org.neo4j.server.rest.repr.ExtensionPointRepresentation$ParameterRepresentation.serialize(ExtensionPointRepresentation.java:110)
[...]
at 
org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)

Powered by Jetty://

[...]






Is that normal? is there something that I'm doing wrong?

Thanks.

-- 
Javier de la Rosa
http://versae.es
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


[Neo4j] New Survey link

2011-09-13 Thread Allison Sparrow
Hi all,

There were some issues with the survey link sent out, so for those of you
had trouble, you can access it here: https://www.surveymonkey.com/s/YLRVS6G

You don't need to have an account on Surveymonkey or sign in, for whatever
issues feel free to email me.

thanks

*Allison Sparrow* *
**Marketing Manager | Neo Technology*
+19499036091 | @ayeeson 
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] Close with running transaction II

2011-09-13 Thread Peter Neubauer
Vaccaro,
can you reliably reproduce this in a unit test? that would be very
helpful in doing something about 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               - Your high performance graph database.
http://startupbootcamp.org/    - Öresund - Innovation happens HERE.
http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party.



On Wed, Sep 7, 2011 at 8:34 PM, Vaccaro, Kristen M  wrote:
> Hi, I'm experiencing the same problem that is mentioned in a thread from a 
> while back on this list 
> (http://lists.neo4j.org/pipermail/user/2011-March/007746.html). This was a 
> case where someone had a thread running when they try to close the database 
> and keeping having a dirty log with "INFO: Close invoked with 1 running 
> transaction(s)". As far as I know I close every transaction I open. The 
> response to the other poster was that there is no way to force all 
> transactions to end before shutting down -- which leaves me with the 
> question: what are the risks of leaving the code as is? And what are the best 
> practices to avoid this problem? (again, as far as I can see all transactions 
> are ended).
> Thanks,
> Kristen
>
> -Original Message-
> From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On 
> Behalf Of Nuo Yan
> Sent: Wednesday, September 07, 2011 2:12 PM
> To: Neo4j user discussions
> Subject: Re: [Neo4j] Server couldn't start after java.lang.OutOfMemoryError
>
>
> According to this: http://neo4j.org/forums/#nabble-td3248377, I upgraded to 
> 1.4.1 and the problem goes away.
>
> I guess there must be a bug in the 1.4.0 REST API that leaks classloader 
> memory or so, and GC didn't happen as expected in PermGen. Anyways, it looks 
> great after upgrading to 1.4.1. Memory monitoring graph shows GC happens as 
> desired in PermGen.
>
> Thank you!
>
> On Sep 6, 2011, at 11:30 PM, Nuo Yan wrote:
>
>> Hey Adriano and everyone,
>>
>> I finally got a chance to monitor/profile the neo4j process with VisualVM 
>> when I run my set of tests.
>>
>> It seems that after running the set of tests once, ~ 50M of PermGen was 
>> used. However, subsequent test runs simply multiples that, which worries me 
>> a little. After the fourth run of the tests, ~ 200M of PermGen space was 
>> used.
>>
>> My app accesses to neo4j completely using the REST interface. During the 
>> test run, new nodes and relationships are  being frequently created. There 
>> are batch requests that performs multiple actions at once (number of actions 
>> is reasonable, really small in this case, usually a few, or tenth). There 
>> are also gremlin script executions through REST (send the gremlin query over 
>> to the server through REST API). Most of the gremlin queries are traversals 
>> and returns the vertices or edges match the constraints.
>>
>> Total number of nodes created during a test run is only hundreds. There are 
>> more relationships, but at most thousands.
>>
>> That's basically all of the things that are done against neo4j server during 
>> a test run. Given this, do you think the PermGen usage is reasonable? Or do 
>> you think something is very wrong? I worried that setting a larger PermGen 
>> would only postpone but not resolve the OutOfMemory problem.
>>
>> Let me know if any other info is needed.
>>
>> Thanks much,
>> Nuo
>>
>>
>>
>>
>> On Aug 29, 2011, at 6:09 AM, Adriano Henrique de Almeida wrote:
>>
>>> Hi Nuo, any results here?
>>>
>>> Cheers
>>>
>>> 2011/8/26 Nuo Yan 
>>>
 Hey Adriano,

 Thanks very much for your reply. I will try with MaxPermSize.

 It's on my local machine, we are evaluating Neo4j and do not have it on
 production yet. I'm accessing the server through the REST APIs, the app is
 separate from Neo. I will see if I can do some profiling on Neo when I run
 my tests.

 Thanks,
 Nuo



 On Fri, Aug 26, 2011 at 3:53 PM, Adriano Henrique de Almeida <
 adrianoalmei...@gmail.com> wrote:

> Hey Nuo,
>
> wrapper.java.maxmemory and Xmx won't help, since it is a PermGenSpace
> problem, and they only deal with HeapSpace. Did you try with:
> -XX:*MaxPermSize
> **?*
>
> Anyway, something very wrong is happening, since you have few nodes.
>
> It is happening only on production, or development also? If it is
 happening
> on development, try to isolate the situation where you're stucking the
> permgen. Run you app with VisualVM, for instance, or any other profiler.
> Aren't you dealing with classloaders on your app?
>
> Cheers
>
> Adriano Almeida
>
>
>
> 2011/8/26 Jim Webber 
>
>> Hi Nuo,
>>
>> if you're using Neo4j server then you can edit the value in
>> conf/neo-wrapper.conf
>>
>> wrapper.java.maxmemory=

Re: [Neo4j] Traversal REST body language

2011-09-13 Thread Peter Neubauer
http://docs.neo4j.org/chunked/snapshot/rest-api-traverse.html#rest-api-traversal-using-a-return-filter

HTH!

Cheers,

/peter neubauer

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

http://www.neo4j.org               - Your high performance graph database.
http://startupbootcamp.org/    - Öresund - Innovation happens HERE.
http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party.



On Tue, Sep 13, 2011 at 1:18 PM, jadell  wrote:
> Thanks Peter.  Great turnaround time on the answer, as always!
>
> -- Josh
>
> --
> View this message in context: 
> http://neo4j-community-discussions.438527.n3.nabble.com/Traversal-REST-body-language-tp3331584p3332322.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] Neo4j Öresund meetup next Tuesday

2011-09-13 Thread Peter Neubauer
Hi all,
in case you are interested in Graphs, Beer and Pizza, I suggest you
show up next Tuesday in Malmö for the first ever Neo4j Öresund meetup.

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

See you 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               - Your high performance graph database.
http://startupbootcamp.org/    - Öresund - Innovation happens HERE.
http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party.
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


[Neo4j] Berlin Graphdb Meetup on Mon Sept 19, 0700PM at c-base

2011-09-13 Thread Michael Hunger
Hey Graphistas in Germany,

The next meetup is scheduled as I'm in Berlin on Monday. I would like to chat 
about our Spring Data Graph library (which I'm the project lead of).

I would like to make a tour through the features of the Spring Data Graph 
library which provides object graph mapping and seamless integration with the 
Spring Framework. We'll have a discussion of the API, usage, examples and the 
demo application at http://cineasts.net If there is interest I can also 
outline some of the design decisions behind the library.

Hope to see you there.

Cheers

Michael

http://www.meetup.com/graphdb-berlin/events/33353022/
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] sdg: shorter __type__?

2011-09-13 Thread Michael Hunger
The index uses the class name.

I agree on the issues with the refactorings.

The problem is that you would have to keep a history of class names which is 
also annoying and can break.

So you suggest that we introduce a facility that maps classes to other names.
like.
This could also be used for index names and other places.
We probably have to add a component-scan at startup to collect all this 
information to have it available but that should be possible. So for every run 
we have the information type -> fully qualified classname.

@NodeEntity(type="u")
class Person {
}

after refactoring:

@NodeEntity(type="u")
class User {
}

Sounds good, will do it. Can you create two JIRA tickets for this and the 
@Indexed(level).

Thanks for the suggestions

Michael

Am 13.09.2011 um 11:50 schrieb Gonfi den Tschal:

> (maybe this was discussed before, or I'm completely wrong, couldn't
> find anything about it)
> 
> The __type__ string currently stores the fully qualified class name.
> 
> This has 2 drawbacks for me:
> 
> 1) it's looong.
> In my case, having millions of small objects, the __type__ attribute
> blows up the disk storage size (gigabytes).
> (maybe i should not be using sdg for this use case at all?)
> 
> 2) refactoring. moving the class breaks lookup, renaming the class
> breaks lookup.
> 
> 
> As I remember it is problematic or impossible to use two different
> @NodeEntity classes with the same
> class name (eg "Employee") in another package. I don't remember where
> I saw that, maybe I'm wrong.
> If that is the case then the __type__ could just store the simple
> class name (and have a map somewhere
> to find the original class again).
> 
> 
> Suggestion:
> An attribute on @NodeEntity and @RelationshipEntity to use just the
> simple class name "useShortClassName=true",
> or an attribute to specify the value for the __type__field explicitly
> like typename="foo".
> ___
> 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] Traversal REST body language

2011-09-13 Thread jadell
Thanks Peter.  Great turnaround time on the answer, as always!

-- Josh

--
View this message in context: 
http://neo4j-community-discussions.438527.n3.nabble.com/Traversal-REST-body-language-tp3331584p3332322.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


Re: [Neo4j] Server Starting Error

2011-09-13 Thread Reza Ameri
Hi Peter,
It is great! thank you.

On Tue, Sep 13, 2011 at 3:06 PM, Peter Neubauer <
peter.neuba...@neotechnology.com> wrote:

> Reza,
> we are right now looking into Service install issues, will keep you
> posted, hopefully you can try a new SNAPSHOT build soon.
>
> Cheers,
>
> /peter neubauer
>
> GTalk:  neubauer.peter
> Skype   peter.neubauer
> Phone   +46 704 106975
> LinkedIn   http://www.linkedin.com/in/neubauer
> Twitter  http://twitter.com/peterneubauer
>
> http://www.neo4j.org   - Your high performance graph database.
> http://startupbootcamp.org/- Öresund - Innovation happens HERE.
> http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party.
>
>
>
> On Sun, Sep 11, 2011 at 7:26 AM, Reza Ameri  wrote:
> > Hi,
> > I was trying to install and start Neo4j 1.41 on my Vista 32bit System, it
> is
> > installed but not starts!
> > The error is
> > "[SC] StartService FAILED 1053:
> > The service did not respond to the start or control request in a timely
> > fashion."
> >
> > Any Idea? It is right that I work on it slowly but the fact is as a hobby
> I
> > think it is not bad speed, really!
> > Any way Neo4j is the coolest open source product I've ever seen.
> > Thank you community. ;)
> > ___
> > 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] Server Starting Error

2011-09-13 Thread Peter Neubauer
Reza,
we are right now looking into Service install issues, will keep you
posted, hopefully you can try a new SNAPSHOT build soon.

Cheers,

/peter neubauer

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

http://www.neo4j.org               - Your high performance graph database.
http://startupbootcamp.org/    - Öresund - Innovation happens HERE.
http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party.



On Sun, Sep 11, 2011 at 7:26 AM, Reza Ameri  wrote:
> Hi,
> I was trying to install and start Neo4j 1.41 on my Vista 32bit System, it is
> installed but not starts!
> The error is
> "[SC] StartService FAILED 1053:
> The service did not respond to the start or control request in a timely
> fashion."
>
> Any Idea? It is right that I work on it slowly but the fact is as a hobby I
> think it is not bad speed, really!
> Any way Neo4j is the coolest open source product I've ever seen.
> Thank you community. ;)
> ___
> 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] sdg: shorter __type__?

2011-09-13 Thread Gonfi den Tschal
(maybe this was discussed before, or I'm completely wrong, couldn't
find anything about it)

The __type__ string currently stores the fully qualified class name.

This has 2 drawbacks for me:

1) it's looong.
In my case, having millions of small objects, the __type__ attribute
blows up the disk storage size (gigabytes).
(maybe i should not be using sdg for this use case at all?)

2) refactoring. moving the class breaks lookup, renaming the class
breaks lookup.


As I remember it is problematic or impossible to use two different
@NodeEntity classes with the same
class name (eg "Employee") in another package. I don't remember where
I saw that, maybe I'm wrong.
If that is the case then the __type__ could just store the simple
class name (and have a map somewhere
to find the original class again).


Suggestion:
An attribute on @NodeEntity and @RelationshipEntity to use just the
simple class name "useShortClassName=true",
or an attribute to specify the value for the __type__field explicitly
like typename="foo".
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] sdg inheritance a la MappedSuperclass

2011-09-13 Thread Gonfi den Tschal
yeah, this would be great. much better.


On Tue, Sep 13, 2011 at 12:17 PM, Michael Hunger
 wrote:
> Hey Gonfi,
>
> thanks for the feedback.
>
> The only issue with having @NodeEntity on the parent are the indexing queries.
>
> Otherwise there are no issues I know of.
>
> So what I'm thinking of is to add a "level" attribute to the @Indexed 
> annotation, which can have the following values:
>
> * global -> index name "nodes" is used
> * type -> index name for the type where the field declared is used
> * instance -> index name for the type of the actual instance is used
>
>
> Does this cover the issues mentioned?
>
> Michael
>
> Am 13.09.2011 um 11:02 schrieb Gonfi den Tschal:
>
>> The inheritance model as described here
>> http://forum.springsource.org/showthread.php?108657-Inheritance-in-spring-data-graph
>> is nice when one wants to do polymorphic queries, when the types
>> should be looked at together at once.
>> For example Person with Customer and Employee and a general search is 
>> desired.
>>
>> However, when the types should be treated separately, and they just
>> happen to have a common superclass because
>> they share common functionality then I'd wish to have something like
>> JPA @MappedSuperclass.
>> As it is now, when I annotate my subtypes with @NodeEntity then the
>> attributes of the superclass are simply ignored.
>> There is no annotation to also include those fields in the Entity.
>>
>> This means I'm left with the 2 choices:
>>
>> 1) The subtypes have the @NodeEntity annotation.
>> Move all fields down to the impls, which can cause a lot of
>> boilerplate code. Using a common parent class becomes
>> almost useless. Then, the Repository interfaces (those extending
>> GraphRepository) are created for each subtype, and
>> the types are queried separately.
>>
>> 2) The supertype has the @NodeEntity annotation.
>> Keep the common fields in the superclass. If there is an @Indexed
>> String then it can be queried only through the
>> parent class (the Repository for the parent class). If one wants to
>> only find certain subtypes then he has to loop through
>> the result and filter. With millions of objects, as is the case for
>> me, this is the higher cost.
>>
>> So my wish is to have the @MappedSuperclass feature. And it would be
>> nice if such facts were documented so
>> that not everyone has to ask or figure out himself by trial and error.
>> My assumptions caused me to change code back
>> and forth a couple of times. It seems to me that the developers are
>> spending a lot of their time answering questions.
>>
>> best,
>> gonfi
>> ___
>> 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] sdg inheritance a la MappedSuperclass

2011-09-13 Thread Michael Hunger
Hey Gonfi,

thanks for the feedback.

The only issue with having @NodeEntity on the parent are the indexing queries.

Otherwise there are no issues I know of.

So what I'm thinking of is to add a "level" attribute to the @Indexed 
annotation, which can have the following values:

* global -> index name "nodes" is used
* type -> index name for the type where the field declared is used
* instance -> index name for the type of the actual instance is used


Does this cover the issues mentioned?

Michael

Am 13.09.2011 um 11:02 schrieb Gonfi den Tschal:

> The inheritance model as described here
> http://forum.springsource.org/showthread.php?108657-Inheritance-in-spring-data-graph
> is nice when one wants to do polymorphic queries, when the types
> should be looked at together at once.
> For example Person with Customer and Employee and a general search is desired.
> 
> However, when the types should be treated separately, and they just
> happen to have a common superclass because
> they share common functionality then I'd wish to have something like
> JPA @MappedSuperclass.
> As it is now, when I annotate my subtypes with @NodeEntity then the
> attributes of the superclass are simply ignored.
> There is no annotation to also include those fields in the Entity.
> 
> This means I'm left with the 2 choices:
> 
> 1) The subtypes have the @NodeEntity annotation.
> Move all fields down to the impls, which can cause a lot of
> boilerplate code. Using a common parent class becomes
> almost useless. Then, the Repository interfaces (those extending
> GraphRepository) are created for each subtype, and
> the types are queried separately.
> 
> 2) The supertype has the @NodeEntity annotation.
> Keep the common fields in the superclass. If there is an @Indexed
> String then it can be queried only through the
> parent class (the Repository for the parent class). If one wants to
> only find certain subtypes then he has to loop through
> the result and filter. With millions of objects, as is the case for
> me, this is the higher cost.
> 
> So my wish is to have the @MappedSuperclass feature. And it would be
> nice if such facts were documented so
> that not everyone has to ask or figure out himself by trial and error.
> My assumptions caused me to change code back
> and forth a couple of times. It seems to me that the developers are
> spending a lot of their time answering questions.
> 
> best,
> gonfi
> ___
> 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] sdg inheritance a la MappedSuperclass

2011-09-13 Thread Gonfi den Tschal
The inheritance model as described here
http://forum.springsource.org/showthread.php?108657-Inheritance-in-spring-data-graph
is nice when one wants to do polymorphic queries, when the types
should be looked at together at once.
For example Person with Customer and Employee and a general search is desired.

However, when the types should be treated separately, and they just
happen to have a common superclass because
they share common functionality then I'd wish to have something like
JPA @MappedSuperclass.
As it is now, when I annotate my subtypes with @NodeEntity then the
attributes of the superclass are simply ignored.
There is no annotation to also include those fields in the Entity.

This means I'm left with the 2 choices:

1) The subtypes have the @NodeEntity annotation.
Move all fields down to the impls, which can cause a lot of
boilerplate code. Using a common parent class becomes
almost useless. Then, the Repository interfaces (those extending
GraphRepository) are created for each subtype, and
the types are queried separately.

2) The supertype has the @NodeEntity annotation.
Keep the common fields in the superclass. If there is an @Indexed
String then it can be queried only through the
parent class (the Repository for the parent class). If one wants to
only find certain subtypes then he has to loop through
the result and filter. With millions of objects, as is the case for
me, this is the higher cost.

So my wish is to have the @MappedSuperclass feature. And it would be
nice if such facts were documented so
that not everyone has to ask or figure out himself by trial and error.
My assumptions caused me to change code back
and forth a couple of times. It seems to me that the developers are
spending a lot of their time answering questions.

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


Re: [Neo4j] 5 Questions in 5 Minutes: We want your feedback

2011-09-13 Thread Peter Neubauer
Guys,
I think the right link is https://www.surveymonkey.com/s/YLRVS6G -
would be great if you can take the time, so we all can get a better
picture of where to put in more effort going forward.

Thanks!

Cheers,

/peter neubauer

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

http://www.neo4j.org               - Your high performance graph database.
http://startupbootcamp.org/    - Öresund - Innovation happens HERE.
http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party.



On Tue, Sep 13, 2011 at 1:34 AM, alli...@neotechnology.com via
surveymonkey.com  wrote:
> Hey everyone, it's me again.
>
> We are looking for feedback from our amazing users (you guys), and ask for 5 
> minutes of your time to relay your experience using Neo4j.
>
> Here is a link to the survey:
> https://www.surveymonkey.com/s.aspx?sm=CZXbaXZ3YjtKw0_2ft_2baeZuQ_3d_3d
>
>
> This is much appreciated, and for any questions, feel free to email me at 
> alli...@neotechnology.com
>
> Allison
>
> https://www.surveymonkey.com/optout.aspx?sm=CZXbaXZ3YjtKw0_2ft_2baeZuQ_3d_3d
>
> ___
> 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] Difficulty with spring data graph annotations...

2011-09-13 Thread Michael Hunger
Yep, will do that today.

Just returned from vacation.

Cheers

Michael

Am 18.08.2011 um 03:46 schrieb etc1:

> Mike,
> 
> Are you saying the examples on github have to be updated, or, that I should
> download a newer version, namely, 1.1?
> 
> -Original Message-
> From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On
> Behalf Of Michael Hunger
> Sent: Wednesday, August 17, 2011 4:56 PM
> To: Neo4j user discussions
> Cc: Neo4j user discussions
> Subject: Re: [Neo4j] Difficulty with spring data graph annotations...
> 
> there was a repackaging in 1.1.0
> have to update the examples to 1.1.0
> 
> 
> mobile mail please excuse brevity and typos
> 
> Am 17.08.2011 um 05:59 schrieb "etc1" :
> 
>> I am still having difficulty in getting a simple project to compile in 
>> Eclipse STS. I have a few questions:
>> 
>> What's the difference between annotations in 
>> org.springframework.data.neo4j.annotation and 
>> org.springframework.data.graph.annotation? The @NodeEntity and 
>> @Indexed annotations appear to be defined in both.
>> 
>> I can't seem to figure out why the 
>> relateTo(NodeBacked,RelationshipTyp)
>> methods does not resolve for my entities annotated with @NodeEntity
>> 
>> I'm using the following versions in my pom file...
>> java-version, 1.6
>> org.springframework-version, 3.0.5.RELEASE 
>> org.springframework.roo-version, 1.0.2.RELEASE org.aspectj-version, 
>> 1.6.11.RELEASE org.slf4j-version, 1.6.1 datastore-graph.version, 
>> 1.0.0.RELEASE
>> 
>> 
>> I'm even having trouble getting the hello-worlds example working. 
>> Eclipse complains that "Type mismatch: cannot convert from Class to
> Class> extends NodeBacked>"
>> 
>> @RelatedTo(type = "REACHABLE_BY_ROCKET", elementClass = World.class, 
>> direction = Direction.BOTH)
>>   private Set reachableByRocket;
>> 
>> But why does it complain when World.class is node-backed since it's 
>> marked with @NodeEntity???. I know hello-worlds is meant to be an 
>> example, but it's not helpful when it doesn't work.
>> 
>> Thanks, any help would be appreciated
>> Raffi
>> 
>> ___
>> 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] Using Data Graph and @NodeEntity, API methods not compatible

2011-09-13 Thread Michael Hunger
Hey,

has your problem been solved?

Thanks

Michael

Am 15.08.2011 um 20:37 schrieb etc1:

> I am using GraphDatabaseContext, sorry, I should have been clear on that.
> 
> @Autowired
> private GraphDatabaseContext gds;
>   
> Movie retrievedMovie = (Movie)gds.getNodeById(rainman.getNodeId());
> 
> 
> -Original Message-
> From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On
> Behalf Of Michael Hunger
> Sent: Monday, August 15, 2011 2:00 PM
> To: Neo4j user discussions
> Cc: Neo4j user discussions
> Subject: Re: [Neo4j] Using Data Graph and @NodeEntity, API methods not
> compatible
> 
> you shouldn't use gds with annozated enities 
> 
> the are no nodes etc but the delegate to nodes & rels
> 
> use graphdatabasecontext
> or the repositories
> please see the docs I'm on vacation
> 
> mobile mail please excuse brevity and typos
> 
> Am 15.08.2011 um 19:38 schrieb "etc1" :
> 
>> When annotating an entity class with @NodeEntity, such as ...
>> 
>> @NodeEntity
>> public class Movie {.
>> 
>> ..this appears to cause many neo4j api methods to become incompatible 
>> with the custom entity type, in this case Movie, for example...
>> 
>> Movie rainman = new Movie("Rain Man", 1986).persist();
>> 
>> //can't use Movie type here since, ClassCastException on 
>> org.neo4j.kernel.impl.core.NodeProxy
>> Movie retrievedMovie = (Movie)gds.getNodeById(rainman.getNodeId());
>> 
>> //can't use Movie type, add() take only Node type 
>> gds.getIndex(Movie.class).add(rainman, "name", "Rain Man");
>> 
>> 
>> 
>> ___
>> 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] Traversal REST body language

2011-09-13 Thread Peter Neubauer
Done,
https://github.com/neo4j/community/issues/20, should show up in
http://docs.neo4j.org/chunked/snapshot/rest-api-traverse.html#rest-api-traversal-returning-nodes-below-a-certain-depth
in some hours.

Cheers,

/peter neubauer

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

http://www.neo4j.org               - Your high performance graph database.
http://startupbootcamp.org/    - Öresund - Innovation happens HERE.
http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party.



On Tue, Sep 13, 2011 at 7:20 AM, Peter Neubauer
 wrote:
> Yes Josh,
> that should be true. I could probably create a testcase demonstrating 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               - Your high performance graph database.
> http://startupbootcamp.org/    - Öresund - Innovation happens HERE.
> http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party.
>
>
>
> On Tue, Sep 13, 2011 at 5:20 AM, jadell  wrote:
>> I don't use traversals that much, and I'm trying to help another user.  The
>> docs are a bit ambiguous, so I want to make sure I have this correct. When
>> using a traversal via REST, for the prune_evaluator, I can do this:
>>
>> "prune_evaluator": {
>>    "language" : "builtin",
>>    "name" : "none"
>> }
>>
>> or I can do this:
>>
>> "prune_evaluator": {
>>    "language" : "javascript",
>>    "body" : "...some javascript here..."
>> }
>>
>> In other words, when using a builtin, I give a "name" attribute, and when
>> using another language I give a "body" attribute.
>>
>> And I'm assuming the same holds true for return_filter as well?
>>
>> Thanks
>>
>> -- Josh Adell
>>
>> --
>> View this message in context: 
>> http://neo4j-community-discussions.438527.n3.nabble.com/Traversal-REST-body-language-tp3331584p3331584.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