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); }
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.