forked from aws/graph-notebook
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
openCypher Query and Visualization Support (aws#153)
* copy from github v2.0.3 * port dbechbe@ working version, add syntax highlighting, add %%oc which calls into %%opencypher * opencypher iam auth * bolt support * rebase from github, refactor opencypher * get tests working for opencypher endpoint * Updated data processing code to make edge ids static so that the load is idempotent * rebase from 2.1.2 * - port dbechbe@ working version, add syntax highlighting, add %%oc which calls into %%opencypher - get tests working for opencypher endpoint - pull in client and add OC methods * Initial versions of notebooks updated for Neptune GA * Updated Neptune ML notebooks, utils, and pretrained models config * add support for modeltransform commands in %neptune_ml * Updated OC widget to handle new JSON format * Updated ML notebooks with feedback from Annupriya * Added back in missing init file for the Gremlin Network * Added support for openCypher syntax highlighting * Added missing init files and updated files that incorrectly referenced SPARQL instead of OC * WIP - Adding visualization to OC * WIP - Intiial rough visualization of OC results * WIP - updated to handle group vars passed in as json * Rebase on v2.1.3 and changes due for v2.1.4 * Resolve remaining merge conflicts from v2.1.2 rebase * Added comments and cleaned up code for initial OC visualization * Revert unintended changes to Gremlin tests * WIP - Adding visualization to OC * Cleaned up merge conflicts after merge from akline/OC * Fixed additional merge conflicts * Finally fixed merge conflicts from akline/OC branch * Copied code to set label display and label length * Fix Sparql tab widgets being displayed incorrectly, some PEP8 fixes * Changed the seed command to use 'Property Graph/RDF' as the data models instead of 'Gremlin/SPARQL' in order to support OC release * Removed tmp file used for building * Added opencypher support for bulk load * Cleaned up last few merge conflicts * PEP8 fixes * More PEP8 fixes * Update notebooks unit test with the new notebook paths * Fixed issue with seed command as well as default grouping not working correctly * Fixed issue where parsed lists of dictionaries were not remaining ordered * Updated Notebooks to refer to new seed command * Add '-de' param to Gremlin magic for specifying edge labels * Fix bug in adding dict type edges to graph, rearrange recent tests * Initial upload of new notebooks * Additional cleanup/tweaks * Add variable injection decorator to OC magics * Fixed casing on seed command labels for consistency * Introduce new features via text and tweak examples * Add --edge-display-property to OC magic for specifying edge labels * Update OC notebooks hints sections with -de param * Additional improvements to intro section * Additional examples and prose * Initial updates for the README - more needed * Additional README updates - more needed * Update URL for openCypher * Initial upload of sample OC images * Add link to OC sample image * Add another example using the -d hint * Update Gremlin sample image to show color * Tweak examples to use more color * Add a colorful graph image to the README * Additional pointers to notebooks * Additional updates * Fix bug where Gremlin node tooltips were not being changed when using the -d option * Additional examples that showcase new features * Rename some variables * More variable renaming * Additional small improvements * Add an example showing how to sample airports * Minor tweak to random sample example * Making use if verbs consistent * Verb consistency and clean up graphics reset * Fix incorrect option * Verb consistency * Improved a couple of examples * Add visualization support for elementMap() Gremlin step * Remove Direction.BOTH check * Remove merged redundancies * Updated ML notebooks based on feedback from Ankit * Additional discussion of elementMap usage * Update Visualization-Grouping-Coloring-Gremlin notebook with elementMap * [lakelvin@] Refactor %load form display to fix some descriptions being cut off * Rename Gremlin Grouping-Coloring sample notebook * Minor changes and rename files * Add examples of -d and -de without a map * Fix typo * Fix -d option not working in OC queries for string format values * Clean up debug statement * Fix OC metadata results count metric * Update ChangeLog for OC Release * Add ML updates to ChangeLog * Remove identity graph seed files * Remove extra chars from notebooks * Pin neo4j version * Styling fixes * More styling fixes * Update notebook directory validation unit test Co-authored-by: Austin Kline <[email protected]> Co-authored-by: Dave Bechberger <[email protected]> Co-authored-by: Michael Chin <[email protected]> Co-authored-by: Kelvin Lawrence <[email protected]>
- Loading branch information
1 parent
0a9d24b
commit 3731e50
Showing
83 changed files
with
8,565 additions
and
983 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
## Connecting graph notebook to Blazegraph SPARQL Endpoint | ||
|
||
The official SPARQL endpoint for DBPedia is available from https://dbpedia.org/sparql and is based on a Virtuoso engine. | ||
|
||
It is possible to connect to this endpoint using the following configuration: | ||
|
||
``` | ||
%%graph_notebook_config | ||
{ | ||
"host": "dbpedia.org", | ||
"port": 443, | ||
"auth_mode": "DEFAULT", | ||
"iam_credentials_provider_type": "ROLE", | ||
"load_from_s3_arn": "", | ||
"ssl": true, | ||
"aws_region": "" | ||
} | ||
``` |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,8 @@ | |
'GRAPH', | ||
'FILTER', | ||
'ASK', | ||
'DESCRIBE'] | ||
'DESCRIBE', | ||
'UNLOAD'] | ||
GREMLIN_OPTIONS = [ | ||
'.toString', | ||
'.tx', | ||
|
Oops, something went wrong.