Re: [Neo4j] lock issue on Ubuntu at startup

2012-01-06 Thread Jim Webber
Hi Olivier, Can you rule out NFS issues by copying the cleanly shutdown database to a local volume and start it from there? Jim ___ NOTICE: THIS MAILING LIST IS BEING SWITCHED TO GOOGLE GROUPS, please register and consider posting at https://groups.go

Re: [Neo4j] Running server against database created with neo4j-embedded python

2012-01-06 Thread Jim Webber
Hi Sean, Once you've shutdown your python program, you just configure the Neo4j server to look in the same directory by tweaking the values in conf/neo4j-server.properties. The property you need to tweak is: org.neo4j.server.database.location= Then you can do: "bin/neo4j start" to get the serv

Re: [Neo4j] Using AStar Algorithm with neo4j REST API

2011-12-08 Thread Jim Webber
Hi Israel, Neo4j doesn't have an "in-memory" mode as you allude to - it's the same database whether you run it remotely or in your app (or container). Is your reasoning because the app itself has a large footprint such that it contends with Neo4j within the same process? Jim

Re: [Neo4j] Standalone server and transactions

2011-12-02 Thread Jim Webber
> Doesn't matter how you play the words, you need transactions somewhere. And > with REST it is only available as a database plugin. > For most people it is just not worth the effort (especially who's not coming > from Java background) and they will turn around. If you use the REST API as-is, yo

Re: [Neo4j] Standalone server and transactions

2011-12-02 Thread Jim Webber
At the risk of re-iterating this: Neo4j in embedded mode supports as many connections as the application where you embed it. Jim On 2 Dec 2011, at 20:38, zolv wrote: > Anyway, You are talking now about things that doesn't exist and I have to > implement them on my own. > > I can't imagine RDB

Re: [Neo4j] Standalone server and transactions

2011-12-02 Thread Jim Webber
> > It is a long topic on itself: Where the business logic belongs to - the > server or the client. > > But the point is that far the most common use-case is to write the business > logic on the client, not on the server. > > The business logic on the server has already failed multiple times i

Re: [Neo4j] Standalone server and transactions

2011-12-02 Thread Jim Webber
Hello, > Do You know ANY (mature) RDBMS which is: provides many connection at the > same time, transaction-less and is still popular? I don't know any (even > SQLite has transactions). And now, somebody (not meaning You) want to > convince me that transactions are not needed. At least there strang

Re: [Neo4j] Named matched with depth gives error

2011-12-01 Thread Jim Webber
Hi Dima, There's a nightly snapshot that you can grab if you're interested in being on the bleeding edge. It's in the Neo4j repo: http://m2.neo4j.org/ And so the latest Cypher build is here: http://m2.neo4j.org/org/neo4j/neo4j-cypher/1.6-SNAPSHOT/ You can just add a snapshot dependency to you

Re: [Neo4j] Standalone server and transactions

2011-12-01 Thread Jim Webber
Hi, > 1. DB server must be able to work as standalone server > 2. DB server must provide transactions. > Can anybody guide me through these 2 things in Neo4j world? 1. Neo4j works as a standalone (or clustered) server which is accessible through the REST API. 2. Neo4j is ACID transactional with

Re: [Neo4j] Using in-memory DB for unit tests

2011-11-29 Thread Jim Webber
Hi Jon, // This one results in a not found exception on the 'asn' property. @Test public void testIncoming() { Node network = svc.createNode(); Node as = svc.createNode(); as.setProperty( "asn", "123" ); as.createRelationshipTo( network, DynamicRel

Re: [Neo4j] Network accessible hostname

2011-11-28 Thread Jim Webber
Hi there, Your front end won't really care whether you use http://j2ee.my.site.com:7474/db/data or http://j2ee.my.site.com/db/data since both are valid URIs. If you use the default port (80) then you don't need to specify the port in the URI, and so http://j2ee.my.site.com/db/data will be fine

Re: [Neo4j] Network accessible hostname

2011-11-25 Thread Jim Webber
Hi Peter, I think I might have verbally volunteered for this issue. Can you assign it to me? Email would help me to remember :-) Jim ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user

Re: [Neo4j] Neo4j Data Capacities

