From 1554b6ca51ad5c66c157f15af5eac860695916e8 Mon Sep 17 00:00:00 2001 From: Dabaez Date: Sun, 26 Apr 2015 15:32:21 -0400 Subject: [PATCH] Update README.md Adding documentation on visualizer (lines 65-79) --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.md b/README.md index 909cb21..8270d6d 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,11 @@ If you prefer to build from source, see the documentation on the wiki at [How to ./cayley repl --dbpath=data/testdata.nq ``` +To run the web frontend, replace the "repl" command with "http" +``` +./cayley http --dbpath=data/testdata.nq +``` + You should see a `cayley>` REPL prompt. Go ahead and give it a try: ``` @@ -61,6 +66,18 @@ cayley> graph.Vertex("dani").All() cayley> graph.Vertex("dani").Out("follows").All() ``` +**Running the visualizer on the web frontend** + +To run the visualizer: click on visualize and enter: + +``` +// Visualize who dani follows. +g.V("dani").Tag("source").Out("follows").Tag("target").All() +``` +The visualizer expects to tag nodes as either "source" or "target." Your source is represented as a blue node. +While your target is represented as an orange node. +The idea being that our node relationship goes from blue to orange (source to target). + **Sample Data** For somewhat more interesting data, a sample of 30k movies from Freebase comes in the checkout.