tag:blogger.com,1999:blog-4037079221500014725.post3402604963471015563..comments2023-11-02T10:20:34.251-04:00Comments on Everyman Software: Path finding with Neo4jJosh Adellhttp://www.blogger.com/profile/13146384900735324084noreply@blogger.comBlogger9125tag:blogger.com,1999:blog-4037079221500014725.post-50011054298844100522014-05-17T01:06:18.847-04:002014-05-17T01:06:18.847-04:00I'm using the Neo4jphp REST API and I'm ha...I'm using the Neo4jphp REST API and I'm having a problem of relating a node iv created in my code to a node im retrieving from the neo4j database. I'm retrieving the node as follows<br /><br />$querystring="MATCH(n)"."WHERE has (n.name) and n.name='Interests'"."RETURN n";<br /> $query=new Everyman\Neo4j\Cypher\Query($client,$querystring);<br /> $result=$query->getResultSet();<br /><br />im creating another node in my code using createNode() $friend=$client->makeNode()->setProperty('name',$fname)->save();<br />I used relateTo() to relate them<br /><br />$m=$client->getNode($result);<br />$m->relateTo($friend,$movi)->save();//$movi is a common movie name<br /><br />im getting this error<br /><br />PHP Catchable fatal error: Object of class Everyman\\Neo4j\\Query\\ResultSet could not be converted to string in /var/www/vendor/everyman/neo4jphp/lib/Everyman/Neo4j/Cache/EntityCache.phpDhanush Guptanoreply@blogger.comtag:blogger.com,1999:blog-4037079221500014725.post-10148160865941908222012-01-04T08:27:15.125-05:002012-01-04T08:27:15.125-05:00Neo4j can be installed in 2 modes, "embedded&...Neo4j can be installed in 2 modes, "embedded" or "server". If you wish to run embedded, put the Neo4j .jar files in your Java class path. Here are the instructions to run as a server on WIndows: http://docs.neo4j.org/chunked/milestone/server-installation.html#_as_a_windows_service Josh Adellhttp://joshadell.comnoreply@blogger.comtag:blogger.com,1999:blog-4037079221500014725.post-48922840143543690082012-01-03T19:22:15.611-05:002012-01-03T19:22:15.611-05:00Hi Josh, First of all, happy new year and thank yo...Hi Josh, First of all, happy new year and thank you for all this precious information, the thing is that i'm working on a windows machine (yeah i know ouuuu :D) but i have no choice, i check out the official doc and find anything about installing Neo4j on windows :(<br />Thank you for allMahieddine Belkacem Cherifhttp://www.facebook.com/cherif.mahieddinenoreply@blogger.comtag:blogger.com,1999:blog-4037079221500014725.post-10807660884637699932011-12-30T21:36:03.115-05:002011-12-30T21:36:03.115-05:00Hi Mahieddine,
I have a post about how I installed...Hi Mahieddine,<br />I have a post about how I installed Neo4j on my Ubuntu machine for development and testing: http://blog.everymansoftware.c...<br /><br />Also, the Neo4j documentation has instructions for installing the server and the Java library if you want to embed Neo4j in a Java application: http://docs.neo4j.org/<br /><br />As for hosting, Heroku offers Neo4j as an add-on, and there is an Amazon Web Services EC2 AMI that comes pre-installed with Neo4j. I think the Neo4j people are working with other cloud hosts as well. If you have a specific one you would like to see support for, you should talk to them about it.<br /><br />Thanks for reading!Josh Adellhttp://joshadell.comnoreply@blogger.comtag:blogger.com,1999:blog-4037079221500014725.post-23498179143003488752011-12-30T21:34:46.485-05:002011-12-30T21:34:46.485-05:00Hi Mahieddine,
I have a post about how I installed...Hi Mahieddine,<br />I have a post about how I installed Neo4j on my Ubuntu machine for development and testing: http://blog.everymansoftware.com/2011/11/development-setup-for-neo4j-and-php.html<br /><br />Also, the Neo4j documentation has instructions for installing the server and the Java library if you want to embed Neo4j in a Java application: http://docs.neo4j.org/<br /><br />As for hosting, Heroku offers Neo4j as an add-on, and there is an Amazon Web Services EC2 AMI that comes pre-installed with Neo4j. I think the Neo4j people are working with other cloud hosts as well. If you have a specific one you would like to see support for, you should talk to them about it.<br /><br />Thanks for reading!Josh Adellnoreply@blogger.comtag:blogger.com,1999:blog-4037079221500014725.post-48879791483658628682011-12-30T20:56:54.777-05:002011-12-30T20:56:54.777-05:00Hi, Please can you show us how did you install neo...Hi, Please can you show us how did you install neo4j on your machine ? and also if there are hoster that proposes neo4j ? Thanks a lot Mahieddine Belkacem Cherifhttp://www.facebook.com/cherif.mahieddinenoreply@blogger.comtag:blogger.com,1999:blog-4037079221500014725.post-31953179704159951272011-07-06T16:45:02.088-04:002011-07-06T16:45:02.088-04:00It works now - beauty :)
Thanks for creating this...It works now - beauty :)<br /><br />Thanks for creating this REST client! I'm surprised they don't have native support for PHP yet.<br /><br />Hopefully your client will become quite stable and feature complete. You should get them to link to yours directly from their documentation. There's no sense duplicating efforts, etc.<br /><br />Thanks again!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4037079221500014725.post-39501852026295683402011-07-05T16:07:32.454-04:002011-07-05T16:07:32.454-04:00I made a change this past weekend that broke index...I made a change this past weekend that broke indexing. The current version of the client has been fixed. Can you try again with the latest version? If it still does not work, please open an issue on the github repo.Josh Adellhttps://www.blogger.com/profile/13146384900735324084noreply@blogger.comtag:blogger.com,1999:blog-4037079221500014725.post-61073198011253269992011-07-05T15:05:12.656-04:002011-07-05T15:05:12.656-04:00Awesome work - both on this tutorial and your PHP ...Awesome work - both on this tutorial and your PHP implementation.<br /><br />One thing though: I've downloaded Neo4jPHP and ran the bacon.php example. I did the init, and when I examine the web admin interface that comes with Neo4j, I can see the actors/movies data & relations being entered.<br /><br />However, when I try to get the 'path' from bacon.php, it doesn't work with any actors names. It's almost like it didn't create the "actors" index in the system properly, so it can't pull them up (it just says they aren't found).<br /><br />Any thoughts as to why? I'm using the latest version of Neo4J - Community 1.4-M05. Also, I did modify your script and ran it through my WAMP stack instead of the command line, but it shouldn't have any effect as far as I can see:<br />Windows 7<br />PHP 5.3.6<br /><br />Thanks!Anonymousnoreply@blogger.com