Re: [Neo4j] Question about REST interface concurrency

2011-04-18 Thread Peter Neubauer
Stephen, did you fork the code? Would be good to merge in the changes or at least take a look at them! Cheers, /peter neubauer GTalk:      neubauer.peter Skype       peter.neubauer Phone       +46 704 106975 LinkedIn   http://www.linkedin.com/in/neubauer Twitter     

[Neo4j] Multitenancy in neo4j

2011-04-18 Thread ntankovic
Hi all, I'm facing a situation to develop a multitenant graph environment. I heard from some of you guys that this is planned for neo4j server. Is this neo4j server only or will I also be possible to use this on neo4j embedded engine? -- View this message in context:

Re: [Neo4j] Multitenancy in neo4j

2011-04-18 Thread Jim Webber
Hello, Multi-tenant in a graph can be easy: simply use a different sub-graph for each tenant and let your application code bind to you a specific subgraph. If you want to go to the next step and have physically separate databases, that's harder. Are there reasons for wanting to do this, such

Re: [Neo4j] Architecturing Neo4J database

2011-04-18 Thread Mattias Persson
2011/4/17 Dima Gutzeit dima.gutz...@mailvision.com: Tobias, thank you very much for your quick response. Hi Dima, Estimated number of relationships is ten times number of nodes, which makes it 20 billion. Number of properties for each node is ~10 and for each relationship is ~5. Currently

Re: [Neo4j] getting neighbors of OSM waynode

2011-04-18 Thread Reinhard Käferböck
Hi Craig, In my application the user clicks somewhere on the map, then I need to find the closest waynode to the mouseclick-position. Can this be done by the procedure I described earlier? My definition of neighbour nodes: Let's say we have nodes from n1, n2, ... n9 Then we have the ways w1 and

Re: [Neo4j] Multitenancy in neo4j

2011-04-18 Thread ntankovic
Yes, that seems to be the least complicated solution. But I'm think in a more complicated way :) In need a graph model that will combine multi-tenancy problem with authorization problem in each tenant. I think that these two problems are similar: both a tenant (organization) and a user from

Re: [Neo4j] Multitenancy in neo4j

