Skip to content

Commit 27ddcae

Browse files
committed
docs: add nebula-up playground for ngdi-graphd
1 parent d669076 commit 27ddcae

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

docs/ngdi_API_Gateway.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,33 @@ ngdi API Gateway is a RESTful API server that provides a unified interface for n
55

66
With ngdi API Gateway and ngdi UDF, we could call ngdi algorithms from ngql.
77

8+
## Playground in 5 minutes
9+
10+
```bash
11+
curl -fsSL nebula-up.siwei.io/all-in-one.sh | bash -s -- v3 spark
12+
```
13+
14+
> see [Nebula-UP](https://github.com/wey-gu/nebula-up) for more details.
15+
16+
Then load the basketballplayer dataset:
17+
18+
```bash
19+
~/.nebula-up/load-basketballplayer-dataset.sh
20+
```
21+
22+
And start ngdi API Gateway from PySpark Jupyter Notebook:
23+
24+
Go to http://localhost:8888, open data_intelligence_suite_nGQL_UDF.ipynb and run the first cell to start the ngdi API Gateway.
25+
26+
Call ngdi from NebulaGraph studio: http://localhost:7001 , **note** the host to login is `ngdi_graphd` `9669`.
27+
Run query in the console:
28+
29+
```cypher
30+
RETURN ngdi("pagerank", ["follow"], ["degree"], "spark",
31+
{space: "basketballplayer"})
32+
```
33+
34+
835
## Calling from ngql
936

1037
```cypher

0 commit comments

Comments
 (0)