2011-11-24 Thread Jim Webber
Hi Pekka, There are already (prominent) folks using Neo4j in that kind of credit card fraud detection. I hope some of them could volunteer their experiences (though not necessarily their proprietary clever stuff) on this list. Jim ___ Neo4j mailing li

Re: [Neo4j] Neo4j server plugin

2011-11-20 Thread Jim Webber
Hi Shrieesh, Take a look here: http://mvnrepository.com/artifact/org.neo4j/server-api/1.5 You'll get the Maven/Ivy/whatever config you need for those dependencies. Jim ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinf

Re: [Neo4j] Scalability Roadmap

2011-11-18 Thread Jim Webber
Hey Matt, > Not to nitpick, but that's for an ideal graph partitioning, not graph > sharding overall, right? Eg the problem is solvable in many specific > domains? You're right - it's the general case. I was just making the point that sharding isn't something that's an afternoon's hacking to com

Re: [Neo4j] Scalability Roadmap

2011-11-18 Thread Jim Webber
> 1/ Supernode 2012, around Q2. > 2/ Sharding and horizontal scalability 2013, around Q1. These are guesses not promises :-) Jim PS - sharding graphs is NP complete. In theory no general solution exists. ___ Neo4j mailing list User@lists.neo4j.org h

[Neo4j] Neo4j 1.5 "Boden Bord" Released!

2011-11-10 Thread Jim Webber
ese features forward and for helping to make Neo4j the product you want it to be. Jim Webber Chief Scientist @ Neo Technology ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user

Re: [Neo4j] Sampling a Neo4j instance?

2011-11-09 Thread Jim Webber
Hi Anders, When you do getAllNodes, you're getting back an iterable so as you point out the sample isn't random (unless it was written randomly to disk). If you're prepared to take a scattergun approach and tolerate being disk-bound, then you can ask for getNodeById using a made-up ID and deal

Re: [Neo4j] Native UUID support?

2011-11-09 Thread Jim Webber
Hey Peter, I think you raise a good point. We'll need some kind of ID for objects stored in (v)shards, but that's likely to be some kind of hierarchical ID (so that we can locally and globally refer to objects in and across shards). I think here the question boils down to: can we add (fast) sup

Re: [Neo4j] Simple Java Example

2011-11-08 Thread Jim Webber
Hi Mike, > In order to use Neo4J at all I must: > > install 'GIT' > git https://github.com/jimwebber/neo4j-tutorial.git (40 mB) > go through the tutorial No, I was just offering a pointer to a useful resource to get you going. In order to use Neo4j you must download it and configure it in your

Re: [Neo4j] Simple Java Example

2011-11-07 Thread Jim Webber
Hi Mike, Neo4j's default APIs are all Java. Have a look at the Neo4j tutorial here: https://github.com/jimwebber/neo4j-tutorial It will take you from the core API right the way through indexing, traversers, Cypher, and into the REST API should you want to go that far up the stack. And it's alr

Re: [Neo4j] Cypher->Pickle?

2011-11-05 Thread Jim Webber
+1 I love Cypher's ASCII art, and Josh's idea of drawing Cypher inside a whiteboarded graph is wonderful. I really don't want Cypher to pander to SQL. Cypher is about graph matching and should be awesome at it - its duty to us newbies is simply to be humane not identical to what I (think I) alr

Re: [Neo4j] Paper: G2 : A Graph Processing System for Diagnosing Distributed Systems

2011-11-04 Thread Jim Webber
Hi Laurent, I believe this could managed by Neo4j since it's similar to systems already in production. Jim ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user

Re: [Neo4j] Neo4j performance with >400million nodes

2011-11-01 Thread Jim Webber
Hi Alican, > But I am still a bit concerned about the 128GB RAM.. You can run it on less of course. You could run it on your laptop and it would still work. However Neo4j is clever in its use of RAM. The more RAM you can allocate to Neo4j, the more chance that database reads can come straight

Re: [Neo4j] error indexing node: status 405 returned

2011-11-01 Thread Jim Webber
Hi, > When I changed the PUT to POST, It worked fine. That makes sense: adding to an index is a POST operation to make it explicit that you're "annotating" an existing resource (as per RFC2616). I just double checked the server functional tests and it's visible there, and it generates some doc

