ALL COVERED TOPICS

NoSQL Benchmarks NoSQL use cases NoSQL Videos NoSQL Hybrid Solutions NoSQL Presentations Big Data Hadoop MapReduce Pig Hive Flume Oozie Sqoop HDFS ZooKeeper Cascading Cascalog BigTable Cassandra HBase Hypertable Couchbase CouchDB MongoDB OrientDB RavenDB Jackrabbit Terrastore Amazon DynamoDB Redis Riak Project Voldemort Tokyo Cabinet Kyoto Cabinet memcached Amazon SimpleDB Datomic MemcacheDB M/DB GT.M Amazon Dynamo Dynomite Mnesia Yahoo! PNUTS/Sherpa Neo4j InfoGrid Sones GraphDB InfiniteGraph AllegroGraph MarkLogic Clustrix CouchDB Case Studies MongoDB Case Studies NoSQL at Adobe NoSQL at Facebook NoSQL at Twitter

NAVIGATE MAIN CATEGORIES

Close

Neo4j and PHP and Probably More

Protocols are extremely important and Neo4j has been opening up to a whole new world with its addition of the REST API. Now people using any programing language can try out this graph database.

Rob Olmost shows an example of using the Neo4j REST API[1] from PHP:

I was trying out Neo4j due to my curiosity of the graph specialization. Although Neo4j is not designed to run stand-alone like a database server there is a sub-project that adds a REST API to allow non-Java applications to make use of Neo4j. Neo4j is pretty simple, you basically have nodes, relationships, and properties on both. That’s about it.

First time I’ve heard of Neo4j, my first question was: how will I be able to define custom traversals? One part that I wasn’t aware of in the Neo4j REST is the embedded JavaScript engine — they chose Rhino for its easy integration with Java — allowing users to define node traversals using javascript. Problem solved!

As a side note (and I haven’t checked the code it), I think that integrating any language that runs on top of the Java VM would be possible, so imagine having your traversals in your preferred language like Groovy, Python, Ruby, or even Clojure. Pretty cool, isn’t it?


  1. You can read more about using Neo4j REST API ☞ here  ()

via: http://rob.olmos.name/?p=15