Re: [Neo4j] Problems building neo4j-rdf module

2011-06-30 Thread Thomas Fritz
Hello I am also interesed in testing Neo4J as a RDF Triple Store. Thanks Marco for pointing to this. If we use the Ouplementation of Tinkerpop for Sail and Neo4J, are there any features Neo4J offers or performance optimizations or other things we can not use in such a setup? I think i have read

[Neo4j] java.io.IOException: Resource temporarily unavailable in MappedPersistenceWindow.java?

2011-06-30 Thread Paul Bandler
When running a test neo4j application on Solaris that I have previously run successfully on Windows I'm encountering the following exception: Caused by: java.io.IOException: Resource temporarily unavailable at sun.nio.ch.FileChannelImpl.map0(Native Method) at

Re: [Neo4j] Webadmin browser dependencies?

2011-06-30 Thread Anders Nawroth
Hi! Hi, Anders. Just wanted to let you know that the 1.4 version of Neoclipse seems to always show all properties as graph decorations, regardless of what is configured/specified. It's because I made the Expanded node mode on by default. I thought that it would be a better default for

[Neo4j] no remote thread-safe API

2011-06-30 Thread Aliabbas Petiwala
is it true that in neo4j there is no remote thread-safe API. This means that when making a multi-threaded solution you run into problems when updating relationships between nodes. Under stress you are likely to want to update a relationship while another thread has a lock and as such you run into

[Neo4j] PHP REST Client for Neo4j 1.3 available

2011-06-30 Thread Todd Chaffee
I just wanted to remind folks that a PHP REST client based on Neo4j V1.3 has been available for some time at http://github.com/tchaffee/Neo4J-REST-PHP-API-client https://github.com/tchaffee/Neo4J-REST-PHP-API-client I am working on finishing up traversals, and other than that it is a complete

