create-dataset-item

Description

Create a dataset item.

Synopsis

$ abeja dataset create-dataset-item --help
Usage: abeja dataset create-dataset-item [OPTIONS]

  Create dataset item

Options:
  -d, --dataset_id, --dataset-id TEXT
                                  Dataset id  [required]
  -p, --payload FILENAME          Dataset item payload to create  [required]
  --help                          Show this message and exit.

Options

-d, --dataset_id

Specify the dataset ID to create a new dataset item. (Required)

-p, --payload

Specify the parameter of new dataset item. The format of parameter is json format or yaml format. (Required)

You can refer to the content of parameter ( source_data and attributes ) at API document .

Payload definition example (dataset_item_payload.yml)

source_data:
- data_type: images/jpeg
  data_uri: 'datalake://1200000000000/20170815T044617-f20dde80-1e3b-4496-bc06-1b63b026b872'
  height: 500
  width: 200
attributes:
  classification:
  - category_id: 1
    label_id: 1

Example

Create dataset item

Create a new dataset item.

Command:

$ abeja dataset create-dataset-item --dataset_id xxxx --payload ./dataset_item_payload.yml