2011-04-18 Thread Tobias Ivarsson
If you by multitenancy simply mean that you want to have multiple separate graph database, you can do that as easily as: GraphDatbaseService graphdb1 = new EmbeddedGraphDatabase( /path/to/your/first/graphdb ); GraphDatbaseService graphdb2 = new EmbeddedGraphDatabase( /path/to/your/second/graphdb

Re: [Neo4j] How to combine both traversing and index queries?

2011-04-18 Thread Mattias Persson
Hi Ville, 2011/4/14 Ville Mattila vi...@mattila.fi: Hi there, I am somehow stuck with a problem of combining traversing and queries to indices efficiently - something like finding all people with a name starting with Vil* two steps away from a reference node. Traversing all friends within

Re: [Neo4j] How to combine both traversing and index queries?

2011-04-18 Thread Michael Hunger
Would it be also possible to go the other way round? E.g. have the index-results (name:Vil*) as starting point and traverse backwards the two steps to your start node? (Either using a traversal or the shortest path graph algo with a maximum way-length)? Cheers Michael Am 18.04.2011 um 11:03

Re: [Neo4j] Multitenancy in neo4j

2011-04-18 Thread Mattias Persson
I've taken part writing an application very similar to yours, with organisations, groups, users and content... and security on those. The security model it uses in the graph is something like http://wiki.neo4j.org/content/ACL where a single database contains tens of thousands of organisations,

Re: [Neo4j] How to combine both traversing and index queries?

2011-04-18 Thread Mattias Persson
2011/4/18 Michael Hunger michael.hun...@neotechnology.com: Would it be also possible to go the other way round? E.g. have the index-results (name:Vil*) as starting point and traverse backwards the two steps to your start node? (Either using a traversal or the shortest path graph algo with a

Re: [Neo4j] Architecturing Neo4J database

2011-04-18 Thread Dima Gutzeit
On Mon, Apr 18, 2011 at 11:40 AM, Mattias Persson matt...@neotechnology.com wrote: 2011/4/17 Dima Gutzeit dima.gutz...@mailvision.com: Tobias, thank you very much for your quick response. Hi Dima, Estimated number of relationships is ten times number of nodes, which makes it 20

Re: [Neo4j] [neo4j] Exposing Webadmin

2011-04-18 Thread Jacob Hansson
Georg, Like you noticed and like Jim mentioned, the server will pick up on the domain you are using, but the actual URI structure is fixed. You are supposed to be able to change the mount points for the various server components, by setting these properties in your server config:

Re: [Neo4j] [neo4j] Exposing Webadmin

2011-04-18 Thread Jacob Hansson
Looked over the configuration properties I mentioned, and it seems I was incorrect, am unable to reproduce the problems I saw before. Doing something like: org.neo4j.server.webadmin.management.uri=/asd/ Will make the server move management stuff to that URI, and webadmin will follow suit. So for

Re: [Neo4j] Architecturing Neo4J database

2011-04-18 Thread Michael Hunger
Dima, yes, you can write Server Plugins (and Extensions) and then just put those jars in your servers plugin directory. They will be picked up and be available as REST endpoints for your client applications to consume. Those can also be implemented on top of your domain model, so that you don't

Re: [Neo4j] [neo4j] Exposing Webadmin

2011-04-18 Thread Jim Webber
Hey Jake, [with my RESTafarian hat on] Will make the server move management stuff to that URI, and webadmin will follow suit. So for your case, you should be able to do: org.neo4j.server.webadmin.data.uri=/neo4jdb/db/data/ org.neo4j.server.webadmin.management.uri=/neo4jdb/db/manage/ I

Re: [Neo4j] Architecturing Neo4J database

2011-04-18 Thread Michael Hunger
1) Plugins can only expose REST endpoints that are added to node, relationship and graphdb URIs, return types are restricted to nodes, relationships, paths, primitives and collections thereof. 2) Extensions can add arbitrary REST endpoints. You could also write an Extension that sets up its

[Neo4j] No way to delete index using REST API?

2011-04-18 Thread Todd Chaffee
I am playing with release 1.3 (nice work!) and trying to get the PHP REST implementation to work with the new named indexes. I noticed there is no way to delete an index using the REST API? From the java api I think this would be analogous to Index.delete()? In the wild maybe it wouldn't be

Re: [Neo4j] How to combine both traversing and index queries?

2011-04-18 Thread Willem-Paul Stuurman
Hi Ville, We ran into a similar problem basically wanting to search only part of the graph using Lucene. We used traversing to determine the nodes to search from and from there on use Lucene to do a search on nodes connected to the nodes from the traverse result. We solved it as follows: -

[Neo4j] Starting neo4j Server doesn't return to promt

2011-04-18 Thread Stephan Hagemann
Hello group, I just realized that since upgrading to Neo4j 1.3 my deployment is broken. It seems to be due to the fact that when starting up, the server does not return to a prompt (I noticed this locally also - I need to press enter to get the prompt). Vlad (the deployment script) thus probably

[Neo4j] Meta Model component and Neo4J REST interface

2011-04-18 Thread Davi Bandeira
Hello group, I've been using Neo4J for quite a while now but I reached a point I need some help: I have an ontology and I would like to model my neo4j nodes (the ones I will create) based on properties, classes, etc from my ontology. I'm also using JENA API for this purpose (to get information

Re: [Neo4j] Strange performance difference on different machines

2011-04-18 Thread Tobias Ivarsson
Hi Bob, What happens here is that you perform a tiny operation in each transaction, so what you are really testing here is how fast your file system can flush, because with such tiny transactions all of the time is going to be spent in transactional overhead (i.e. flushing transaction logs to the