Hi Alastair, I see things similarly to you. The JavaBridge solution doesn't totally appeal to me either. I have the feeling it's kind of a "Kludge." The RestFulAPI is attractive becasue I too would like the freedom of having the Application and Neo-DB on separate machines. As for the direct integration, I think you may have understood what I meant. I meant creating a language extension for PHP just like MySql, MongoDb, and a host of other products. I found an introductory description of how to do this. http://devzone.zend.com/article/1021 The major hurdle here would be to compile the Neo4 code into an object library. This would require a java compiler. Such a thing does exist: http://gcc.gnu.org/java/ But I havn't done any serious testing with it yet and am not sure if I want to. Maybe Peter or someone at Neo knows something about compiling Java code( hint hint:) ).
When you speak of the RESTful API is this something that is being done specifically for PHP integration or is there a general effort to create a Rest interface. There has been lots of activity in this list lately about Restful specifications and development. Andy On Monday 22 March 2010 13:43:13 Alastair James wrote: > Hi there Andrew / Peter > > Yes, I did look at your phpjavabridge examples, excellent work. Glad you > got it working. However its not a method that appeals to me. It is, after > all, just another network protocol, and I would prefer to use HTTP as the > network protocol as its a) easy to understand b) transparent c) playable > with in the browser! > > JSON works really well as well, as json parsing is alot more efficient in > php compared to XML processing! Plus, the requirements of this project are > basically a dumb json store with relations. E.g. what we really want > MongoDb + relationship traversal! > > As for direct integration into PHP, well that still requires a network > protocol, so this could abstract either HTTP / REST or phpjavabridge. > However, its of major importance to me that the neo server can be on a > different machine (as we run several front end servers and one (replicated) > db server). > > Peter: Sounds good! Looking forward to hearing more. > > Cheers for your help! > > Al > > On 22 March 2010 09:36, <[email protected]> wrote: > > Alastair, > > > > that sounds very cool. I'm very interested in getting Neo4j to workwith > > PHP as > > well. And like you I've had to put development onto the back burner for a > > while. I'd like to help somehow but with your specific question about > > traversal, I'm not sure I can be of much help. > > > > I don't know if you've considered the other alternatives. I've added > > quite a > > bit of info to the Neo-Wiki about using PHP. Maybe you have seen it > > already. > > I'd give you the direct link but the neo4j website is currently down :( > > > > Mainly I did some testing to show that it is feasible to access ne4j from > > PHP > > using javabridge. I thionk Peter has developed this further (there is a > > post > > somewhere in the mailing list). > > > > Javabride is one alternative. there are two others. One the RESTful API > > and another would be direct integration into the PHP language similar to > > the way > > MongoDB is integrated. I wanted to experiment with both of theses but > > haven't > > gotten around to it. I'm glad your'e working in this direction also. > > > > Andy Potter > > > > On Monday 22 March 2010 10:12:38 Alastair James wrote: > > > HI there. > > > > > > Loving Neo4j, but been putting off using because was no * > > > > straightforward* > > > > > way to use from PHP. I even started writing my own RESTful API, but > > > never found the time to finish it off! However, I am excited that there > > > is now > > > > a > > > > > (semi?) official one in the works, even if it is early days. > > > > > > I have started a PHP library for accessing neo4j via the REST API... I > > > > will > > > > > share when its ready. > > > > > > I can see how most of the functionality works from the Java functional > > > tests and the application.wadl index. However, there is no mention of > > > > any > > > > > way to access neo4j's traversal features. > > > > > > I was wondering how this is planned to work? > > > > > > In my API I had something like: > > > > > > node/1/traverse?relationship_type=KNOWS > > > > > > Which would traverse from node 1 along relationship type 'KNOWS' etc... > > > However, it started to get complex very quickly as you need separate > > > > return > > > > > and stop evaluators. > > > > > > I suppose, the most beautiful method would to to traverse via Gremlin: > > > > > > /node/1/outE/i...@age>27] (obviously URI encoded) > > > > > > That would be dead sexy. However, I know the gremlin guys seem a little > > > reluctant to offer a RESTful API (they seem to be stuck in their Java > > > ways)... > > > > > > Whats the plan? > > > > > > Cheers > > > > > > Alastair > > > _______________________________________________ > > > Neo mailing list > > > [email protected] > > > https://lists.neo4j.org/mailman/listinfo/user > > > > _______________________________________________ > > Neo mailing list > > [email protected] > > https://lists.neo4j.org/mailman/listinfo/user > _______________________________________________ Neo mailing list [email protected] https://lists.neo4j.org/mailman/listinfo/user

