Update README.md
Adding documentation on visualizer (lines 65-79)
This commit is contained in:
parent
7fa20fc306
commit
1554b6ca51
1 changed files with 17 additions and 0 deletions
17
README.md
17
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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue