start_import_task
async
¶
start_import_task(
source: str,
graph_identifier: GraphIdentifier,
role_arn: RoleArn,
*,
config_overrides: Optional[AsyncNeptuneGraphClientConfig] = 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.
Graph sessions don't support this API. Use neptune.load CALL procedure to load data into the Graph Session instead.
Parameters:
-
import_options(Optional[ImportOptions], default:None) –Contains options for controlling the import process. For example, if the
failOnErrorkey is set tofalse, the import skips problem data and attempts to continue (whereas if set totrue, the default, or if omitted, the import operation halts immediately when an error is encountered. -
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/async_neptune_graph.py
2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 | |