Re: [Neo4j] REST traverse deprecation

2011-10-28 Thread Jim Webber
> If we do that, I propose that we move the Cypher and Gremlin plugins into > server. WDYT? I'm ambivalent about that. What end-user benefits are there versus shipping them as plugins? Jim ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4

Re: [Neo4j] REST traverse deprecation

2011-10-28 Thread Jim Webber
>From the high church of REST, I have no objections. "Blessed be the Roy, for he hath delivered us from RPC." Or something. Jim ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user

Re: [Neo4j] Db connections as we do in mysql ,oracle etc..

2011-10-26 Thread Jim Webber
Hi Emil, When you're using Neo4j in embedded mode, only the hosting process can directly access the data store. If you're using it in server mode, then any number of HTTP clients can concurrently access the database through the Web API. However, Neo4j is totally thread safe so you can have many

Re: [Neo4j] Set property on node in Neo4j REST server

2011-10-17 Thread Jim Webber
Then I declare from the High Church of REST that what we do today is correct. Amen :-) Jim On 17 Oct 2011, at 15:34, Jacob Hansson wrote: > On Mon, Oct 17, 2011 at 8:05 AM, Jim Webber wrote: > >> Hi Peter, >> >> For the specific case of updating a single proper

Re: [Neo4j] Set property on node in Neo4j REST server

2011-10-16 Thread Jim Webber
Hi Peter, For the specific case of updating a single property then: PUT node/{node_id}/property/{property_key} with an entity body like: "some text" or 27 would be OK I think But not until the 1.6 M01 release :-) Jim ___ Neo4j mailing list User@l

Re: [Neo4j] Set property on node in Neo4j REST server

2011-10-16 Thread Jim Webber
I think PUTting a value to the property's URI (which is effectively it's key within the node). Isn't that what we already do though? Jim On 17 Oct 2011, at 07:16, Peter Neubauer wrote: > Ok, > So what would be good semantics gör updating just one property? > > Jim? > > /peter > > Sent fro

Re: [Neo4j] Set property on node in Neo4j REST server

2011-10-16 Thread Jim Webber
Hi Andrew, Michael Hunger wrote a plugin for the Neo4j REST server that implements this. You can get it from his github space: https://github.com/jexp/neo4j-clean-remote-db-addon Jim ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/

Re: [Neo4j] Size limits for REST Server?

2011-10-13 Thread Jim Webber
Hi Pablo, > What do you exactly mean by discoverability ? Always getting all in/out rels > for a node? Yup, exactly. By default the REST server projects the graph (naively) onto the Web (itself a graph). > About writing an extension, has anyone already done this at some level? > Is there any ki

Re: [Neo4j] Size limits for REST Server?

2011-10-13 Thread Jim Webber
Hi Pablo, For the very specific use-cases I'd recommend writing an extension rather than using the default representations. The default behaviour of the REST API emphasises discoverability which in the case of supernodes isn't usually desirable. Jim

Re: [Neo4j] indexquery 12times faster than cypher --> neostore-upgrade-question

2011-10-12 Thread Jim Webber
To reiterate what Chris said about backups. The latest release is a milestone, and while we've taken every opportunity to rigorously test it, you should always have a backup of your data before any upgrade especially so if it's not a stable GA release. Jim __

Re: [Neo4j] Node index in Neo4j REST server

2011-10-12 Thread Jim Webber
Hi Andrew, > I have a question about indexing in Neo4j REST server. For some reason I may > need to create multiple node indexes in REST server. > Is there any limit number of indexing I am allowed to create? No, there's no logical limit on the number of indexes you can create. Jim

Re: [Neo4j] Beginner Question - Unique IDs

2011-10-09 Thread Jim Webber
Hi Hesham, > Thanks Jim, another beginner questions then, how do I get these long-lived > names after I create an index? If you look at this section of the manual: http://docs.neo4j.org/chunked/snapshot/rest-api-indexes.html#rest-api-add-node-to-index You'll see that you after you've created an

Re: [Neo4j] Beginner Question - Unique IDs

2011-10-09 Thread Jim Webber
Hi, Caveat: I don't believe it's a good idea to share entities in your database directly with consumers in the general case, even if your database has a REST API that makes it easy to do so. In this case your articles are important enough to be named. Long-lived names are handled by the index

