GitHub user dosubot[bot] edited a comment on the discussion: 关于电网拓扑数据导入
<!-- Answer --> 没问题,你的数据量级 HugeGraph 完全能支持,性能和扩展性都没问题。 关于导入和连接关系,核心要点是: 1. schema.groovy 里每个顶点类型都要定义主键(比如 id),每个边标签只能连接一种源点和目标点类型(比如 Substation-Substation、LineSegment-LineSegment 等),不能混用。 2. struct.json 里边的 source/target 字段必须和顶点主键字段一一对应,并且都在 selected 里,field_mapping 也要正确映射。 3. 边的 label 必须和 schema 里的边标签完全一致,顶点的 label 也要和 schema 里的顶点标签一致。 如果你需要一份适配你数据的 schema.groovy 和 struct.json 示例,可以直接发你的数据结构和需求,我可以帮你写一份模板,确保所有连接关系都能导入成功。 遇到导入失败,优先检查 struct.json 里的 source/target 字段和顶点主键是否一致,很多边导不进去都是这个原因。社区有类似案例可以参考:[详细配置和解决方法](https://github.com/apache/incubator-hugegraph/issues/2749)。 有任何具体报错或需求都可以补充,我可以帮你逐条定位。 <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=reply-with-mention&utm_term=apache%2Fhugegraph).* --- Docs are dead. Just use [Dosu](https://dosu.dev?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-tagline&utm_term=apache%2Fhugegraph). [](https://app.dosu.dev/response-feedback?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-feedback&utm_term=apache%2Fhugegraph#message_id=d941519f-6110-446b-ad9b-4f73b91ddce3) [](https://github.dosu.com/apache/hugegraph?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-ask-repo&utm_term=apache%2Fhugegraph) [](https://app.dosu.dev/signup?referrer=openSource&source=github-footer&utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-share-team&utm_term=apache%2Fhugegraph) GitHub link: https://github.com/apache/hugegraph/discussions/2917#discussioncomment-15192712 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected]
