graph-notebook icon indicating copy to clipboard operation
graph-notebook copied to clipboard

Support using %seed with local file path

Open michaelnchin opened this issue 2 years ago • 0 comments

Issue #, if available: #44

Description of changes:

  • Added new options to %seed to support loading from a specified file location.
    • --language: Specifies which language endpoint(gremlin,cypher, or sparql) to submit the queries to.
    • --source: Specifies the full path to a data file, or a directory containing multiple files, that you would like to load queries from.
    • -f/--full-file-query: If using Gremlin or openCypher, specifying this flag will submit the entire content of the file as a single query, instead of one query per line.
  • Removed sample seed data from package. Samples will now be loaded from an external S3 bucket.

Example run with arguments to load from a local file:

%seed --language Gremlin --source /Users/foo/seed_directory/data_file_0.txt -f --run

Running %seed by itself will allow you to select the same options.

Screen Shot 2022-03-30 at 4 12 18 PM

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

michaelnchin avatar Apr 23 '22 02:04 michaelnchin