Re: [Neo4j] Different instances in Neo4j REST db

2011-10-09 Thread Jim Webber
Hi Andrew, It's not possible with a single REST server, though multiple REST servers will live happily on the same host providing you give each of them different configuration (e.g. port number, data store location etc). Jim ___ Neo4j mailing list Use

Re: [Neo4j] Different instances in Neo4j REST db

2011-10-09 Thread Jim Webber
Hi Andrew, The Neo4j server has a single instance of EmbeddedGraphDatabase inside. You can create different logical databases by having disjoint graphs only. HTH. Jim ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo

Re: [Neo4j] template tool

2011-10-07 Thread Jim Webber
Hi Andrew, > I have a quick question regarding string template. When we create a node > index the server returns a template > http://localhost:7474/db/data/index/node/favorites/{key}/{value} > > Does Neo4J have any API similar to StringTemplate that can replace > placeholders in the template w

Re: [Neo4j] Neo4j embedded

2011-10-07 Thread Jim Webber
Hi Antriani, > Ok, but the REST API doesn't produce more network overhead (i.e. > HTTP...) compared to a driver implementation using sockets for access > for example MySQL JDBC ? I have no data to support this, but I'm going to make an educated guess and say that the MySQL JDBC driver is over

Re: [Neo4j] Neo4j embedded

2011-10-07 Thread Jim Webber
> Ok,thanks! > > Do you have any suggestions as to what is the best way to use neo4j to > benchmark it against a mysql database (with an "equal" in communication > overhead manner)? > > On 10/7/11 12:23 PM, Jim Webber wrote: >> Hi, >> >> When

Re: [Neo4j] Neo4j embedded

2011-10-07 Thread Jim Webber
Hi, When using Neo4j in embedded mode, communication with the database is via in-process Java method calls* since the database resides in your process. However when Neo4j is used in HA mode (irrespective of whether it is embedded or server), then it will use sockets to maintain consistency of

Re: [Neo4j] Recommended way to deploy server software

2011-10-07 Thread Jim Webber
Hey, > Am I really being that hyperbolic? The deployment tools we have are superb > and simple to use. I just don't _want_ to do any prep work outside my > project folder in order to test my code. The embedded db made me think it's > possible (first time I'd ever dealt with one). (= Understoo

Re: [Neo4j] Recommended way to deploy server software

2011-10-06 Thread Jim Webber
Hi, > So, using an embedded db is the only way to if you want one-shot deployment? > It might be worth it to see how difficult it would be to write that > component as a plugin to the build tool I use (Cake). I'm not sure I follow. What's "one-shot" deployment? Deploying server is pretty trivia

Re: [Neo4j] Recommended way to deploy server software

2011-10-06 Thread Jim Webber
Hi, Firstly if you're going to use the server, then *use the server* rather than wrapping your own. The server is built and tuned for production use cases. The WrappingNeoServerBootstrapper type can be used to wrap an existing instance of a database in server clothing. The use case for this, is

Re: [Neo4j] Add node to index

2011-10-04 Thread Jim Webber
Hi Andrew, In the latest snapshots the API has changed, see: http://docs.neo4j.org/chunked/snapshot/rest-api-indexes.html So either ensure you're using 1.5M01 if you want the old behaviour, or a snapshot if you want the new behaviour. Jim ___ Neo4j

Re: [Neo4j] Using Cypher with WrappingNeoServerBootstrapper

2011-10-02 Thread Jim Webber
Hello, If you're using server, then the startup scripts are the easiest way. In the directory where you downloaded the server just type: bin/neo4j start (unix, mac) bin/neo4j.bat start (windows) The cypher plugin ships by default with the server. No point starting the server programmatically w

Re: [Neo4j] Neo4jRestNet

2011-10-02 Thread Jim Webber
Hi Michael, Just so you know: we modified the REST index API in the latest snapshot, and the modified API will be in the forthcoming GA release. See: http://docs.neo4j.org/chunked/snapshot/rest-api-indexes.html#rest-api-create-node-index ***Same applies to all you other folks writing REST API

Re: [Neo4j] Adding index items via REST

2011-09-29 Thread Jim Webber
No worries Neil - glad I could help. Jim ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user

Re: [Neo4j] Adding index items via REST

2011-09-29 Thread Jim Webber
Hi Neil, No, in this case not bleeding edge enough :-) Can you try this with the latest snapshot? The request payload you're using was only pushed earlier this week in response to https://github.com/neo4j/community/issues/25 Jim ___ Neo4j mailing l

