Re: [Neo4j] Can I keep files as a Property?

2011-11-10 Thread Mattias Persson
You could store the file contents as byte array or something. While there's no limitation on size I'd say that neo4j isn't optimized for those kinds of data and you would get bad performance. Also doing that over REST doesn't sound great. What's your use case? 2011/11/10 musa

Re: [Neo4j] Can't install server as a service on Amazon EC2 Linux

2011-11-10 Thread Mattias Persson
The linux service scripts aren't great in supporting multiple distros. I hope support for amazon/redhat/centos will be available in 1.6.M01 or similar. 2011/11/10 Aseem Kishore aseem.kish...@gmail.com Sorry, should have mentioned that I made sure to do sudo, and sudo works for other commands

Re: [Neo4j] id problem on createNode

2011-11-10 Thread Peter Neubauer
Wow, never seen this before, do you have a full testcase to reproduce 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 

Re: [Neo4j] Sampling a Neo4j instance?

2011-11-10 Thread Chris Gioran
Answers inline. 2011/11/9 Anders Lindström andli...@hotmail.com: Thanks to the both of you. I am very grateful that you took your time to put this into code -- how's that for community! I presume this way of getting 'highId' is constant in time? It looks rather messy though -- is it really

Re: [Neo4j] Sampling a Neo4j instance?

2011-11-10 Thread Michael Hunger
Probably using an index for your nodes (could be an auto-index). And then using an random shuffling of the results? You can pass in a lucene query object or query string to index.query(queryOrQueryObject). Sth like this

[Neo4j] Neo4j 1.5 Boden Bord Released!

2011-11-10 Thread Jim Webber
Hello graphistas! After a successful Milestone 2 release of Neo4j 1.5 Boden Bord and excellent community and customer feedback, we've been busy at work putting the finishing touches to the Neo4j 1.5 GA release which is now available on our downloads page. Since the last milestone you'll find

[Neo4j] How to stop returnable evaluator

