GitHub user dosubot[bot] added a comment to the discussion: 关于电网拓扑数据导入
<!-- Answer -->
你的数据结构和需求已经很清楚,下面给你一份适配你电网拓扑数据的 HugeGraph schema.groovy 和 struct.json
配置模板,并说明如何实现双向连接和 HTTP 工作流集成。
---
### 1. schema.groovy 示例(每种点类型和边类型都单独定义,便于扩展)
```groovy
// 属性定义
schema.propertyKey("id").asText().ifNotExist().create();
schema.propertyKey("name").asText().ifNotExist().create();
schema.propertyKey("objectType").asText().ifNotExist().create();
schema.propertyKey("objectHandle").asText().ifNotExist().create();
schema.propertyKey("deviceType").asText().ifNotExist().create();
schema.propertyKey("internalEndpointNo").asInt().ifNotExist().create();
schema.propertyKey("terminalNo").asInt().ifNotExist().create();
schema.propertyKey("usage").asText().ifNotExist().create();
schema.propertyKey("powerFlowDirection").asInt().ifNotExist().create();
schema.propertyKey("belongSubstation").asText().ifNotExist().create();
schema.propertyKey("belongFeeder").asText().ifNotExist().create();
// 顶点标签
schema.vertexLabel("Substation").properties("id", "name", "objectType",
"objectHandle", "deviceType", "internalEndpointNo", "terminalNo", "usage",
"powerFlowDirection", "belongSubstation",
"belongFeeder").primaryKeys("id").ifNotExist().create();
schema.vertexLabel("LineSegment").properties("id", "name", "objectType",
"objectHandle", "deviceType", "internalEndpointNo", "terminalNo", "usage",
"powerFlowDirection", "belongSubstation",
"belongFeeder").primaryKeys("id").ifNotExist().create();
schema.vertexLabel("LineSwitch").properties("id", "name", "objectType",
"objectHandle", "deviceType", "internalEndpointNo", "terminalNo", "usage",
"powerFlowDirection", "belongSubstation",
"belongFeeder").primaryKeys("id").ifNotExist().create();
schema.vertexLabel("StationHouse").properties("id", "name", "objectType",
"objectHandle", "deviceType", "internalEndpointNo", "terminalNo", "usage",
"powerFlowDirection", "belongSubstation",
"belongFeeder").primaryKeys("id").ifNotExist().create();
// 边标签(每种类型对每种类型都定义一条边,便于扩展和双向连接)
schema.edgeLabel("Substation2LineSegment").sourceLabel("Substation").targetLabel("LineSegment").properties().ifNotExist().create();
schema.edgeLabel("LineSegment2StationHouse").sourceLabel("LineSegment").targetLabel("StationHouse").properties().ifNotExist().create();
schema.edgeLabel("LineSegment2LineSegment").sourceLabel("LineSegment").targetLabel("LineSegment").properties().ifNotExist().create();
schema.edgeLabel("StationHouse2LineSwitch").sourceLabel("StationHouse").targetLabel("LineSwitch").properties().ifNotExist().create();
// ...根据实际需要继续补充
// 反向边(如需双向,定义反向边标签)
schema.edgeLabel("LineSegment2Substation").sourceLabel("LineSegment").targetLabel("Substation").properties().ifNotExist().create();
schema.edgeLabel("StationHouse2LineSegment").sourceLabel("StationHouse").targetLabel("LineSegment").properties().ifNotExist().create();
// ...以此类推
```
---
### 2. struct.json 示例(关键点:source/target 字段要和顶点主键一致)
```json
{
"vertices": [
{
"label": "Substation",
"input": {
"type": "file",
"path": "vertex_substation-1.csv",
"format": "CSV",
"header": ["id", "name", "objectType", "objectHandle", "deviceType",
"internalEndpointNo", "terminalNo", "usage", "powerFlowDirection",
"belongSubstation", "belongFeeder"],
"charset": "UTF-8"
},
"null_values": ["NULL", "null", ""]
},
// 其他顶点类型同理
],
"edges": [
{
"label": "Substation2LineSegment",
"source": ["from"],
"target": ["to"],
"input": {
"type": "file",
"path": "edge_substation2linesegment.csv",
"format": "CSV",
"header": ["from", "to"]
},
"field_mapping": {
"from": "id",
"to": "id"
}
},
// 反向边
{
"label": "LineSegment2Substation",
"source": ["to"],
"target": ["from"],
"input": {
"type": "file",
"path": "edge_substation2linesegment.csv",
"format": "CSV",
"header": ["from", "to"]
},
"field_mapping": {
"from": "id",
"to": "id"
}
}
// 其他边类型同理
]
}
```
---
### 3. 如何实现双向连接
HugeGraph 的边是有向的,A→B 和 B→A 需要各导入一条边。你可以用脚本或 Excel 处理,把所有边数据复制一份,把 from/to
互换,合并后导入即可(比如 edge_xxx.csv
里每条边都正反各一条)。这样查询时可以支持任意方向的遍历和分析。[官方文档说明](https://github.com/apache/incubator-hugegraph-doc/blob/3e1c610281c91ea3a5c600b393088e9ffae34799/content/en/docs/quickstart/toolchain/hugegraph-loader.md#L11-L1110)
---
### 4. 导入命令与验证
导入命令示例:
```bash
sh bin/hugegraph-loader.sh -g hugegraph -f struct.json -s schema.groovy -h
127.0.0.1 -p 8080
```
导入后可用 curl 验证:
```bash
curl "http://localhost:8080/graphs/hugegraph/graph/vertices"
curl "http://localhost:8080/graphs/hugegraph/graph/edges"
```
---
### 5. Dify 工作流 HTTP 集成
HugeGraph 支持标准 RESTful API,Dify 工作流可以像集成 Neo4j 一样通过 HTTP 访问
HugeGraph,进行增删查改、批量导入、图查询等。比如创建边:
```http
POST http://localhost:8080/graphs/hugegraph/graph/edges
Content-Type: application/json
{
"label": "Substation2LineSegment",
"outV": "BDZ-3002",
"inV": "XLD-3445",
"outVLabel": "Substation",
"inVLabel": "LineSegment"
}
```
详见 [RESTful API
文档](https://github.com/apache/incubator-hugegraph-doc/blob/3e1c610281c91ea3a5c600b393088e9ffae34799/content/en/docs/clients/restful-api/edge.md#L11-L650)。
---
### 6. 扩展性建议
- 每种点类型、边类型都单独定义,后续扩展新类型只需补充 schema 和 struct 配置即可。
- 边标签建议按“类型A2类型B”命名,便于管理和后续扩展。
- 数据量大时建议分批导入,或用 Loader 的断点续传功能。
- schema 变更需注意边标签的单一源/目标类型限制,新增类型时需新增边标签。
如需更详细的配置模板或自动化脚本,可以继续补充你的具体需求。
<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*
---
<sup>How did I do?
[Good](https://app.dosu.dev/response-feedback/78feb77b-100d-4b74-9db3-13e58a403bda?feedback_type=great_response)
|
[Irrelevant](https://app.dosu.dev/response-feedback/78feb77b-100d-4b74-9db3-13e58a403bda?feedback_type=irrelevant_answer)
|
[Incorrect](https://app.dosu.dev/response-feedback/78feb77b-100d-4b74-9db3-13e58a403bda?feedback_type=incorrect_sources)
|
[Verbose](https://app.dosu.dev/response-feedback/78feb77b-100d-4b74-9db3-13e58a403bda?feedback_type=too_verbose)
|
[Hallucination](https://app.dosu.dev/response-feedback/78feb77b-100d-4b74-9db3-13e58a403bda?feedback_type=hallucination)
| [Report
🐛](https://app.dosu.dev/response-feedback/78feb77b-100d-4b74-9db3-13e58a403bda?feedback_type=bug_report)
|
[Other](https://app.dosu.dev/response-feedback/78feb77b-100d-4b74-9db3-13e58a403bda?feedback_type=other)</sup>
[](https://app.dosu.dev/e5e246fa-a522-4d8a-ab3c-e2588b5b501b/ask?utm_source=github) [](https://cursor.com/link/prompt?text=%E4%BD%A0%E7%9A%84%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84%E5%92%8C%E9%9C%80%E6%B1%82%E5%B7%B2%E7%BB%8F%E5%BE%88%E6%B8%85%E6%A5%9A%EF%BC%8C%E4%B8%8B%E9%9D%A2%E7%BB%99%E4%BD%A0%E4%B8%80%E4%BB%BD%E9%80%82%E9%85%8D%E4%BD%A0%E7%94%B5%E7%BD%91%E6%8B%93%E6%89%91%E6%95%B0%E6%8D%AE%E7%9A%84%20HugeGraph%20schema.groovy%20%E5%92%8C%20struct.json%20%E9%85%8D%E7%BD%AE%E6%A8%A1%E6%9D%BF%EF%BC%8C%E5%B9%B6%E8%AF%B4%E6%98%8E%E5%A6%82%E4%BD%95%E5%AE%9E%E7%8E%B0%E5%8F%8C%E5%90%91%E8%BF%9E%E6%8E%A5%E5%92%8C%20HTTP%20%E5%B7%A5%E4%BD%9C%E6%B5%81%E9%9B%86%E6%88%90%E3%80%82%0A%0A---%0A%0A%23%23%23%201.%20schema.groovy%20%E7%A4%BA%E4%BE%8B%EF%BC%88%E6%AF%8F%E7%A7%8D%E7%82%B9%E7%B1%BB%E5%9E%8B%E5%92%8C%E8%BE%B9%E7%B1%BB%E5%9E%8B%E9%83%BD%E5%8D%95%E7%8B%AC%E5%AE%9A%E4%B9%89%EF%BC%
8C%E4%BE%BF%E4%BA%8E%E6%89%A9%E5%B1%95%EF%BC%89%0A%0A%60%60%60groovy%0A//%20%E5%B1%9E%E6%80%A7%E5%AE%9A%E4%B9%89%0Aschema.propertyKey%28%22id%22%29.asText%28%29.ifNotExist%28%29.create%28%29%3B%0Aschema.propertyKey%28%22name%22%29.asText%28%29.ifNotExist%28%29.create%28%29%3B%0Aschema.propertyKey%28%22objectType%22%29.asText%28%29.ifNotExist%28%29.create%28%29%3B%0Aschema.propertyKey%28%22objectHandle%22%29.asText%28%29.ifNotExist%28%29.create%28%29%3B%0Aschema.propertyKey%28%22deviceType%22%29.asText%28%29.ifNotExist%28%29.create%28%29%3B%0Aschema.propertyKey%28%22internalEndpointNo%22%29.asInt%28%29.ifNotExist%28%29.create%28%29%3B%0Aschema.propertyKey%28%22terminalNo%22%29.asInt%28%29.ifNotExist%28%29.create%28%29%3B%0Aschema.propertyKey%28%22usage%22%29.asText%28%29.ifNotExist%28%29.create%28%29%3B%0Aschema.propertyKey%28%22powerFlowDirection%22%29.asInt%28%29.ifNotExist%28%29.create%28%29%3B%0Aschema.propertyKey%28%22belongSubstation%22%29.asText%28%29.ifNotExist%28%29.create%2
8%29%3B%0Aschema.propertyKey%28%22belongFeeder%22%29.asText%28%29.ifNotExist%28%29.create%28%29%3B%0A%0A//%20%E9%A1%B6%E7%82%B9%E6%A0%87%E7%AD%BE%0Aschema.vertexLabel%28%22Substation%22%29.properties%28%22id%22%2C%20%22name%22%2C%20%22objectType%22%2C%20%22objectHandle%22%2C%20%22deviceType%22%2C%20%22internalEndpointNo%22%2C%20%22terminalNo%22%2C%20%22usage%22%2C%20%22powerFlowDirection%22%2C%20%22belongSubstation%22%2C%20%22belongFeeder%22%29.primaryKeys%28%22id%22%29.ifNotExist%28%29.create%28%29%3B%0Aschema.vertexLabel%28%22LineSegment%22%29.properties%28%22id%22%2C%20%22name%22%2C%20%22objectType%22%2C%20%22objectHandle%22%2C%20%22deviceType%22%2C%20%22internalEndpointNo%22%2C%20%22terminalNo%22%2C%20%22usage%22%2C%20%22powerFlowDirection%22%2C%20%22belongSubstation%22%2C%20%22belongFeeder%22%29.primaryKeys%28%22id%22%29.ifNotExist%28%29.create%28%29%3B%0Aschema.vertexLabel%28%22LineSwitch%22%29.properties%28%22id%22%2C%20%22name%22%2C%20%22objectType%22%2C%20%22objectHandle%22
%2C%20%22deviceType%22%2C%20%22internalEndpointNo%22%2C%20%22terminalNo%22%2C%20%22usage%22%2C%20%22powerFlowDirection%22%2C%20%22belongSubstation%22%2C%20%22belongFeeder%22%29.primaryKeys%28%22id%22%29.ifNotExist%28%29.create%28%29%3B%0Aschema.vertexLabel%28%22StationHouse%22%29.properties%28%22id%22%2C%20%22name%22%2C%20%22objectType%22%2C%20%22objectHandle%22%2C%20%22deviceType%22%2C%20%22internalEndpointNo%22%2C%20%22terminalNo%22%2C%20%22usage%22%2C%20%22powerFlowDirection%22%2C%20%22belongSubstation%22%2C%20%22belongFeeder%22%29.primaryKeys%28%22id%22%29.ifNotExist%28%29.create%28%29%3B%0A%0A//%20%E8%BE%B9%E6%A0%87%E7%AD%BE%EF%BC%88%E6%AF%8F%E7%A7%8D%E7%B1%BB%E5%9E%8B%E5%AF%B9%E6%AF%8F%E7%A7%8D%E7%B1%BB%E5%9E%8B%E9%83%BD%E5%AE%9A%E4%B9%89%E4%B8%80%E6%9D%A1%E8%BE%B9%EF%BC%8C%E4%BE%BF%E4%BA%8E%E6%89%A9%E5%B1%95%E5%92%8C%E5%8F%8C%E5%90%91%E8%BF%9E%E6%8E%A5%EF%BC%89%0Aschema.edgeLabel%28%22Substation2LineSegment%22%29.sourceLabel%28%22Substation%22%29.targetLabel%28%22LineSegment%
22%29.properties%28%29.ifNotExist%28%29.create%28%29%3B%0Aschema.edgeLabel%28%22LineSegment2StationHouse%22%29.sourceLabel%28%22LineSegment%22%29.targetLabel%28%22StationHouse%22%29.properties%28%29.ifNotExist%28%29.create%28%29%3B%0Aschema.edgeLabel%28%22LineSegment2LineSegment%22%29.sourceLabel%28%22LineSegment%22%29.targetLabel%28%22LineSegment%22%29.properties%28%29.ifNotExist%28%29.create%28%29%3B%0Aschema.edgeLabel%28%22StationHouse2LineSwitch%22%29.sourceLabel%28%22StationHouse%22%29.targetLabel%28%22LineSwitch%22%29.properties%28%29.ifNotExist%28%29.create%28%29%3B%0A//%20...%E6%A0%B9%E6%8D%AE%E5%AE%9E%E9%99%85%E9%9C%80%E8%A6%81%E7%BB%A7%E7%BB%AD%E8%A1%A5%E5%85%85%0A%0A//%20%E5%8F%8D%E5%90%91%E8%BE%B9%EF%BC%88%E5%A6%82%E9%9C%80%E5%8F%8C%E5%90%91%EF%BC%8C%E5%AE%9A%E4%B9%89%E5%8F%8D%E5%90%91%E8%BE%B9%E6%A0%87%E7%AD%BE%EF%BC%89%0Aschema.edgeLabel%28%22LineSegment2Substation%22%29.sourceLabel%28%22LineSegment%22%29.targetLabel%28%22Substation%22%29.properties%28%29.ifNotExist%28
%29.create%28%29%3B%0Aschema.edgeLabel%28%22StationHouse2LineSegment%22%29.sourceLabel%28%22StationHouse%22%29.targetLabel%28%22LineSegment%22%29.properties%28%29.ifNotExist%28%29.create%28%29%3B%0A//%20...%E4%BB%A5%E6%AD%A4%E7%B1%BB%E6%8E%A8%0A%60%60%60%0A%0A---%0A%0A%23%23%23%202.%20struct.json%20%E7%A4%BA%E4%BE%8B%EF%BC%88%E5%85%B3%E9%94%AE%E7%82%B9%EF%BC%9Asource/target%20%E5%AD%97%E6%AE%B5%E8%A6%81%E5%92%8C%E9%A1%B6%E7%82%B9%E4%B8%BB%E9%94%AE%E4%B8%80%E8%87%B4%EF%BC%89%0A%0A%60%60%60json%0A%7B%0A%20%20%22vertices%22%3A%20%5B%0A%20%20%20%20%7B%0A%20%20%20%20%20%20%22label%22%3A%20%22Substation%22%2C%0A%20%20%20%20%20%20%22input%22%3A%20%7B%0A%20%20%20%20%20%20%20%20%22type%22%3A%20%22file%22%2C%0A%20%20%20%20%20%20%20%20%22path%22%3A%20%22vertex_substation-1.csv%22%2C%0A%20%20%20%20%20%20%20%20%22format%22%3A%20%22CSV%22%2C%0A%20%20%20%20%20%20%20%20%22header%22%3A%20%5B%22id%22%2C%20%22name%22%2C%20%22objectType%22%2C%20%22objectHandle%22%2C%20%22deviceType%22%2C%20%22internalE
ndpointNo%22%2C%20%22terminalNo%22%2C%20%22usage%22%2C%20%22powerFlowDirection%22%2C%20%22belongSubstation%22%2C%20%22belongFeeder%22%5D%2C%0A%20%20%20%20%20%20%20%20%22charset%22%3A%20%22UTF-8%22%0A%20%20%20%20%20%20%7D%2C%0A%20%20%20%20%20%20%22null_values%22%3A%20%5B%22NULL%22%2C%20%22null%22%2C%20%22%22%5D%0A%20%20%20%20%7D%2C%0A%20%20%20%20//%20%E5%85%B6%E4%BB%96%E9%A1%B6%E7%82%B9%E7%B1%BB%E5%9E%8B%E5%90%8C%E7%90%86%0A%20%20%5D%2C%0A%20%20%22edges%22%3A%20%5B%0A%20%20%20%20%7B%0A%20%20%20%20%20%20%22label%22%3A%20%22Substation2LineSegment%22%2C%0A%20%20%20%20%20%20%22source%22%3A%20%5B%22from%22%5D%2C%0A%20%20%20%20%20%20%22target%22%3A%20%5B%22to%22%5D%2C%0A%20%20%20%20%20%20%22input%22%3A%20%7B%0A%20%20%20%20%20%20%20%20%22type%22%3A%20%22file%22%2C%0A%20%20%20%20%20%20%20%20%22path%22%3A%20%22edge_substation2linesegment.csv%22%2C%0A%20%20%20%20%20%20%20%20%22format%22%3A%20%22CSV%22%2C%0A%20%20%20%20%20%20%20%20%22header%22%3A%20%5B%22from%22%2C%20%22to%22%5D%0A%20%20%20%20%
20%20%7D%2C%0A%20%20%20%20%20%20%22field_mapping%22%3A%20%7B%0A%20%20%20%20%20%20%20%20%22from%22%3A%20%22id%22%2C%0A%20%20%20%20%20%20%20%20%22to%22%3A%20%22id%22%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%2C%0A%20%20%20%20//%20%E5%8F%8D%E5%90%91%E8%BE%B9%0A%20%20%20%20%7B%0A%20%20%20%20%20%20%22label%22%3A%20%22LineSegment2Substation%22%2C%0A%20%20%20%20%20%20%22source%22%3A%20%5B%22to%22%5D%2C%0A%20%20%20%20%20%20%22target%22%3A%20%5B%22from%22%5D%2C%0A%20%20%20%20%20%20%22input%22%3A%20%7B%0A%20%20%20%20%20%20%20%20%22type%22%3A%20%22file%22%2C%0A%20%20%20%20%20%20%20%20%22path%22%3A%20%22edge_substation2linesegment.csv%22%2C%0A%20%20%20%20%20%20%20%20%22format%22%3A%20%22CSV%22%2C%0A%20%20%20%20%20%20%20%20%22header%22%3A%20%5B%22from%22%2C%20%22to%22%5D%0A%20%20%20%20%20%20%7D%2C%0A%20%20%20%20%20%20%22field_mapping%22%3A%20%7B%0A%20%20%20%20%20%20%20%20%22from%22%3A%20%22id%22%2C%0A%20%20%20%20%20%20%20%20%22to%22%3A%20%22id%22%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%0A%20%2
0%20%20//%20%E5%85%B6%E4%BB%96%E8%BE%B9%E7%B1%BB%E5%9E%8B%E5%90%8C%E7%90%86%0A%20%20%5D%0A%7D%0A%60%60%60%0A%0A---%0A%0A%23%23%23%203.%20%E5%A6%82%E4%BD%95%E5%AE%9E%E7%8E%B0%E5%8F%8C%E5%90%91%E8%BF%9E%E6%8E%A5%0A%0AHugeGraph%20%E7%9A%84%E8%BE%B9%E6%98%AF%E6%9C%89%E5%90%91%E7%9A%84%EF%BC%8CA%E2%86%92B%20%E5%92%8C%20B%E2%86%92A%20%E9%9C%80%E8%A6%81%E5%90%84%E5%AF%BC%E5%85%A5%E4%B8%80%E6%9D%A1%E8%BE%B9%E3%80%82%E4%BD%A0%E5%8F%AF%E4%BB%A5%E7%94%A8%E8%84%9A%E6%9C%AC%E6%88%96%20Excel%20%E5%A4%84%E7%90%86%EF%BC%8C%E6%8A%8A%E6%89%80%E6%9C%89%E8%BE%B9%E6%95%B0%E6%8D%AE%E5%A4%8D%E5%88%B6%E4%B8%80%E4%BB%BD%EF%BC%8C%E6%8A%8A%20from/to%20%E4%BA%92%E6%8D%A2%EF%BC%8C%E5%90%88%E5%B9%B6%E5%90%8E%E5%AF%BC%E5%85%A5%E5%8D%B3%E5%8F%AF%EF%BC%88%E6%AF%94%E5%A6%82%20edge_xxx.csv%20%E9%87%8C%E6%AF%8F%E6%9D%A1%E8%BE%B9%E9%83%BD%E6%AD%A3%E5%8F%8D%E5%90%84%E4%B8%80%E6%9D%A1%EF%BC%89%E3%80%82%E8%BF%99%E6%A0%B7%E6%9F%A5%E8%AF%A2%E6%97%B6%E5%8F%AF%E4%BB%A5%E6%94%AF%E6%8C%81%E4%BB%BB%E6%84%8F%E6%96%B9%E5%90%91%E7%
9A%84%E9%81%8D%E5%8E%86%E5%92%8C%E5%88%86%E6%9E%90%E3%80%82%5B%E5%AE%98%E6%96%B9%E6%96%87%E6%A1%A3%E8%AF%B4%E6%98%8E%5D%28https%3A//github.com/apache/incubator-hugegraph-doc/blob/3e1c610281c91ea3a5c600b393088e9ffae34799/content/en/docs/quickstart/toolchain/hugegraph-loader.md%23L11-L1110%29%0A%0A---%0A%0A%23%23%23%204.%20%E5%AF%BC%E5%85%A5%E5%91%BD%E4%BB%A4%E4%B8%8E%E9%AA%8C%E8%AF%81%0A%0A%E5%AF%BC%E5%85%A5%E5%91%BD%E4%BB%A4%E7%A4%BA%E4%BE%8B%EF%BC%9A%0A%0A%60%60%60bash%0Ash%20bin/hugegraph-loader.sh%20-g%20hugegraph%20-f%20struct.json%20-s%20schema.groovy%20-h%20127.0.0.1%20-p%208080%0A%60%60%60%0A%0A%E5%AF%BC%E5%85%A5%E5%90%8E%E5%8F%AF%E7%94%A8%20curl%20%E9%AA%8C%E8%AF%81%EF%BC%9A%0A%0A%60%60%60bash%0Acurl%20%22http%3A//localhost%3A8080/graphs/hugegraph/graph/vertices%22%0Acurl%20%22http%3A//localhost%3A8080/graphs/hugegraph/graph/edges%22%0A%60%60%60%0A%0A---%0A%0A%23%23%23%205.%20Dify%20%E5%B7%A5%E4%BD%9C%E6%B5%81%20HTTP%20%E9%9B%86%E6%88%90%0A%0AHugeGraph%20%E6%94%AF%E6%8C%81%E
6%A0%87%E5%87%86%20RESTful%20API%EF%BC%8CDify%20%E5%B7%A5%E4%BD%9C%E6%B5%81%E5%8F%AF%E4%BB%A5%E5%83%8F%E9%9B%86%E6%88%90%20Neo4j%20%E4%B8%80%E6%A0%B7%E9%80%9A%E8%BF%87%20HTTP%20%E8%AE%BF%E9%97%AE%20HugeGraph%EF%BC%8C%E8%BF%9B%E8%A1%8C%E5%A2%9E%E5%88%A0%E6%9F%A5%E6%94%B9%E3%80%81%E6%89%B9%E9%87%8F%E5%AF%BC%E5%85%A5%E3%80%81%E5%9B%BE%E6%9F%A5%E8%AF%A2%E7%AD%89%E3%80%82%E6%AF%94%E5%A6%82%E5%88%9B%E5%BB%BA%E8%BE%B9%EF%BC%9A%0A%0A%60%60%60http%0APOST%20http%3A//localhost%3A8080/graphs/hugegraph/graph/edges%0AContent-Type%3A%20application/json%0A%0A%7B%0A%20%20%22label%22%3A%20%22Substation2LineSegment%22%2C%0A%20%20%22outV%22%3A%20%22BDZ-3002%22%2C%0A%20%20%22inV%22%3A%20%22XLD-3445%22%2C%0A%20%20%22outVLabel%22%3A%20%22Substation%22%2C%0A%20%20%22inVLabel%22%3A%20%22LineSegment%22%0A%7D%0A%60%60%60%0A%E8%AF%A6%E8%A7%81%20%5BRESTful%20API%20%E6%96%87%E6%A1%A3%5D%28https%3A//github.com/apache/incubator-hugegraph-doc/blob/3e1c610281c91ea3a5c600b393088e9ffae34799/content/en/docs/clients/res
tful-api/edge.md%23L11-L650%29%E3%80%82%0A%0A---%0A%0A%23%23%23%206.%20%E6%89%A9%E5%B1%95%E6%80%A7%E5%BB%BA%E8%AE%AE%0A%0A-%20%E6%AF%8F%E7%A7%8D%E7%82%B9%E7%B1%BB%E5%9E%8B%E3%80%81%E8%BE%B9%E7%B1%BB%E5%9E%8B%E9%83%BD%E5%8D%95%E7%8B%AC%E5%AE%9A%E4%B9%89%EF%BC%8C%E5%90%8E%E7%BB%AD%E6%89%A9%E5%B1%95%E6%96%B0%E7%B1%BB%E5%9E%8B%E5%8F%AA%E9%9C%80%E8%A1%A5%E5%85%85%20schema%20%E5%92%8C%20struct%20%E9%85%8D%E7%BD%AE%E5%8D%B3%E5%8F%AF%E3%80%82%0A-%20%E8%BE%B9%E6%A0%87%E7%AD%BE%E5%BB%BA%E8%AE%AE%E6%8C%89%E2%80%9C%E7%B1%BB%E5%9E%8BA2%E7%B1%BB%E5%9E%8BB%E2%80%9D%E5%91%BD%E5%90%8D%EF%BC%8C%E4%BE%BF%E4%BA%8E%E7%AE%A1%E7%90%86%E5%92%8C%E5%90%8E%E7%BB%AD%E6%89%A9%E5%B1%95%E3%80%82%0A-%20%E6%95%B0%E6%8D%AE%E9%87%8F%E5%A4%A7%E6%97%B6%E5%BB%BA%E8%AE%AE%E5%88%86%E6%89%B9%E5%AF%BC%E5%85%A5%EF%BC%8C%E6%88%96%E7%94%A8%20Loader%20%E7%9A%84%E6%96%AD%E7%82%B9%E7%BB%AD%E4%BC%A0%E5%8A%9F%E8%83%BD%E3%80%82%0A-%20schema%20%E5%8F%98%E6%9B%B4%E9%9C%80%E6%B3%A8%E6%84%8F%E8%BE%B9%E6%A0%87%E7%AD%BE%E7%9A%84%E5%8D%95%
E4%B8%80%E6%BA%90/%E7%9B%AE%E6%A0%87%E7%B1%BB%E5%9E%8B%E9%99%90%E5%88%B6%EF%BC%8C%E6%96%B0%E5%A2%9E%E7%B1%BB%E5%9E%8B%E6%97%B6%E9%9C%80%E6%96%B0%E5%A2%9E%E8%BE%B9%E6%A0%87%E7%AD%BE%E3%80%82%0A%0A%E5%A6%82%E9%9C%80%E6%9B%B4%E8%AF%A6%E7%BB%86%E7%9A%84%E9%85%8D%E7%BD%AE%E6%A8%A1%E6%9D%BF%E6%88%96%E8%87%AA%E5%8A%A8%E5%8C%96%E8%84%9A%E6%9C%AC%EF%BC%8C%E5%8F%AF%E4%BB%A5%E7%BB%A7%E7%BB%AD%E8%A1%A5%E5%85%85%E4%BD%A0%E7%9A%84%E5%85%B7%E4%BD%93%E9%9C%80%E6%B1%82%E3%80%82) [](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/discussions/2917)
GitHub link:
https://github.com/apache/incubator-hugegraph/discussions/2917#discussioncomment-15192892
----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]