You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+27-5Lines changed: 27 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,19 +27,41 @@ We encourage others to contribute configurations they find useful. There is an [
27
27
28
28
`%%gremlin` - Executes a Gremlin query against your database using web sockets. The results are similar to what the Gremlin console would return.
29
29
30
+
`%%graph_notebook_config` - Sets the executing notebook's database configuration to the JSON payload provided in the cell body.
31
+
32
+
`%%graph_notebook_vis_options` - Sets the executing notebook's [vis.js options](https://visjs.github.io/vis-network/docs/network/physics.html) to the JSON payload provided in the cell body.
33
+
34
+
`%%neptune_ml` - Set of commands to integrate with NeptuneML functionality. [Documentation](https://aws.amazon.com/neptune/machine-learning/)
35
+
36
+
30
37
**TIP**:point_right: There is syntax highlighting for both `%%sparql` and `%%gremlin` queries to help you structure your queries more easily.
31
38
32
39
#### Notebook line 'magic' extensions in the IPython 3 kernel
33
-
`%graph_notebook_config` - Returns a JSON object that contains connection information for your host.
40
+
`%gremlin_status` - Obtain the status of Gremlin queries. [Documentation](https://docs.aws.amazon.com/neptune/latest/userguide/gremlin-api-status.html)
41
+
42
+
`%sparql_status` - Obtain the status of SPARQL queries. [Documentation](https://docs.aws.amazon.com/neptune/latest/userguide/sparql-api-status.html)
43
+
44
+
`%load` - Generate a form to submit a bulk loader job. [Documentation](https://docs.aws.amazon.com/neptune/latest/userguide/bulk-load.html)
34
45
35
-
`%query_mode` - Lets you set the query mode for your queries to one of:
46
+
`%load_ids` - Get ids of bulk load jobs. [Documentation](https://docs.aws.amazon.com/neptune/latest/userguide/load-api-reference-status-examples.html)
36
47
37
-
*`query` (the default) : executes the query against the normal SPARQL or Gremlin endpoint
38
-
*`explain` : Returns an explanation of the query plan instead of the query's results (valid for both SPARQL and Gremlin).
39
-
*`profile` : Returns a profile of the query's operation, but does not actually execute the query (valid only for Gremlin).
48
+
`%load_status` - Get the status of a provided `load_id`. [Documentation](https://docs.aws.amazon.com/neptune/latest/userguide/load-api-reference-status-examples.html)
49
+
50
+
`%neptune_ml` - Set of commands to integrate with NeptuneML functionality. You can find a set of tutorial notebooks [here](https://github.com/aws/graph-notebook/tree/main/src/graph_notebook/notebooks/04-Machine-Learning).
`%status` - Check the Health Status of the configured host endpoint. [Documentation](https://docs.aws.amazon.com/neptune/latest/userguide/access-graph-status.html)
40
54
41
55
`%seed` - Provides a form to add data to your graph without the use of a bulk loader. both SPARQL and Gremlin have an airport routes dataset.
42
56
57
+
`%graph_notebook_config` - Returns a JSON payload that contains connection information for your host.
58
+
59
+
`%graph_notebook_host` - Set the host endpoint to send queries to.
60
+
61
+
`%graph_notebook_version` - Print the version of the `graph-notebook` package
62
+
63
+
`%graph_notebook_vis_options` - Print the Vis.js options being used for rendered graphs
64
+
43
65
**TIP**:point_right: You can list all the magics installed in the Python 3 kernel using the `%lsmagic` command.
0 commit comments