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

Importing Incremental Data

Scenario

After you create a graph, you need to import graph data. If you need to add new graph data, you can import data to the graph.

  • To prevent failures in restoring the imported graph data during system restart, do not delete the data stored on OBS when the graph is in use.
  • The default separator of data columns is comma (,). You cannot define a separator.

Procedure

  1. Log in to the GES management console.
  2. In the navigation tree on the left, select Graph Management.
  3. Locate the target graph in the graph list and select Import in the Operation column.
  4. In the Import dialog box that is displayed, set the following parameters:

    • Metadata: Select an existing metadata file or create one. For details, see Creating a Metadata File.
    • Edge Data: Select the corresponding edge data set.
    • Vertex Data: Select the corresponding vertex data set. If you leave it blank, the vertices in the Edge Data set are used as the source of Vertex Data.
    • Log Storage Path: Stores vertex and edge data sets that do not comply with the metadata definition, as well as detailed logs generated during graph import.
    • Edge Processing: Includes Allow repetitive edges, Ignore subsequent repetitive edges, Overwrite previous repetitive edges, and Ignore labels on repetitive edges.

      Edge Processing: Repetitive edges have the same source and target vertices. When labels are considered, repetitive edges must have the same source and target vertices and the same labels.
      • Allow repetitive edges: Multiple edges may exist between a source vertex and a target vertex.
      • Ignore subsequent repetitive edges: If there are multiple edges between a source vertex and a target vertex, only the first edge read is retained.
      • Overwrite previous repetitive edges: If there are multiple edges between a source vertex and a target vertex, only the last edge read is retained.
      • Ignore labels on repetitive edges: If labels are ignored, edges with the same source vertex and target vertex are repetitive edges.
    • Import Type: The value can be Online import or Offline import.
    • The edge and vertex data sets can only be stored in English paths and folders.
    • Currently, you can import the edge and vertex data sets only from OBS. You need to store data files in an OBS bucket..
    • The sequence of the properties and labels in the selected edge or vertex data set must be the same as the sequence in the selected metadata file. Otherwise, The edge/vertex data file does not match the metadata file is displayed in the upper right corner and the graph fails to be created. For details about the graph data format, refer to Graph Data Formats.
    • You need to import the graph data (including the metadata file, and edge and vertex data sets) in the format specified in the template. The template contains a copy of movie information. You can click Download to download and import it.

  5. Click OK.