Updated on 2024-01-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 you create metadata for the first time, you need to enable OBS. (You are advised to obtain user authorization and automatically create OBS buckets for the metadata.)
    • Definition: Metadata models can be built manually or in a visualized manner.
      Manual: Click Add Label. Define the label name and label type. Click Add under the label name to add a property. You can also click Up or Down to sort properties. Table 1 lists the property parameters. For details about other metadata information, see Graph Data Formats.
      1. Multiple labels are allowed. Click Add label to add labels as needed.
      2. There are three types of labels: vertex, edge, and general-purpose (both vertex and edge).

      Visual:

      • Adding a vertex label: Drag a circle to the canvas to add a vertex. Click the vertex in the canvas to define its name, description, and properties.
      • Adding an edge label: Click a connection point on a vertex and drag it to the connection point of another vertex to create an edge. Define its name, description, source vertex, target vertex, and properties. Table 1 lists the property parameters.
      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.