imbajin commented on code in PR #276: URL: https://github.com/apache/incubator-hugegraph-doc/pull/276#discussion_r1241662425
########## 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: > 大体一致,我这里直接使用了 `example.groovy` 这个脚本的部分内容,有些细节和 @liuxiaocs7 使用的 schema 不太一样。 OK, looks fine to me, wait @liuxiaocs7 to review -- 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]
