@@ -2095,6 +2095,8 @@ def load(self, line='', local_ns: dict = None):
2095
2095
parser .add_argument ('--allow-empty-strings' , action = 'store_true' , default = False ,
2096
2096
help = 'Load empty strings found in node and edge property values.' )
2097
2097
parser .add_argument ('-n' , '--nopoll' , action = 'store_true' , default = False )
2098
+ parser .add_argument ('--edge-only-load' , action = 'store_true' , default = False ,
2099
+ help = 'Assume there are only edge files present - do not scan for vertex files before loading edge files.' )
2098
2100
2099
2101
args = parser .parse_args (line .split ())
2100
2102
button = widgets .Button (description = "Submit" )
@@ -2238,6 +2240,13 @@ def load(self, line='', local_ns: dict = None):
2238
2240
disabled = False ,
2239
2241
layout = widgets .Layout (width = widget_width )
2240
2242
)
2243
+
2244
+ edge_only_load = widgets .Dropdown (
2245
+ options = ['TRUE' , 'FALSE' ],
2246
+ value = str (args .edge_only_load ).upper (),
2247
+ disabled = False ,
2248
+ layout = widgets .Layout (width = widget_width )
2249
+ )
2241
2250
2242
2251
# Create a series of HBox containers that will hold the widgets and labels
2243
2252
# that make up the %load form. Some of the labels and widgets are created
@@ -2347,6 +2356,13 @@ def load(self, line='', local_ns: dict = None):
2347
2356
justify_content = "flex-end" ))
2348
2357
2349
2358
poll_status_hbox = widgets .HBox ([poll_status_label , poll_status ])
2359
+
2360
+ edge_only_load_label = widgets .Label ('Edge Only load:' ,
2361
+ layout = widgets .Layout (width = label_width ,
2362
+ display = "flex" ,
2363
+ justify_content = "flex-end" ))
2364
+
2365
+ edge_only_load_hbox = widgets .HBox ([edge_only_load_label , edge_only_load ])
2350
2366
2351
2367
def update_edge_ids_options (change ):
2352
2368
if change .new .lower () == FORMAT_OPENCYPHER :
@@ -2399,7 +2415,7 @@ def update_parserconfig_options(change):
2399
2415
# load arguments for Neptune bulk load
2400
2416
bulk_load_boxes = [arn_hbox , mode_hbox , parallelism_hbox , cardinality_hbox ,
2401
2417
queue_hbox , dep_hbox , ids_hbox , allow_empty_strings_hbox ,
2402
- named_graph_uri_hbox , base_uri_hbox , poll_status_hbox ]
2418
+ named_graph_uri_hbox , base_uri_hbox , poll_status_hbox , edge_only_load_hbox ]
2403
2419
submit_load_boxes = [button , output ]
2404
2420
2405
2421
if load_type == 'incremental' :
@@ -2418,6 +2434,7 @@ def on_button_clicked(b):
2418
2434
base_uri_hbox .children = (base_uri_hbox_label , base_uri ,)
2419
2435
dep_hbox .children = (dep_hbox_label , dependencies ,)
2420
2436
concurrency_hbox .children = (concurrency_hbox_label , concurrency ,)
2437
+ edge_only_load_hbox .children = (edge_only_load_label , edge_only_load ,)
2421
2438
2422
2439
validated = True
2423
2440
validation_label_style = DescriptionStyle (color = 'red' )
@@ -2473,7 +2490,8 @@ def on_button_clicked(b):
2473
2490
'parallelism' : parallelism .value ,
2474
2491
'updateSingleCardinalityProperties' : update_single_cardinality .value ,
2475
2492
'queueRequest' : queue_request .value ,
2476
- 'parserConfiguration' : {}
2493
+ 'parserConfiguration' : {},
2494
+ 'edgeOnlyLoad' : edge_only_load .value
2477
2495
}
2478
2496
2479
2497
if dependencies :
@@ -2508,6 +2526,7 @@ def on_button_clicked(b):
2508
2526
named_graph_uri_hbox .close ()
2509
2527
base_uri_hbox .close ()
2510
2528
concurrency_hbox .close ()
2529
+ edge_only_load_hbox .close ()
2511
2530
button .close ()
2512
2531
2513
2532
load_submit_status_output = widgets .Output ()
0 commit comments