coolboywcm commented on issue #680: URL: https://github.com/apache/incubator-hugegraph-toolchain/issues/680#issuecomment-3218653935
> 需要。即使所有属性、点类型和边类型都已经在 HugeGraph 里提前创建好,hugegraph-loader 依然必须有 mapping 文件(struct.json),用来告诉 loader 如何把 CSV 文件的每一列映射到图数据库的 schema 上。没有 mapping 文件,loader 无法解析你的 CSV 数据和字段对应关系。 > > schema 配置文件(如 schema.groovy)只在你需要自动创建 schema 时才需要。如果所有 schema 元素都已存在,可以不用再执行 schema 文件,只要保证 mapping 文件字段和 schema 完全对应即可。 > > 参考社区讨论和 loader 测试用例,struct.json 是必须的,schema.groovy 可选(已建好 schema 时不用)[详见](https://github.com/apache/incubator-hugegraph-toolchain/issues/680#issuecomment-3218174858)。 > > _To reply, just mention [@dosu](https://go.dosu.dev/dosubot)._ > > How did I do? [Good](https://app.dosu.dev/response-feedback/2844c341-cb35-49ab-880d-2a4f72211ba5?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/2844c341-cb35-49ab-880d-2a4f72211ba5?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/2844c341-cb35-49ab-880d-2a4f72211ba5?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/2844c341-cb35-49ab-880d-2a4f72211ba5?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/2844c341-cb35-49ab-880d-2a4f72211ba5?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/2844c341-cb35-49ab-880d-2a4f72211ba5?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/2844c341-cb35-49ab-880d-2a4f72211ba5?feedback_type=other) [](https://app.dosu.dev/e5e246fa-a522-4d8a-ab3c-e2588b5b501b/ask?utm_source=github) [](https://go.dosu.dev/discord-bot) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/incubator-hugegraph-toolchain/issues/680) 好的,谢谢. 我的节点数据csv是否需要表头,我现在是id作为第一列, 名称作为第二列,比如vertex.csv内容如下 ``` -201035082963479683,实体 -1779678833482502384,值 4646408208538057683,胶饴 -1861609733419239066,别名: 饴糖、畅糖、畅、软糖。 -2047289935702608120,词条 5842706712819643509,词条(拼音:cí tiáo)也叫词目,是辞书学用语,指收列的词语及其释文。 -3063129772935425027,文化 -2484942249444426630,红色食品 -3877061284769534378,红色食品是指食品为红色、橙红色或棕红色的食品。 -3402450096279275143,否 4786182067583989997,预防感冒,缓解疲劳 ``` 我在loader的文档中,对csv的相关样例,是没有表头的 [@dosu](https://go.dosu.dev/dosubot). -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