2011-11-10 Thread Emil Dombagolla
Dear All, I am writing traverser as follows. i want to stop the returnable evaluator once my condition matching node found , rather evaluating until end of the graph. How i can ask returnable evaluator to stop the traverse and return the nodes. group.traverse(Order.BREADTH_FIRST,

Re: [Neo4j] How to stop returnable evaluator

2011-11-10 Thread Mattias Persson
ReturnableEvaluator returns the things you tell it to return when they are encountered (not at the end of the traversal). The StopEvaluator tells the traverser when to stop traversing a given branch. So if you for example would write a StopEvaluator like: StopEvaluator { public

Re: [Neo4j] osm_import.rb

2011-11-10 Thread grimace
I ended up trying again with just java (but still running with batchInserter), adjusting my memory settings and max heap, it's currently working on the americas.osm file from cloudmade - http://downloads.cloudmade.com/americas#downloads_breadcrumbs. The file is about 99 GB when assembled. I'm

[Neo4j] How to show all nodes and relationships in Neo4j web admin data browser?

2011-11-10 Thread yobi
Is there a way to show all nodes and relationship in Neo4j's web admin data browser? -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/How-to-show-all-nodes-and-relationships-in-Neo4j-web-admin-data-browser-tp3496815p3496815.html Sent from the Neo4j

[Neo4j] How to get results from web admin console?

2011-11-10 Thread yobi
This is kinda a noob issue :) I wanna try out web admin console using Cypher. But this is what I get: cypher START a = node(10) cypher RETURN a cypher == `' expected but `n' found How do you get the results? -- View this message in context:

Re: [Neo4j] Gremlin - how to flatten a tree, and sort

2011-11-10 Thread Kevin Versfeld
hi again I've been trying that query out (slightly modified now to return all nodes of a different kind, but attached to a node in the first set), on a data set of around 100K, and I'm getting an OutOfMemoryError: { message : GC overhead limit exceeded, exception : java.lang.OutOfMemoryError:

Re: [Neo4j] How to get results from web admin console?

2011-11-10 Thread Michael Hunger
Which version of neo4j are you running? Am 10.11.2011 um 15:32 schrieb yobi: This is kinda a noob issue :) I wanna try out web admin console using Cypher. But this is what I get: cypher START a = node(10) cypher RETURN a cypher == `' expected but `n' found How do you get the

[Neo4j] Travers using curl

2011-11-10 Thread Passpart0ut
Dear All, I am trying to travers neo4j using curl and got errors: curl -X POST -H Accept:application/json -H Content-Type:application/json -d {'order:breadth_first , uniqueness:node_global , return_filter:{body:position.endNode().getProperty('name').toLowerCase().contains('pepsi') ,

Re: [Neo4j] Travers using curl

2011-11-10 Thread Michael Hunger
you forgot the first single quote after -d and you have single quotes in your string which you have to replace by double quotes Am 10.11.2011 um 15:46 schrieb Passpart0ut: Dear All, I am trying to travers neo4j using curl and got errors: curl -X POST -H Accept:application/json -H

[Neo4j] START a = node(10) vs START a = (10)

2011-11-10 Thread yobi
In the hosted neo4j (through Heroku) I get an error when running: START a = node(10) RETURN a == `' expected but `n' found But it works when I run: START a = (10) RETURN a According to the documentation the first one should work. Could someone explain why I get the error? -- View this

Re: [Neo4j] START a = node(10) vs START a = (10)

2011-11-10 Thread Michael Hunger
Ah, ok. We running the stable releases on heroku so it is still running 1.4.2 It will be updated to 1.5 today or tomorrow. That's why it is still the old syntax. Thanks for letting us know. Michael Am 10.11.2011 um 16:35 schrieb yobi: In the hosted neo4j (through Heroku) I get an error

Re: [Neo4j] START a = node(10) vs START a = (10)

2011-11-10 Thread yobi
How could you have missed that. Didn't people complain that it wasn't working? :) -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/START-a-node-10-vs-START-a-10-tp3497036p3497120.html Sent from the Neo4j Community Discussions mailing list archive at

Re: [Neo4j] START a = node(10) vs START a = (10)

2011-11-10 Thread Michael Hunger
The didn't assume that an 1.5 version was running there :) Am 10.11.2011 um 17:04 schrieb yobi: How could you have missed that. Didn't people complain that it wasn't working? :) -- View this message in context:

Re: [Neo4j] Neo4j REST server's log files

2011-11-10 Thread andrew ton
Hi David, Thank you for getting back to me!   Finally I can make it work by changing the log level from INFO (by default) to FINEST in the logging.property. I have a question for you though. Currently my project have a problem with uploading data to the store. I created only 1 index for the

[Neo4j] Using 'Spatial' IndexProvider from Within Webadmin

2011-11-10 Thread b m
I want to be able to use the spatial index provider from within Webadmin's Power Tool console. Using this provider works fine in Embedded mode, but what do I need to do to get it installed and usable from within Webadmin? I tried copying the spatial jar and it's dependencies into the

Re: [Neo4j] Gremlin - how to flatten a tree, and sort

2011-11-10 Thread Marko Rodriguez
Hi, I've been trying that query out (slightly modified now to return all nodes of a different kind, but attached to a node in the first set), on a data set of around 100K, and I'm getting an OutOfMemoryError: { message : GC overhead limit exceeded, exception : java.lang.OutOfMemoryError:

[Neo4j] persist() undefined

2011-11-10 Thread Gr3y
Hello I'm having trouble getting STS to acknowledge that the method persist() on an nodeentity is valid. I'm using STS 2.8 which to my knowledge has the newest AJDT plugin. I don't know much about Neo4j yet, and I'm also a beginner with Spring, so maybe I forgot something. My project is

Re: [Neo4j] Neo4j REST server's log files

2011-11-10 Thread David Montag
Hi Andrew, Good to hear that you got the logging sorted out. Regarding the actual issues, it sounds like you're describing two different things. One is that you index ontology nodes in one global index and therefore run into conflicts. The other is that the upload appears to stall for some

Re: [Neo4j] Neo4j REST server's log files

2011-11-10 Thread andrew ton
Hi David, Please read my answers inline below. From: David Montag david.mon...@neotechnology.com To: Neo4j user discussions user@lists.neo4j.org Sent: Thursday, November 10, 2011 11:39 AM Subject: Re: [Neo4j] Neo4j REST server's log files Hi Andrew, Good to

Re: [Neo4j] How to get results from web admin console?

2011-11-10 Thread Johnny Luu
I was using the hosted Neo4j through Heroku. But someone told me that it was using a previous version and will be updated soon. I think that will solve the problem. On Thu, Nov 10, 2011 at 3:42 PM, Michael Hunger michael.hun...@neotechnology.com wrote: Which version of neo4j are you running?

Re: [Neo4j] START a = node(10) vs START a = (10)

2011-11-10 Thread yobi
Oh. All docs in http://docs.neo4j.org/ is for 1.5 so I assumed they were all using the 1.5 syntax =) -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/START-a-node-10-vs-START-a-10-tp3497036p3497963.html Sent from the Neo4j Community Discussions mailing

Re: [Neo4j] How to get results from web admin console?

2011-11-10 Thread yobi
Oh that someone was you haha :) -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/Re-Neo4j-How-to-get-results-from-web-admin-console-tp3496875p3497966.html Sent from the Neo4j Community Discussions mailing list archive at Nabble.com.

[Neo4j] Use Cases - Please tell your story

2011-11-10 Thread jimkaskade
All Neo4J users out there. Can you provide a few sentences on your application/use-case? Some generic examples might include: 1. We use Neo4J to traverse a social graph, calculating degree of separation, centrality, who's connected to whom, who you should know / recommendations, influencers,

Re: [Neo4j] Neo4j REST server's log files

2011-11-10 Thread andrew ton
Hi David, I increased the memory settings in neo4j-wrapper.conf as below # Initial Java Heap Size (in MB) wrapper.java.initmemory=30 # Maximum Java Heap Size (in MB) wrapper.java.maxmemory=1024 However the same problem is still happening. I attach the thread dump to this mail. I appreciate

Re: [Neo4j] Neo4j REST server's log files

2011-11-10 Thread David Montag
Hi Andrew, I don't see anything running in that thread dump. No threads are processing requests. Are you sure it's taking a long time, or is it maybe finished? Try capturing the thread dump exactly when you experience slowness. I'd also suggest bumping the initial heap to at least 512MB or

Re: [Neo4j] Neo4j REST server's log files

2011-11-10 Thread andrew ton
Hi David, The total size of files stored into the db when the problem happened was only 800KB. My RAM is 4G.  I ran the kill command when the problem happened because it just stopped and I did not notice slowness. I will increase the heap to 512MB and test again. Thanks, Andrew

Re: [Neo4j] Neo4j REST server's log files

2011-11-10 Thread David Montag
Can you describe how you see that it stops? Because the thread dump isn't showing anything of significance running. David On Thu, Nov 10, 2011 at 3:28 PM, andrew ton andrewt...@yahoo.com wrote: Hi David, The total size of files stored into the db when the problem happened was only 800KB.

[Neo4j] Save files?

2011-11-10 Thread yobi
Is it possible to save files in Neo4j like CouchDB? Haven't read about it anywhere but wanted to be sure. -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/Save-files-tp3498358p3498358.html Sent from the Neo4j Community Discussions mailing list archive at

Re: [Neo4j] Neo4j REST server's log files

2011-11-10 Thread andrew ton
What I meant the server stops responding to my application's request was my application received a NoHttpResponseException. This is the output in the Eclipse console:  -Uploading  /doc/test/ont/Ontology1320789957941.owl to Neo4J... Nov 10, 2011 3:46:52 PM

Re: [Neo4j] Save files?

2011-11-10 Thread Dmitriy Shabanov
Neo4j don't have that feature, but we build extension. You can see main part of code here https://github.com/animotron/core/blob/master/src/main/java/org/animotron/expression/BinaryExpression.java On Fri, Nov 11, 2011 at 5:06 AM, yobi johnny@yobistore.com wrote: Is it possible to save

Re: [Neo4j] Gremlin - how to flatten a tree, and sort

2011-11-10 Thread Kevin Versfeld
hi, thanks for the quick reply. I need to add some more info (some I left out, some I discovered later) This only happens when I use that gremlin over REST. Executing the gremlin in the webadmin console is pretty quick, and I don't see any memory spikes or anything. What I did (after posting the

Re: [Neo4j] Neo4j REST server's log files

2011-11-10 Thread David Montag
Hi Andrew, Would you like to do a screen sharing session with me Friday PST? That way, I could assess your problem better. Thanks, David On Thu, Nov 10, 2011 at 4:23 PM, andrew ton andrewt...@yahoo.com wrote: What I meant the server stops responding to my application's request was my

Re: [Neo4j] Gremlin - how to flatten a tree, and sort

2011-11-10 Thread Kevin Versfeld
furthermore, I tried a simple query, that returns about the same number of rows (still around 100K), and increased the timeout of my REST call (to several minutes) - and got my OutOfMemoryError again :) latest query is just g.v(293).in('R_Bought'). Running it through the webadmin console is

