Updated on 2023-03-03 GMT+08:00

Creating a Metadata File

If you currently have no metadata file, you can create metadata files on GES.

Procedure

  1. On the Metadata Management page, click Create Metadata File in the upper right corner.
  2. Configure the following parameters on the displayed page:

    Name: Enter the metadata file name. The default file format is XML.

    Storage Path: Select an OBS path for storing the metadata file. If this is your first time creating a metadata file, you need to enable OBS. You are advised to obtain user authorization to automatically create OBS buckets for the metadata.

    Encrypt Metadata: Whether to encrypt the metadata. It is disabled by default.

    Key Source: Retain the default value KMS.

    KMS Key: Select the key as needed.

    Some functions will be affected if you disable or delete a KMS key.

    Definition: Labels of vertices and edges in the metadata file. Multiple labels are allowed. Click Add label to add labels as required.

    Specify the Label Name and click the down arrow to expand the label information and add properties for the label. Click Add to enter a property name and click Up and Down to change orders of properties. Table 1 lists the property parameters. For details about other metadata information, see section Static Graph.

    Table 1 Property parameters

    Name

    Description

    Property Name

    Name of a property. It contains 1 to 256 characters. Special characters such as angle brackets (<>) and ampersands (&) are not allowed.

    Cardinality

    Composite type of data

    • Single value: indicates that the property has a single value, such as a digit or a string.
    • Multiple values: indicates that the property has multiple values separated by semicolons (;). You can determine whether to allow repetitive values.

    Data Type

    Data type of the property values. Available values are char, float, double, bool, long, int, date, enum, string, and char array. For details, see Static Graph.

    NOTE:

    Only the single-value property supports the char array type.

    Operation

    Click Remove to delete a property.

  3. Click OK. The created metadata file will be displayed on the Metadata Management page.

    On the Metadata Management page, you can view the storage path, status, and modification time of the metadata.