Fix the REPL-clearing-state bug.

This commit is contained in:
Barak Michener 2014-06-24 16:54:21 -04:00
parent 9cb8cdc952
commit 73e9e1edc3
4 changed files with 35 additions and 7 deletions

View file

@ -61,7 +61,31 @@ make
And the `cayley` binary will be built and ready.
Give it a quick test with:
``` ./cayley repl --dbpath=testdata.nt ```
```
./cayley repl --dbpath=testdata.nt
```
You should see a `cayley>` REPL prompt. Go ahead and give it a try:
```
// Simple math
cayley> 2 + 2
// Javascript syntax
cayley> x = 2 * 8
cayley> x
// See all the entities in this small follow graph.
cayley> graph.Vertex().All()
// See only dani.
cayley> graph.Vertex("dani").All()
// See who dani follows.
cayley> graph.Vertex("dani").Out("follows").All()
```
**Sample Data**
For somewhat more interesting data, a sample of 30k movies from Freebase comes in the checkout.