Re: [Neo4j] Travers using curl

2011-11-10 Thread francoisk6
oops, sorry for the typo and thank you for the reply. I used the below syntax: curl -X POST -H Accept:application/json -H Content-Type:application/json -d '{order:breadth_first , uniqueness:node_global , return_filter:{body:position.endNode().getProperty('name').toLowerCase().contains('pepsi') ,

Re: [Neo4j] Gremlin - how to flatten a tree, and sort

2011-11-10 Thread Marko A. Rodriguez
Hi Kevin, That is unfortunate. Peter is the man to track down such things in Neo4j REST. Hopefully it's something obvious. Glad the REPL and WebAdmin is speedy. Good luck, Marko. http://markorodriguez.com On Nov 10, 2011, at 10:42 PM, Kevin Versfeld kevin.versf...@gmail.com wrote:

Re: [Neo4j] Gremlin - how to flatten a tree, and sort

2011-11-10 Thread Peter Neubauer
Kevin, So the webadmin console is displaying the 100k nodes ok, men but rest barfs? On Nov 11, 2011 6:42 AM, Kevin Versfeld kevin.versf...@gmail.com wrote: furthermore, I tried a simple query, that returns about the same number of rows (still around 100K), and increased the timeout of my REST

Re: [Neo4j] Gremlin - how to flatten a tree, and sort

2011-11-10 Thread Michael Hunger
Kevin, how large is the dataset that is build up? I'm not sure but the REST Plugin and the Webadmin use different implementations where webadmin streams the results with ajax and the REST plugin builds up a full string result. Do you need all of the data? Or would it be possible to page it?

Re: [Neo4j] Save files?

2011-11-10 Thread Peter Neubauer
Oh, that's cool! Got some docs on the usage? This would be a gerat input to a discussion about more data types, especially JSON/subgraphs, binary and DATE. Cheers, /peter neubauer GTalk:      neubauer.peter Skype       peter.neubauer Phone       +46 704 106975 LinkedIn