start_import_task
¶
start_import_task(
source: str,
graph_identifier: GraphIdentifier,
role_arn: RoleArn,
*,
config_overrides: Optional[NeptuneGraphClientConfig] = None,
import_options: Optional[ImportOptions] = None,
fail_on_error: Optional[bool] = None,
format: Optional[Format] = None,
parquet_type: Optional[ParquetType] = None,
blank_node_handling: Optional[BlankNodeHandling] = None,
) -> StartImportTaskOutput
Import data into existing Neptune Analytics graph from Amazon Simple Storage Service (S3). The graph needs to be empty and in the AVAILABLE state.
Parameters:
-
fail_on_error(Optional[bool], default:None) –If set to true, the task halts when an import error is encountered. If set to false, the task skips the data that caused the error and continues if possible.
-
source(str) –A URL identifying the location of the data to be imported. This can be an Amazon S3 path, or can point to a Neptune database endpoint or snapshot.
-
format(Optional[Format], default:None) –Specifies the format of Amazon S3 data to be imported. Valid values are CSV, which identifies the Gremlin CSV format or OPENCYPHER, which identifies the openCypher load format.
-
parquet_type(Optional[ParquetType], default:None) –The parquet type of the import task.
-
blank_node_handling(Optional[BlankNodeHandling], default:None) –The method to handle blank nodes in the dataset. Currently, only
convertToIriis supported, meaning blank nodes are converted to unique IRIs at load time. Must be provided when format isntriples. For more information, see Handling RDF values. -
graph_identifier(GraphIdentifier) –The unique identifier of the Neptune Analytics graph.
-
role_arn(RoleArn) –The ARN of the IAM role that will allow access to the data that is to be imported.
Raises:
-
ConflictException–Raised when a conflict is encountered.
-
InternalServerException–A failure occurred on the server.
-
ResourceNotFoundException–A specified resource could not be located.
-
ThrottlingException–The exception was interrupted by throttling.
-
ValidationException–A resource could not be validated.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_neptune_graph/_services/neptune_graph.py
2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 | |