#Software Systems Homework 3 ####Noam Rubin and Cory Dolphin
This is a simple C interface to a local instance of the neo4j graph database.
###neo4j
To get neo4j, follow these instructions
Then, point your browser at localhost:7474
and start the Movie Graph tutorial
Once you've added some data, try compiling and running query.c
##query.c
All the magic is in query.c
, which depends on curllib
for HTTP requests and jansson
for JSON parsing. The Makefile
links to the correct libraries, but to make sure they're installed on your system:
- Install
curllib
sudo apt-get install libcurl4-gnutls-dev
- Download and install Jansson
- download the latest tarball: http://www.digip.org/jansson/releases/jansson-2.6.tar.gz
- unpack the ball and cd into the directory:
bunzip2 -c jansson-2.5.tar.bz2 | tar xf
cd jansson-2.5
- Then install the package (you may need to be root for some of these steps):
./configure
make
make check
make install
-
Install Neo4j
-
Insert the data:
$ python parse.py
$ python insert.py
- Run
make
in this directory. - Run the executable
query
and input a starting node name.