Updated on 2022-09-14 GMT+08:00

Verifying Metadata Files

GES provides an API for verifying metadata files, with which you can check whether the selected data sets match the metadata file. The sample code is as follows:

  private static void checkSchema(GesClient client) throws GesSdkException {
        Schema schema = new Schema();
        schema.setSchemaPath("gesdata/movie/schema.xml");
        schema.setEdgesetPath("gesdata/movie/edge.csv");
        schema.setVertexsetPath("gesdata/movie/vertex.csv");
        boolean checkResult = client.checkSchema(schema);
        System.out.println(checkResult);
 
    }