Re: [Neo4j] Enhanced API rewrite

2011-08-07 Thread Peter Neubauer
Niels, this sounds very interesting. Given the role of properties being unary edges, that would mean that any classic Neo4j property would now be a Node with one Property in the new Vertex sense? Having Vertices for EVERYTHING will of course make the node-implementation much more important than

[Neo4j] Problem with datastore

2011-08-07 Thread ahmed.elsharkasy
I have a problem , i am using BatchInserterIndex and during my work sometimes i need to use the method getNodeById in graph database service and as i cant open two instances on the same datastore i had to shutdown the index first and open an instance of graph database service and then shutdown it

Re: [Neo4j] Problem with datastore

2011-08-07 Thread Peter Neubauer
Hi Ahmed, the Batchinserter system is working with Longs instead of nodes - otherwise you should be able to do much the same as in the normal API, see http://components.neo4j.org/neo4j/1.4.1/apidocs/org/neo4j/graphdb/index/BatchInserterIndex.html for getting a nodeId from the BatchInserterIndex,

[Neo4j] Neo4j Licensing

2011-08-07 Thread Manav Goel
Hi After reading Agpl license again, I am still not able to understand it! My question is pretty simple. I am creating a website which uses neo4j as its database. Now if I want high availability and monitoring for my db , do I need commercial license ? or Agpl3 will be fine with my

Re: [Neo4j] Problem with datastore

2011-08-07 Thread ahmed.elsharkasy
Yes thanks a lot this saves the problem regarding getNodeById but what about having to get the graph database service to start a transaction or to commit? can i do the same with out having to initiate a graph database service instance? -- View this message in context:

[Neo4j] cant use index after commit

2011-08-07 Thread ahmed.elsharkasy
i deleted some nodes and committed and was successfuly deleted but in the same run i tried to start my batch index again and i faced this exception Exception in thread main java.lang.RuntimeException: org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out:

Re: [Neo4j] Problem with datastore

2011-08-07 Thread Peter Neubauer
Ahmed, The BatchInserter us totally without transactions and only good for one thread. You need to use the normal transactional database API to run in normal production. /peter Sent from my phone. On Aug 7, 2011 2:36 PM, ahmed.elsharkasy ahmed.elshark...@gmail.com wrote: Yes thanks a lot this

Re: [Neo4j] cant use index after commit

2011-08-07 Thread ahmed.elsharkasy
i am having this exception thrown in tx.finish , this means that the commit is not made but i dont know why -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/cant-use-index-after-commit-tp3233038p3233067.html Sent from the Neo4j Community Discussions

Re: [Neo4j] Problem with datastore

2011-08-07 Thread ahmed.elsharkasy
but when i used method Node.delete() to delete the node , it throws an exception until i added the transaction how can i delete a node or a relationship with batch operations without transactions? -- View this message in context:

Re: [Neo4j] Problem with datastore

2011-08-07 Thread Peter Neubauer
Ahmed, Could we take a look at your code somewhere so we can see what things look like? /peter Sent from my phone. On Aug 7, 2011 3:02 PM, ahmed.elsharkasy ahmed.elshark...@gmail.com wrote: but when i used method Node.delete() to delete the node , it throws an exception until i added the

Re: [Neo4j] cant use index after commit

2011-08-07 Thread Rick Bullotta
Which version? 1.4 or 1.4.1? From: user-boun...@lists.neo4j.org [user-boun...@lists.neo4j.org] On Behalf Of ahmed.elsharkasy [ahmed.elshark...@gmail.com] Sent: Sunday, August 07, 2011 8:42 AM To: user@lists.neo4j.org Subject: [Neo4j] cant use index

Re: [Neo4j] Enhanced API rewrite

2011-08-07 Thread Niels Hoogeveen
Hi Peter, Thanks for showing an interest. A Property is indeed a unary edge in the Enhanced API and therefore (potentially) backed by a Node, but that Node doesn't contain the value. All property values are still stored the way they are stored in the standard API. If someone however

Re: [Neo4j] cant use index after commit

2011-08-07 Thread ahmed.elsharkasy
1.4 -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/cant-use-index-after-commit-tp3233038p3233172.html Sent from the Neo4j Community Discussions mailing list archive at Nabble.com. ___ Neo4j mailing list

Re: [Neo4j] Problem with datastore

2011-08-07 Thread ahmed.elsharkasy
Transaction tx2 = graphDb.beginTx(); node.delete(); graphDb.index().forNodes(wordsIndexName).remove(node); tx2.success(); although i am having a batch inserter index and i want to use it to delete the node and remove it from the batch index but i could not so i used the normal operations could

Re: [Neo4j] cant use index after commit

2011-08-07 Thread Rick Bullotta
Give 1.4.1 a try. On Aug 7, 2011, at 10:36 AM, ahmed.elsharkasy ahmed.elshark...@gmail.com wrote: 1.4 -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/cant-use-index-after-commit-tp3233038p3233172.html Sent from the Neo4j Community Discussions

Re: [Neo4j] Unique Constaint on Index

2011-08-07 Thread etc1
Not sure I understand this: A consistent, but hackish, attempt to acquire a cluster-wide lock is to remove a non-existent node; what does this mean, exactly; code sample? -Original Message- From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On Behalf Of etc3 Sent:

Re: [Neo4j] cant use index after commit

