Skip to content

02 Loading Attributes

hkuich edited this page Nov 22, 2021 · 1 revision

Schema

is-in-use sub attribute, value string,
   plays in-use:status;

Data

values
yes
no

Configuration

{
  "globalConfig": {...},
  "attributes": {                   // all attributes go here
    "is-in-use": {                  // key for generator in attributes, must be unique
      "data": [                     // files from which to load data
        "src/test/resources/1.0.0/phoneCalls/is-in-use.csv"
      ],
      "insert": {
        "attribute": "is-in-use",   // attribute type to insert
        "column": "values"          // column from which to load values
      }
    },
    ...
  },
  ...
}

TypeDB Loader will ensure that all values in your data files adhere to the attribute's value type specified in your schema or try to cast them. If a value cannot be cast, it is not inserted, and the line written out into an error log see logging.

See the full phone-calls schema here.

See the full phone-calls config file here.

See the full data file here.