liuxiaocs7 commented on code in PR #276: URL: https://github.com/apache/incubator-hugegraph-doc/pull/276#discussion_r1244691513
########## content/cn/docs/clients/restful-api/edge.md: ########## @@ -6,32 +6,74 @@ weight: 8 ### 2.2 Edge -顶点 id 格式的修改也影响到了边的 Id 以及源顶点和目标顶点 id 的格式。 +顶点 id 格式的修改也影响到了边的 Id 以及源顶点和目标顶点 id 的格式 -EdgeId是由 `src-vertex-id + direction + label + sort-values + tgt-vertex-id` 拼接而成, -但是这里的顶点id类型不是通过引号区分的,而是根据前缀区分: +EdgeId 是由 `src-vertex-id + direction + label + sort-values + tgt-vertex-id` 拼接而成,但是这里的顶点 id 类型不是通过引号区分的,而是根据前缀区分: -- 当 id 类型为 number 时,EdgeId 的顶点 id 前有一个前缀`L` ,形如 "L123456>1>>L987654" -- 当 id 类型为 string 时,EdgeId 的顶点 id 前有一个前缀`S` ,形如 "S1:peter>1>>S2:lop" +- 当 id 类型为 number 时,EdgeId 的顶点 id 前有一个前缀 `L` ,形如 "L123456>1>>L987654" +- 当 id 类型为 string 时,EdgeId 的顶点 id 前有一个前缀 `S` ,形如 "S1:peter>1>>S2:lop" -------------------------------------------------------------------------------- -接下来的示例均假设已经创建好了前述的各种schema和vertex信息 +接下来的示例需要先根据以下 `groovy` 脚本创建图 `schema` Review Comment: The [previously used schema](https://github.com/apache/incubator-hugegraph-doc/pull/259) is a reference to the [content of the Loader](https://hugegraph.apache.org/docs/quickstart/hugegraph-loader/) and made some minor changes, because only the operation of the vertex is involved, here there will be edge operations, i think ok here -- 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]