2011-08-07 Thread Chris Gioran
Hi Ahmed, if you are still having trouble, could you please provide a bare bones test case that reliably reproduces the problem? cheers, CG On Sun, Aug 7, 2011 at 6:56 PM, ahmed.elsharkasy ahmed.elshark...@gmail.com wrote: Are you sure no other reason? -- View this message in context:

Re: [Neo4j] Neo4j Licensing

2011-08-07 Thread Jim Webber
Hello Manav, I am not a lawyer, so what follows here is an opinion. My question is pretty simple. I am creating a website which uses neo4j as its database. Now if I want high availability and monitoring for my db , do I need commercial license ? or Agpl3 will be fine with my use case.

Re: [Neo4j] Unique Constaint on Index

2011-08-07 Thread etc1
I see, that makes sense, ty Does this code work the same for embedded single node and cluster high availability graph db's? -Original Message- From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On Behalf Of Michael Hunger Sent: Sunday, August 07, 2011 1:04 PM To:

Re: [Neo4j] cant use index after commit

2011-08-07 Thread Michael Hunger
Ahmed, please make sure not to mix BatchInserter and the normal API in the same program. Batch-Inserter does not support removal of nodes and relationships. Cheers Michael Am 07.08.2011 um 18:22 schrieb Chris Gioran: Hi Ahmed, if you are still having trouble, could you please provide a

Re: [Neo4j] Unique Constaint on Index

2011-08-07 Thread Michael Hunger
Yeah it is the same code, locks are held across the cluster. An explicit locking API will make it in one of the future versions of Neo4j, it has not been decided when that will happen. Cheers Michael Am 07.08.2011 um 19:20 schrieb etc1: I see, that makes sense, ty Does this code work the

Re: [Neo4j] Problem with datastore

2011-08-07 Thread Michael Hunger
If you have indexed the node before (in the batch-inserter) then you might later use the index (with the same name) to retrieve the node and delete it. You can also reach that node later by knowing its id or by traversing to it via intermediate relationships. Batch insertion is faster because

Re: [Neo4j] Neo4j Licensing

2011-08-07 Thread Peter Neubauer
Manav, Also, contact me for a good startup - commercial setup. We are not in the business of stripping startups bare, so I am sure we can work it out :) /peter Sent from my phone. On Aug 7, 2011 7:19 PM, Jim Webber j...@neotechnology.com wrote: Hello Manav, I am not a lawyer, so what follows

Re: [Neo4j] Node#getRelationshipTypes

2011-08-07 Thread Mattias Persson
2011/8/6 Niels Hoogeveen pd_aficion...@hotmail.com This is the thread about store layer changes for type/direction, and in my opinion this is still quite low hanging fruit. Sure, the impact needs to be tested rigorously, which may take considerable time, but the implementation is quite

[Neo4j] neo4j spatial via rest, weird error

2011-08-07 Thread Boris Kizelshteyn
When one of my nodes is selected by a findgeometriesinlayer query the plugin throws the following error. I can't tell what's different about this node. Any ideas where I should look? BTW, I tried to remove the relationship to the rtree index and then re-attach, but that doesn't help. Other nodes

Re: [Neo4j] neo4j spatial via rest, weird error

2011-08-07 Thread Michael Hunger
Probably one of the gemoetry attributes was just (for instance 0) so that it got encoded as a property with an integer type not a double as expected. Probably the SimplePointEncoder should be a bit more forgiving and use Number.doubleValue() on the actual value it gets back. so changing

Re: [Neo4j] Neo4j Licensing

2011-08-07 Thread Charles Bedon
Hello If you use HA then your code also needs to be open source Well, more than open source, your code has to be GPL-compatible - Charles Edward Bedón Cortázar ITIL Foundation Certified Open Source Network Inventory for the masses!

Re: [Neo4j] Node#getRelationshipTypes

2011-08-07 Thread Niels Hoogeveen
Yes, let's not argue about something as elusive as the definition of low hanging fruit. In the mean time I wrote down my suggestions for store refactoring more succinctly and added some more suggestions. Niels Date: Sun, 7 Aug 2011 22:09:48 +0200 From: matt...@neotechnology.com To:

[Neo4j] is there a limit to how much data rest batch can take?

2011-08-07 Thread Boris Kizelshteyn
I'm getting a weird error when batching a large dataset (about 200 calls), it's below. Any thoughts? Many thanks! - 500 Unable to commit transaction - == html - == head - == meta http-equiv=Content-Type content=text/html; charset=ISO-8859-1/ - == titleError 500 Unable to commit

Re: [Neo4j] is there a limit to how much data rest batch can take?

2011-08-07 Thread Boris Kizelshteyn
I should add that I can insert the same calls one by one without error. What could it be? On Sun, Aug 7, 2011 at 8:31 PM, Boris Kizelshteyn bo...@popcha.com wrote: I'm getting a weird error when batching a large dataset (about 200 calls), it's below. Any thoughts? Many thanks! - 500

[Neo4j] sub-graphs

2011-08-07 Thread Niels Hoogeveen
While I am at it, let's post another brain dump. A couple of weeks ago, I worked on SortedTree/IndexRelationships in an attempt to solve the densely-connected-node-problem. SortedTree is a Btree layed-out in the graph, sorted by some function on a node (eg. the nodeId, or a property value).

[Neo4j] Indices missing on database copy

2011-08-07 Thread WBT
By the way, thanks to Michael and T. noppanit for your quick replies! Grace and peace, WBT ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user