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, <andrew.pot...@gmx.net> 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
> > User@lists.neo4j.org
> > https://lists.neo4j.org/mailman/listinfo/user
> >
> _______________________________________________
> Neo mailing list
> User@lists.neo4j.org
> https://lists.neo4j.org/mailman/listinfo/user
>



-- 
Dr Alastair James
CTO James Publishing Ltd.
http://www.linkedin.com/pub/3/914/163

www.worldreviewer.com

WINNER Travolution Awards Best Travel Information Website 2009
WINNER IRHAS Awards, Los Angeles, Best Travel Website 2008
WINNER Travolution Awards Best New Online Travel Company 2008
WINNER Travel Weekly Magellan Award 2008
WINNER Yahoo! Finds of the Year 2007

"Noli nothis permittere te terere!"
_______________________________________________
Neo mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to