[Neo4j] Unable to memory map [was java.io.IOException: Resource temporarily unavailable in MappedPersistenceWindow.java?

2011-06-30 Thread Paul Bandler
Further to an earlier posting I also notice this warning from neo4j which sounds relevant..? Note that the application does continue and eventually complete successfully having taken orders of magnitude longer than when run on windows. This is running on solaris - any suggestions about what

Re: [Neo4j] traversing densely populated nodes

2011-06-30 Thread Aliabbas Petiwala
can you please mail me the code, dataset and results as we too need to evaluate neo4j and your code will come handy thanx On 6/29/11, Agelos Pikoulas agelos.pikou...@gmail.com wrote: My problem pattern is exactly the same as Niels's : A dense-node has millions of relations of a certain

Re: [Neo4j] PHP REST Client for Neo4j 1.3 available

2011-06-30 Thread Anders Nawroth
Hi! Thanks for the reminder! Regarding the wiki: did you just sign up? There's a 24h delay in place at the moment, before you can edit pages. You also have to confirm your email address to get edit permission. /anders On 06/30/2011 11:03 AM, Todd Chaffee wrote: I just wanted to remind folks

Re: [Neo4j] no remote thread-safe API

2011-06-30 Thread Jim Webber
Hi Aliabbas, is it true that in neo4j there is no remote thread-safe API. No. That is a false assertion. The REST API is thread safe since it wraps the same thread-safe code as the Java APIs. There can still be *contention* but there is always thread safety (and ACIDity). Jim

Re: [Neo4j] no remote thread-safe API

2011-06-30 Thread Michael Hunger
The issue there is that your client requests each have their own transaction so there. If you want to execution multiple requests transactionally in one block you should use the new batch-rest API. http://docs.neo4j.org/chunked/milestone/rest-api-batch-ops.html Cheers Michael Am 30.06.2011

Re: [Neo4j] Unable to memory map [was java.io.IOException: Resource temporarily unavailable in MappedPersistenceWindow.java?

2011-06-30 Thread Paul Bandler
A colleague has speculated that it maybe related to permissions. Im on a shared solaris box with no setuid access - can anyone elaborate on whether some specific access rights are required to use memory mapped IO? Sent from my iPhone On 30 Jun 2011, at 11:20, Paul Bandler pband...@cseuk.co.uk

Re: [Neo4j] Unable to memory map [was java.io.IOException: Resource temporarily unavailable in MappedPersistenceWindow.java?

2011-06-30 Thread Michael Hunger
Paul, what version of Solaris are you running that on? We don't have Solaris as part of our build-qa workflow (yet). So I would try to see if there is an ec2 instance that I could just use for that. Cheers Michael Am 30.06.2011 um 13:26 schrieb Paul Bandler: A colleague has speculated that

Re: [Neo4j] traversing densely populated nodes

2011-06-30 Thread Craig Taverner
This topics has come up before, and the domain level solutions are usually very similar, like Norbert's category/proxy nodes (to group by type/direction) and Niels' TimeLineIndex (BTree). I wonder whether we can build a generic user-level solution that can also be wrapped to appear as an internal

Re: [Neo4j] traversing densely populated nodes

2011-06-30 Thread Michael Hunger
The issue being that relationships on disk are not ordered, so that, even when just accessing the few relationships of the one type you still have to scan all rels. For supporting different approaches you either have to change the store-format to handle the storage and loading of relationships

Re: [Neo4j] traversing densely populated nodes

2011-06-30 Thread Niels Hoogeveen
Michael, Is it possible/feasible to change the store-format so relationships are stored partitioned per relationshiptype per direction? What would be the impact of such change? Niels From: michael.hun...@neotechnology.com Date: Thu, 30 Jun 2011 14:10:38 +0200 To: user@lists.neo4j.org

Re: [Neo4j] Database engine using Neo4j

2011-06-30 Thread Craig Taverner
Hi Kriti, I can comment on a few things, especially neo4j-spatial: - Neo4j is certainly good for social networks, and people have used it for that, but I personally do not have experience with that so I will not comment further (others can chip in where necessary). - Neo4j-Spatial is

[Neo4j] PHP REST Client for Neo4j 1.3 available

2011-06-30 Thread Todd Chaffee
Hi Anders, I did just sign up to the wiki. I'll wait 24 hours and give it another try. Thanks, Todd On 30/06/11 12:57, user-requ...@lists.neo4j.org wrote: Message: 3 Date: Thu, 30 Jun 2011 12:51:42 +0200 From: Anders Nawroth and...@neotechnology.com Subject: Re: [Neo4j] PHP REST Client for

Re: [Neo4j] Can I model a Graph data structure without persisting it in DB using Neo4j ?

2011-06-30 Thread V
Any suggestions on this please ? It is really acting as a blocker for me. I have tried multiple alternatives, but I come up with one issue or the other. On Wed, Jun 22, 2011 at 8:51 PM, V vlin...@gmail.com wrote: I am confused, elements is defined as @RelatedTo(type = ELEMENT, elementClass =

[Neo4j] Unique index nodes

2011-06-30 Thread V
I have an element of my node marked with @Indexed String name I want to ensure that when I persist nodes, only one node with that name gets persisted. (I want to throw an error here and ask the user to give a different name) What is the best way to ensure this. Any suggestions ? - Karan

Re: [Neo4j] Unable to memory map [was java.io.IOException: Resource temporarily unavailable in MappedPersistenceWindow.java?

2011-06-30 Thread Paul Bandler
TEST:bandlerp@us2187$ uname -X System = SunOS Node = us2187 Release = 5.10 KernelID = Generic_13-03 Machine = sun4u BusType = unknown Serial = unknown Users = unknown OEM# = 0 Origin# = 1 NumCPU = 16 Sent from my iPhone On 30 Jun 2011, at 12:53, Michael Hunger

Re: [Neo4j] Unique index nodes

2011-06-30 Thread Matt Chambers
I asked this same question a little while ago, the answer is that its up to you to guarantee uniqueness. There are a few different ways to to this, for now I took the easy way out and do all writes with a single thread. I'm basically just using a ThreadPoolExecutor with a single thread and

Re: [Neo4j] BatchInserter with Lucene Index

2011-06-30 Thread Johan Svensson
Hi Dario, Could you post the error message and stacktrace? Did the error happen after initial import but still running in batch inserter mode or normal server/embedded transactional mode? Regards, Johan On Wed, Jun 29, 2011 at 4:30 PM, Dario Rexin dario.re...@xing.com wrote: Hi all,

[Neo4j] graph-collections List class

2011-06-30 Thread Niels Hoogeveen
Today I added a List class to the graph-collections repo: https://github.com/peterneubauer/graph-collections/tree/master/src/main/java/org/neo4j/collections/list The List class implements the java.util.ListNode interface. Niels

Re: [Neo4j] graph-collections List class

2011-06-30 Thread Peter Neubauer
Guys, if you can write some illustrative test code for the different collections, I could undertake to put some documentation skeleton into place that can be merged into the main manual and look like http://docs.neo4j.org/chunked/snapshot/. To start with, we could have it separately though. WDYT?

Re: [Neo4j] problem with neography and index.

2011-06-30 Thread Michael Hunger
you have to escape the url index value otherwise the jersey rest framework consumes it silently. I had this problem when working on the birdies demo app. Took me a while to work that out. see http://github.com/jexp/birdies and http://birdies.heroku.com Michael Sent from my iBrick4 Am

Re: [Neo4j] Unique index nodes

2011-06-30 Thread Michael Hunger
I'll look into that in the next few days. Michael Sent from my iBrick4 Am 30.06.2011 um 16:25 schrieb Matt Chambers yougotroo...@gmail.com: I asked this same question a little while ago, the answer is that its up to you to guarantee uniqueness. There are a few different ways to to this,

Re: [Neo4j] graph-collections List class

2011-06-30 Thread Niels Hoogeveen
For neo4j.graph-collections.list.List I suggest the following. The graph collections List class is an implementation of the java.util.List class, parameterized with Node, supporting all methods, except subList(int start, int end). Whenever nodes need to be stored as a list, the List class can

Re: [Neo4j] graph-collections List class

2011-06-30 Thread Mattias Persson
I have done a lot of these structures already, so before (re)doing a lot of these structures take a look at: https://svn.neo4j.org/components/utils/trunk/src/main/java/org/neo4j/util/(the old subversion repository, but the utils are quite up2date). Please take a look there and feel free to pull

[Neo4j] Does anyone use Solaris for neo4j app? [was Unable to memory map [was java.io.IOException: Resource temporarily unavailable in MappedPersistenceWindow.java?

2011-06-30 Thread Paul Bandler
Further to the problems reported below from running a test application on a server class Solaris box (M4000) I re-ran the test but with the setting 'use_memory_mapped_buffers' set to false. This had the +ve effect of avoiding the warnings and nio exceptions mentioned before so clearly there's

Re: [Neo4j] graph-collections List class

2011-06-30 Thread Niels Hoogeveen
Hi Mattias, I just looked through the code in neo4j-util and will try to port relevant classes to graph-collections. I have one question, though. Several methods make a call to GraphDatabaseUtil.acquireWriteLock, which performs one operation: the removal of the property

Re: [Neo4j] User Digest, Vol 51, Issue 164

2011-06-30 Thread Agelos Pikoulas
Dear Graphistas, Im glad this topic is getting traction, cause I think this issue is *MAJOR*. I firmly believe that if neo4j wants to become the Web 2/3 ready and Social 1/2 ready graphdb, it has to be able to accommodate fast Traversals among hundreds of thousands or millions of artifact nodes

Re: [Neo4j] traversing densely populated nodes

2011-06-30 Thread Michael Hunger
Just putting Angelos answer in this thread where it belongs :) Dear Graphistas, Im glad this topic is getting traction, cause I think this issue is *MAJOR*. I firmly believe that if neo4j wants to become the Web 2/3 ready and Social 1/2 ready graphdb, it has to be able to accommodate fast

Re: [Neo4j] Can I model a Graph data structure without persisting it in DB using Neo4j ?

2011-06-30 Thread Michael Hunger
Neo4j is not implementing storing and traversing memory only structures. So it would be really advisable to do that in your domain layer only. I'll look into the elements returning null. I thought I already solved that some time ago. Which version of SDG are you using? Cheers Michael Am

Re: [Neo4j] Problems building neo4j-rdf module

2011-06-30 Thread Marko Rodriguez
Hi, You may want to have references to different graph representations. For example: GraphDatabaseService neo4j = new EmbeddedGraphDatabase(/tmp/neo4j); Graph graph = new Neo4jGraph(neo4j); Sail sail = new GraphSail(graph); With 'neo4j' you have a reference to the GraphDatabaseService and can

Re: [Neo4j] traversing densely populated nodes

2011-06-30 Thread Niels Hoogeveen
In theory the approach I described earlier could work, though there are some pitfalls to the current implementation that need ironing out before this can become a recommended approach. The choice of Timeline instead of Btree may actually be the wrong choice after all. I chose Timeline because

Re: [Neo4j] traversing densely populated nodes

2011-06-30 Thread Craig Taverner
In the amanzi-index I link all indexed nodes into the index tree, so traversals are straight up the tree. Of course this also means that there are at least as many relationships as indexed nodes. I was reviewing Michaels code for the relationship expander, and think that is a great idea,

Re: [Neo4j] Does anyone use Solaris for neo4j app? [was Unable to memory map [was java.io.IOException: Resource temporarily unavailable in MappedPersistenceWindow.java?

2011-06-30 Thread Paul Bandler
Oops - it seems it might not be neo4j that's chewing up the CPUby making my log4j calls disabled with 'if(_log.isDebugEnabled)' pre-conditions to avoid the expense of constructing the strings that might or might get logged, I was able to improve the times for the 'hot-cache' tests described

Re: [Neo4j] Can I model a Graph data structure without persisting it in DB using Neo4j ?

2011-06-30 Thread V
I am using the latest version 1.1.0.M1 Please have a look and let me know Karan On Fri, Jul 1, 2011 at 2:29 AM, Michael Hunger michael.hun...@neotechnology.com wrote: Neo4j is not implementing storing and traversing memory only structures. So it would be really advisable to do that in your

Re: [Neo4j] traversing densely populated nodes

2011-06-30 Thread Niels Hoogeveen
The relationship expander approach could certainly work for me. I already have a meta layer containing information about relationship types, so it would be a minor upgrade to store the type of relationship expander per relationship type and to access relationships through the expander instead

Re: [Neo4j] Does anyone use Solaris for neo4j app? [was Unable to memory map [was java.io.IOException: Resource temporarily unavailable in MappedPersistenceWindow.java?

2011-06-30 Thread Michael Hunger
Paul, that's great news. I already wanted to ask you to profile it. Could you please re-post the new numbers ? Unfortunately we have no Solaris Box right now and on amazon ec2 there are just some OpenSolaris AMI images from 2009 available (don't know how compatible they are with Solaris 5.10

Re: [Neo4j] traversing densely populated nodes

2011-06-30 Thread Niels Hoogeveen
So far we have only considered the situation where one side of the relationship leads to a densely populated node, while the other side of the relationship leads to a non-densely populated node. This is likely to be the most prevalent situation (eg. category or class nodes), but it is