Re: [Neo4j] Forward slashes in index values

2011-09-28 Thread Jim Webber
Hi Tatham, I've closed off this issue in Github now: https://github.com/neo4j/community/issues/25 For all you Neo4j REST API client maintainers, this means there *WILL BE BREAKING CHANGES* to the Neo4j REST API in the 1.5 release. I'll try to ensure they're all very well documented in the manu

Re: [Neo4j] Forward slashes in index values

2011-09-19 Thread Jim Webber
Hi Tatham, I don't necessarily agree with %2f and / being the same, but I do agree that POSTing everything in the URI is a bit quirky. Peter's opened up a new issue on this: https://github.com/neo4j/community/issues/25 And I get to hack on it. So it looks like the REST index API will be chang

Re: [Neo4j] Neo4j Events Coming Up in September

2011-08-29 Thread Jim Webber
And it will be awesome too*. Jim * Otherwise Adriano will take me to a dodgy part of town and leave me there :-) On 26 Aug 2011, at 20:03, Adriano Henrique de Almeida wrote: > Hi Allison, just adding, > > There will be Jim Webber's talk at QCon São Paulo, in my track, ( > http://www.qconsp.com

Re: [Neo4j] More batch vs. single operation benchmarks

2011-08-28 Thread Jim Webber
I suspect (though I haven't profiled it) that the decreasing performance of batches could be due to JSON processing. If so, we're going to have to switch to some kind of streamed approach for the REST batch API. I'll add these notes into the job in the community backlog. Thanks very much Josh!

Re: [Neo4j] Server couldn't start after java.lang.OutOfMemoryError

2011-08-26 Thread Jim Webber
Hi Nuo, if you're using Neo4j server then you can edit the value in conf/neo-wrapper.conf wrapper.java.maxmemory=1024 Jim ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user

Re: [Neo4j] Specifying "best first" order of traverse over REST API

2011-08-26 Thread Jim Webber
Hi Aseem, > how to return a meaningful subset of traverse results instead of all > results. Having a paged traverser doesn't help at all if you can neither > specify the order nor know what the default ordering is based on (I asked a > while back and was told it's unspecified). (And again, by "ord

Re: [Neo4j] Neo4jPHP batch insert benchmarks

2011-08-26 Thread Jim Webber
Hey Josh, I wonder whether we have a memory leak in that code, or whether Jackson has. I'll drop this into the community backlog for further investigation. Jim ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user

Re: [Neo4j] Neo4jPHP batch insert benchmarks

2011-08-25 Thread Jim Webber
Hey Josh, You can validate what Peter's suggesting by setting a small heap when you run the server. If you edit conf/neo4j-wrapper.conf you can override the property for heap size with something like this: wrapper.java.maxmemory=1 Then you should (in theory) be able to see the batch operation

Re: [Neo4j] Performance Benchmarks Available

2011-08-25 Thread Jim Webber
Hi Raffi, There are no standard TPC-like benchmarks for Neo4j. However, for even modest data sets, Neo4j can be orders of magnitude faster than some SQL-oriented databases primarily because it avoids join pain (no sets) for connected data. There are a few slides in the tutorial deck about this

Re: [Neo4j] Test and try/catch block

2011-08-25 Thread Jim Webber
If you're using the standard try/catch/finally idiom in Neo4j then consider using Nat Pryce/Steve Freeman's transactor pattern. We have an example of this in the neo4j server code here: https://github.com/neo4j/community/blob/master/server/src/functionaltest/java/org/neo4j/server/helpers/Transac

Re: [Neo4j] All simple paths algorithm

2011-08-25 Thread Jim Webber
Hi Piotr, Neo4j is an open source product. This means you're quite welcome to read the source of the algorithm and see how it works directly. The implementation for all of our shortest path algorithms can be found here: https://github.com/neo4j/community/tree/master/graph-algo/src/main/java/org

[Neo4j] Posting on graph processing versus graph databases

2011-08-24 Thread Jim Webber
Hi folks, I've written up a piece on generic graph processing versus graph databases here: http://jim.webber.name/2011/08/24/66f1fb4b-83c3-4f52-af40-ee6382ad2155.aspx As always, I'd value your feedback on it. Jim ___ Neo4j mailing list User@lists.neo4

Re: [Neo4j] pagination with traversal and search query results

2011-08-24 Thread Jim Webber
There is a PagingIterator however in the API which allows you to page results by wrapping the Iterator that gets returned from many API calls. See: http://components.neo4j.org/neo4j/1.4.1/apidocs/org/neo4j/helpers/collection/PagingIterator.html Jim __

Re: [Neo4j] Server couldn't start after java.lang.OutOfMemoryError

2011-08-23 Thread Jim Webber
Hi Nuo, > process [26266]... waiting for server to be > ready. > BAD. > another server-process is running with [] Just to check before we dig deeper, are you certain you don't h

Re: [Neo4j] Fastest way to count relationships from a particular node.

2011-08-23 Thread Jim Webber
Hey, What you suggest (a "cache" node") is an OK way of doing things. You could also inline the "cached" values in the node itself. Since managing relationships is atomic with respect to the "cached" counters, there will never be inconsistencies. Jim __

Re: [Neo4j] Indexing - Rest Api

2011-08-22 Thread Jim Webber
Hi Romiko, Out of the box auto-indexing only supports exact matches, rather than full text searches. The reason is that auto indexes are created with the default configuration (http://docs.neo4j.org/chunked/snapshot/indexing-create.html) the first time you access them. But this gives us a littl

Re: [Neo4j] neo4j community back tool

2011-08-22 Thread Jim Webber
Hello, Neo4j enterprise has online backup. Jim On 22 Aug 2011, at 13:51, sometime wrote: > Hi! > What is the complete solution for backup database neo4j-community without > stopping? > > -- > View this message in context: > http://neo4j-community-discussions.438527.n3.nabble.com/neo4j-communi

Re: [Neo4j] Return Node in an unmanaged server plugin

2011-08-22 Thread Jim Webber
I'd agree with Peter on this - unmanaged extensions are for where you want to put your own domain-specific API in the server, but if you want to deal with native nodes and relationships, use the managed extensions. Jim ___ Neo4j mailing list User@lis

Re: [Neo4j] EXTERNAL: Re: how to use neo4j in "server" mode w/o using HTTP/REST stuff?

2011-08-21 Thread Jim Webber
Hi Gautam, What you're describing here is a lot of work - you're creating your own Neo4j server with a binary protocol rather than using the REST API. When I said "your application exposes you API" I meant that with the embedded APIs you get to build an interface (e.g. Web app, RESTful services

Re: [Neo4j] how to use neo4j in "server" mode w/o using HTTP/REST stuff?

2011-08-19 Thread Jim Webber
Hi Gautam, If you're writing a Java application, then use the Java APIs. If you need several instances of the application to see the same data then use Neo4j HA. That way your application exposes your API (your service interface). The Neo4j server does the same thing but it exposes *our* API (t

Re: [Neo4j] Filter traversal result by relationship type (REST API)

2011-08-18 Thread Jim Webber
Hi Nuo, Please ignore my previous mail - Tobias pointed out that my syntax was wrong (thanks Tobias!). Try: "position.endNode().hasProperty('name') && !position.endNode().hasRelationship([org.neo4j.graphdb.DynamicRelationshipType.withName( 'bar' )])" And it should work fine (look out for t

Re: [Neo4j] Filter traversal result by relationship type (REST API)

2011-08-18 Thread Jim Webber
Hi Nuo, I've been playing with this for a little while, and after talking it over with the devteam, I'm pretty certain that want you want to do isn't yet possible through the REST API. To solve your problem, you'd need a return filter like: "position.endNode().hasProperty('name') && !position.

Re: [Neo4j] Depth and traversals in journey planner migration.

2011-08-18 Thread Jim Webber
Hi Peter, > Jim: I don't suppose you know if/when the REST API will support these > complex traversals (or END_OF_GRAPH queries)? This unfortunately makes Neo4j > a no-go for our project until then. The REST API does support some complex traversals, but it's not totally equivalent to the either

Re: [Neo4j] partitioning the relationship store

2011-08-18 Thread Jim Webber
Hi Niels, The devteam backlog isn't public because it contains private customer activities (as well as features from the community). Andreas and Peter are working on a way that we can collaborate more effectively with (the relatively small number of) community code contributors. Until then, I

Re: [Neo4j] Concurrency/Callable with NEO

2011-08-18 Thread Jim Webber
Hi Robert, I can't reproduce those results. When I run your code (as a rather haphazard unit "test"), I see output which indicates the properties are there: New Node id is:2 Property Values: [webber, some-table, prop-value] Received values: [webber, some-table, prop-value] Jim PS - in the int

Re: [Neo4j] Depth and traversals in journey planner migration.

2011-08-17 Thread Jim Webber
Hi Peter, It's a bit confusing, but we have (at least) two traverser frameworks, both of which have been around since 1.x. The core traverser API: in the org.neo4j.graphdb package The "new" traverser API: in the org.neo4j.graphdb.traversal package Have a look at the slideware in the neo4j tutor

Re: [Neo4j] Depth and traversals in journey planner migration.

2011-08-17 Thread Jim Webber
Hi Peter, [I'm sure the Greliministas will provide an answer too, but here's the native Neo4j APIs' take] In the Neo4j simple traverser framework, you can set max depth to end of graph. But you constrain the types of relationships you allow the traverser to traverse. That way your traversals t

Re: [Neo4j] Number of request per second using Neo4j Server configuration and REST

2011-08-17 Thread Jim Webber
Hi, That depends, of course, on what those requests are doing. If you are writing a single property only in each request, the server will perform fewer of those (especially if they're contended). If you're querying the graph, then the limiting factor is the performance of Jetty (the HTTP serv

Re: [Neo4j] Indexing - Rest Api

2011-08-16 Thread Jim Webber
G'day Romiko, > * Configuration File: Autoindexing enabled here is related to > automatically indexing all nodes and relationships? > * > > If I want to add a node to an index following the guidelines, what convention > should be used for the Key/Value naming? Imagine we have nodes of typ

Re: [Neo4j] partitioning the relationship store

2011-08-16 Thread Jim Webber
Hi Niels, Is this partitioning an aspect of the supernode problem? If so, there is a feature request* in the devteam backlog for that. Jim * It is currently 5th in priority order. ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mai

Re: [Neo4j] Database error

2011-08-14 Thread Jim Webber
I know this doesn't address the root cause of the issue, but could you try using the REST batch API instead? See: http://docs.neo4j.org/chunked/1.4/rest-api-batch-ops.html The regular REST API is tremendously inefficient as a batch loading mechanism because it insists on a single transaction pe

Re: [Neo4j] Database error

2011-08-12 Thread Jim Webber
Did your robot use the REST batch API or the normal REST API? Jim ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user

Re: [Neo4j] Further information about Neo4J

2011-08-11 Thread Jim Webber
Salut Bruno, Could you clarify your intent for (2) and (3) please? Do you really mean to use the batch inserter there (that is, is this for an initial import), or are you trying to add data to a steady-state database? If the latter, then you need to read the core API: http://docs.neo4j.org/chu

Re: [Neo4j] Exceptions in Neo4j Server

2011-08-09 Thread Jim Webber
Hi Dario, It's hard to know if it's expected behaviour unless you share a bit more context. What were you doing (in JUnit tests or curl commands) to produce these? Jim On 9 Aug 2011, at 14:35, Dario Rexin wrote: > Hi, > > I just attached a hoptoad appender to my logger in the Neo4j Server an

Re: [Neo4j] Rest-Server Java Opts Configuration

2011-08-09 Thread Jim Webber
Hi Mike, I've added this to the webadmin backlog. That backlog is currently small-ish, so there's a reasonable chance you'll see this in the 1.5 timeframe*. Jim * no promises, the world's far too chaotic for that. Especially when rioters are burning down your local pie shop (tragedy!) On 9 Au

Re: [Neo4j] Transactions using the REST API?

2011-08-08 Thread Jim Webber
Hi Nuo, In the REST API every interaction is automatically executed within a transaction on the server side. If you need to complete multiple operations within the scope of a transaction you have a few options: 1. REST batch API: http://docs.neo4j.org/chunked/snapshot/rest-api-batch-ops.html

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] Delete Nodes connected by a certain relationship

2011-08-04 Thread Jim Webber
Hi Ahmed, Can you sketch how your data looks? Otherwise it's hard to see where the NPE might occur. Jim On 4 Aug 2011, at 08:03, ahmed.elsharkasy wrote: > i tried this > Iterable relations = > node.getRelationships(DynamicRelationshipType.withName("PRECEDES_" +Id), > Direction.BOTH); > >

Re: [Neo4j] neo4j.py install problems

2011-08-04 Thread Jim Webber
I'd add py2neo too. Jim On 4 Aug 2011, at 06:20, Eddy wrote: > Okay, cheers. I think the guys and girls at Neo4j need to list all these > tools and their status in the wiki somewhere. I think neo4jrestclient and > bulbflow are others that can be added. > > > On Thu, Aug 4, 2011 at 2:14 AM, Aa

Re: [Neo4j] how to scale and view or generate reports for complex graphs?

2011-08-03 Thread Jim Webber
Hello, I'm not sure I understand this problem. You're saying that in a RDBMS, you can query the database to help debug it. In Neo4j you also have query capabilities to help debug a database (e.g. Cypher, Gremlin), though our toolchain isn't as integrated as some of the SQL tools (e.g. neocli

Re: [Neo4j] Synchronization of EmbeddedReadOnlyGraphDatabase - Bug?

2011-08-03 Thread Jim Webber
ision about that idea, this project >> didn't receive much attention after its initial inception. It was also never >> really used for these purposes, but rather misused for building >> applications, leading us to deprecate the project. When we then later >> discovered a se

Re: [Neo4j] How to run webadmin for high availability neo4j custer?

2011-08-02 Thread Jim Webber
Hi, > (1) The wiki only shows example on "ha-server[x].conf" file but not other > properties files as in default standalone server. That beg the question on > how to setup webserver for each cluster node. The properties will be the same as for individual instances of Neo4j, with the exception th

Re: [Neo4j] Synchronization of EmbeddedReadOnlyGraphDatabase - Bug?

2011-08-01 Thread Jim Webber
Hi Mathias, EmbeddedReadOnlyGraphDatabase is not quite what it seems, and I think should be deprecated/removed. The correct way for database instances to become consistent is through the HA protocol. Jim ___ Neo4j mailing list User@lists.neo4j.org htt

Re: [Neo4j] Node#getRelationshipTypes

2011-07-31 Thread Jim Webber
Hi Niels, Ignoring the operational use for getting relationship types, I do think these should be generalised from: > RelationshipType[] getRelationshipTypes(); > RelationshipType[] getRelationshipTypes(Direction); to: Set getRelationshipTypes(); Set getgetRelationshipTypes(Direction); Unless

Re: [Neo4j] Brainstorming on my project: neo4john

2011-07-31 Thread Jim Webber
Hi John, Niels, I think of indexes in Neo4j as long-lived names. Not quite the "keep it local" that Niels mentioned, but not entirely dissimilar either. Those long lived-names tend to give you starting points in the graph from where you perform graph operations. Indexing therefore constitutes

Re: [Neo4j] updateOrAdd method

2011-07-31 Thread Jim Webber
Hi Ahmed, The best way for us to help is if you send a unit test that demonstrates the problem you're having. Can you send some JUnit code please? Jim On 31 Jul 2011, at 16:01, ahmed.elsharkasy wrote: > i face strange problems with this method , i am sure i am giving it the right > node id and

Re: [Neo4j] Pagination in Embedded

2011-07-29 Thread Jim Webber
There's JavaDoc here: http://api.neo4j.org/current/org/neo4j/helpers/collection/PagingIterator.html Jim ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user

Re: [Neo4j] Traverse Order By

2011-07-29 Thread Jim Webber
Hey, Retrieving "popular" nodes not directly possible with the REST API. Even in Java, you'd have to sort your result set manually since you don't know ahead of time how the search is going to traverse your graph. It is only once you have your result set (which may be large) that you can sort

  1   2   3   4   >