Skip to content

Commit

Permalink
Merge pull request #70 from wey-gu/docs_fix_wrong_space_name
Browse files Browse the repository at this point in the history
docs: fix wrong space name
  • Loading branch information
wey-gu authored Jun 6, 2024
2 parents 3908a00 + 5204686 commit 27a4fd1
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 21 deletions.
11 changes: 6 additions & 5 deletions docs/get_started.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,7 @@
}
],
"source": [
"%ngql USE demo_basketballplayer;\n",
"%ngql USE basketballplayer;\n",
"%ngql MATCH (v:player{name:\"Tim Duncan\"})-->(v2:player) RETURN v2.player.name AS Name;"
]
},
Expand Down Expand Up @@ -830,9 +830,10 @@
],
"source": [
"%%ngql\n",
"USE demo_basketballplayer;\n",
"SUBMIT JOB STATS;\n",
"SHOW STATS;"
"USE basketballplayer;\n",
"MATCH path_0=(n)--() WHERE id(n) == \"player100\"\n",
"OPTIONAL MATCH path_1=(n)--()--()\n",
"RETURN path_0, path_1"
]
},
{
Expand Down Expand Up @@ -2170,7 +2171,7 @@
}
],
"source": [
"%ng_load --source follow_with_rank.csv --edge follow --src 0 --dst 1 --props 2:degree --rank 3 --space demo_basketballplayer"
"%ng_load --source follow_with_rank.csv --edge follow --src 0 --dst 1 --props 2:degree --rank 3 --space basketballplayer"
]
},
{
Expand Down
10 changes: 5 additions & 5 deletions docs/get_started_docs.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@
}
],
"source": [
"%ngql USE demo_basketballplayer;\n",
"%ngql USE basketballplayer;\n",
"%ngql MATCH (v:player{name:\"Tim Duncan\"})-->(v2:player) RETURN v2.player.name AS Name;"
]
},
Expand Down Expand Up @@ -669,7 +669,7 @@
],
"source": [
"%%ngql\n",
"USE demo_basketballplayer;\n",
"USE basketballplayer;\n",
"SUBMIT JOB STATS;\n",
"SHOW STATS;"
]
Expand Down Expand Up @@ -1159,7 +1159,7 @@
}
],
"source": [
"%ng_load --source https://github.com/wey-gu/ipython-ngql/raw/main/examples/actor.csv --tag player --vid 0 --props 1:name,2:age --space demo_basketballplayer"
"%ng_load --source https://github.com/wey-gu/ipython-ngql/raw/main/examples/actor.csv --tag player --vid 0 --props 1:name,2:age --space basketballplayer"
]
},
{
Expand Down Expand Up @@ -1236,7 +1236,7 @@
}
],
"source": [
"%ng_load --source actor.csv --tag player --vid 0 --props 1:name,2:age --space demo_basketballplayer"
"%ng_load --source actor.csv --tag player --vid 0 --props 1:name,2:age --space basketballplayer"
]
},
{
Expand Down Expand Up @@ -1286,7 +1286,7 @@
}
],
"source": [
"%ng_load --source follow_with_rank.csv --edge follow --src 0 --dst 1 --props 2:degree --rank 3 --space demo_basketballplayer"
"%ng_load --source follow_with_rank.csv --edge follow --src 0 --dst 1 --props 2:degree --rank 3 --space basketballplayer"
]
},
{
Expand Down
22 changes: 11 additions & 11 deletions examples/shareholding.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "d62039e2ac604961a5558476ddea2225",
"model_id": "30e88112b09b4b489d95c387ba6a1fb0",
"version_major": 2,
"version_minor": 0
},
Expand Down Expand Up @@ -417,7 +417,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "b86c50cfb3a3406193b15ff5e8ca6584",
"model_id": "de03cf4139644e76added46358d29a31",
"version_major": 2,
"version_minor": 0
},
Expand All @@ -443,7 +443,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "380e7206eb0f44058d3da49631a14535",
"model_id": "b72dbc94ef4f45d6ac697683d5622f1f",
"version_major": 2,
"version_minor": 0
},
Expand Down Expand Up @@ -485,7 +485,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "128e38d1a26943faadaaf7c2274dda0f",
"model_id": "37a8d5dc8a0a477c94bd06ae2d1b2581",
"version_major": 2,
"version_minor": 0
},
Expand All @@ -508,7 +508,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "2c4257daac7647c8b0b6aea1a7c78774",
"model_id": "af1d3b0fbcb9431d8a11a18aceadd4a2",
"version_major": 2,
"version_minor": 0
},
Expand All @@ -531,7 +531,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "43c0c8b3e72247feb55494cea2aadb3d",
"model_id": "5870e027bfea4120b772d50433a45bfa",
"version_major": 2,
"version_minor": 0
},
Expand Down Expand Up @@ -632,7 +632,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "70aeccd996b84b77a22365909a66701c",
"model_id": "678abc74b42d42d695b27776b8508cdd",
"version_major": 2,
"version_minor": 0
},
Expand Down Expand Up @@ -686,7 +686,7 @@
" "
],
"text/plain": [
"<IPython.lib.display.IFrame at 0x14da07050>"
"<IPython.lib.display.IFrame at 0x1420dfe60>"
]
},
"metadata": {},
Expand Down Expand Up @@ -801,7 +801,7 @@
" "
],
"text/plain": [
"<IPython.lib.display.IFrame at 0x14f236120>"
"<IPython.lib.display.IFrame at 0x14200f4a0>"
]
},
"metadata": {},
Expand Down Expand Up @@ -843,7 +843,7 @@
" "
],
"text/plain": [
"<IPython.lib.display.IFrame at 0x14f809e20>"
"<IPython.lib.display.IFrame at 0x14200f4a0>"
]
},
"metadata": {},
Expand All @@ -852,7 +852,7 @@
{
"data": {
"text/plain": [
"<class 'pyvis.network.Network'> |N|=47 |E|=387"
"<class 'pyvis.network.Network'> |N|=47 |E|=46"
]
},
"execution_count": 10,
Expand Down

0 comments on commit 27a4fd1

Please sign in to comment.