You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hugegraph.apache.org by ji...@apache.org on 2023/05/14 12:29:47 UTC
[incubator-hugegraph-doc] branch master updated: Update hugegraph-gremlin.md (#224)
This is an automated email from the ASF dual-hosted git repository.
jin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-hugegraph-doc.git
The following commit(s) were added to refs/heads/master by this push:
new 20695829 Update hugegraph-gremlin.md (#224)
20695829 is described below
commit 20695829458ce1dc4f68bf372e75eb2e28296b7b
Author: John Whelan <Wh...@users.noreply.github.com>
AuthorDate: Sun May 14 07:29:41 2023 -0500
Update hugegraph-gremlin.md (#224)
---
content/en/docs/language/hugegraph-gremlin.md | 84 +++++++++++++--------------
1 file changed, 42 insertions(+), 42 deletions(-)
diff --git a/content/en/docs/language/hugegraph-gremlin.md b/content/en/docs/language/hugegraph-gremlin.md
index 9eda438f..5349f11b 100644
--- a/content/en/docs/language/hugegraph-gremlin.md
+++ b/content/en/docs/language/hugegraph-gremlin.md
@@ -4,17 +4,17 @@ linkTitle: "Gremlin Query Language"
weight: 1
---
-### 概述
+### Overview
-HugeGraph支持[Apache TinkerPop3](https://tinkerpop.apache.org)的图形遍历查询语言[Gremlin](https://tinkerpop.apache.org/gremlin.html)。 SQL是关系型数据库查询语言,而Gremlin是一种通用的图数据库查询语言,Gremlin可用于创建图的实体(Vertex和Edge)、修改实体内部属性、删除实体,也可执行图的查询操作。
+HugeGraph supports [Gremlin](https://tinkerpop.apache.org/gremlin.html), a graph traversal query language of [Apache TinkerPop3](https://tinkerpop.apache.org). While SQL is a query language for relational databases, Gremlin is a general-purpose query language for graph databases. Gremlin can be used to create entities (Vertex and Edge) of a graph, modify the properties of entities, delete entities, as well as perform graph queries.
-Gremlin可用于创建图的实体(Vertex和Edge)、修改实体内部属性、删除实体,更主要的是可用于执行图的查询及分析操作。
+Gremlin can be used to create entities (Vertex and Edge) of a graph, modify the properties of entities, and delete entities. More importantly, it can be used to perform graph querying and analysis operations.
### TinkerPop Features
-HugeGraph实现了TinkerPop框架,但是并没有实现TinkerPop所有的特性。
+HugeGraph implements the TinkerPop framework, but not all TinkerPop features are implemented.
-下表列出HugeGraph对TinkerPop各种特性的支持情况:
+The table below lists the support status of various TinkerPop features in HugeGraph:
### Graph Features
@@ -82,43 +82,43 @@ HugeGraph实现了TinkerPop框架,但是并没有实现TinkerPop所有的特
| StringValues | | true |
| UniformListValues | Supports setting of a {@code List} value. The assumption is that the {@code List} can contain arbitrary serializable values that may or may not be defined as a feature itself. As this{@code List} is "uniform" it must contain objects of the same type. | false |
-### Gremlin的步骤
+### Gremlin Steps
-HugeGraph支持Gremlin的所有步骤。有关Gremlin的完整参考信息,请参与[Gremlin官网](http://tinkerpop.apache.org/docs/current/reference/)。
+HugeGraph supports all steps of Gremlin. For complete reference information about Gremlin, please refer to the [Gremlin official website](http://tinkerpop.apache.org/docs/current/reference/).
-| 步骤 | 说明 | 文档 |
+| Step | Description | Documentation |
|------------|-------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------|
-| addE | 在两个顶点之间添加边 | [addE step](http://tinkerpop.apache.org/docs/current/reference/#addedge-step) |
-| addV | 将顶点添加到图形 | [addV step](http://tinkerpop.apache.org/docs/current/reference/#addvertex-step) |
-| and | 确保所有遍历都返回值 | [and step](http://tinkerpop.apache.org/docs/current/reference/#add-step) |
-| as | 用于向步骤的输出分配变量的步骤调制器 | [as step](http://tinkerpop.apache.org/docs/current/reference/#as-step) |
-| by | 与`group`和`order`配合使用的步骤调制器 | [by step](http://tinkerpop.apache.org/docs/current/reference/#by-step) |
-| coalesce | 返回第一个返回结果的遍历 | [coalesce step](http://tinkerpop.apache.org/docs/current/reference/#coalesce-step) |
-| constant | 返回常量值。 与`coalesce`配合使用 | [constant step](http://tinkerpop.apache.org/docs/current/reference/#constant-step) |
-| count | 从遍历返回计数 | [count step](http://tinkerpop.apache.org/docs/current/reference/#addedge-step) |
-| dedup | 返回已删除重复内容的值 | [dedup step](http://tinkerpop.apache.org/docs/current/reference/#dedup-step) |
-| drop | 丢弃值(顶点/边缘) | [drop step](http://tinkerpop.apache.org/docs/current/reference/#drop-step) |
-| fold | 充当用于计算结果聚合值的屏障 | [fold step](http://tinkerpop.apache.org/docs/current/reference/#fold-step) |
-| group | 根据指定的标签将值分组 | [group step](http://tinkerpop.apache.org/docs/current/reference/#group-step) |
-| has | 用于筛选属性、顶点和边缘。 支持`hasLabel`、`hasId`、`hasNot` 和 `has` 变体 | [has step](http://tinkerpop.apache.org/docs/current/reference/#has-step) |
-| inject | 将值注入流中 | [inject step](http://tinkerpop.apache.org/docs/current/reference/#inject-step) |
-| is | 用于通过布尔表达式执行筛选器 | [is step](http://tinkerpop.apache.org/docs/current/reference/#is-step) |
-| limit | 用于限制遍历中的项数 | [limit step](http://tinkerpop.apache.org/docs/current/reference/#limit-step) |
-| local | 本地包装遍历的某个部分,类似于子查询 | [local step](http://tinkerpop.apache.org/docs/current/reference/#local-step) |
-| not | 用于生成筛选器的求反结果 | [not step](http://tinkerpop.apache.org/docs/current/reference/#not-step) |
-| optional | 如果生成了某个结果,则返回指定遍历的结果,否则返回调用元素 | [optional step](http://tinkerpop.apache.org/docs/current/reference/#optional-step) |
-| or | 确保至少有一个遍历会返回值 | [or step](http://tinkerpop.apache.org/docs/current/reference/#or-step) |
-| order | 按指定的排序顺序返回结果 | [order step](http://tinkerpop.apache.org/docs/current/reference/#order-step) |
-| path | 返回遍历的完整路径 | [path step](http://tinkerpop.apache.org/docs/current/reference/#addedge-step) |
-| project | 将属性投影为映射 | [project step](http://tinkerpop.apache.org/docs/current/reference/#project-step) |
-| properties | 返回指定标签的属性 | [properties step](http://tinkerpop.apache.org/docs/current/reference/#properties-step) |
-| range | 根据指定的值范围进行筛选 | [range step](http://tinkerpop.apache.org/docs/current/reference/#range-step) |
-| repeat | 将步骤重复指定的次数。 用于循环 | [repeat step](http://tinkerpop.apache.org/docs/current/reference/#repeat-step) |
-| sample | 用于对遍历返回的结果采样 | [sample step](http://tinkerpop.apache.org/docs/current/reference/#sample-step) |
-| select | 用于投影遍历返回的结果 | [select step](http://tinkerpop.apache.org/docs/current/reference/#select-step) |
-| store | 用于遍历返回的非阻塞聚合 | [store step](http://tinkerpop.apache.org/docs/current/reference/#store-step) |
-| tree | 将顶点中的路径聚合到树中 | [tree step](http://tinkerpop.apache.org/docs/current/reference/#tree-step) |
-| unfold | 将迭代器作为步骤展开 | [unfold step](http://tinkerpop.apache.org/docs/current/reference/#unfold-step) |
-| union | 合并多个遍历返回的结果 | [union step](http://tinkerpop.apache.org/docs/current/reference/#union-step) |
-| V | 包括顶点与边之间的遍历所需的步骤:`V`、`E`、`out`、`in`、`both`、`outE`、`inE`、`bothE`、`outV`、`inV`、`bothV` 和 `otherV` | [order step](http://tinkerpop.apache.org/docs/current/reference/#vertex-steps) |
-| where | 用于筛选遍历返回的结果。 支持 `eq`、`neq`、`lt`、`lte`、`gt`、`gte` 和 `between` 运算符 | [where step](http://tinkerpop.apache.org/docs/current/reference/#where-step) |
+| addE | Add an edge between two vertices. | [addE step](http://tinkerpop.apache.org/docs/current/reference/#addedge-step) |
+| addV | add vertices to graph. | [addV step](http://tinkerpop.apache.org/docs/current/reference/#addvertex-step) |
+| and | Make sure all traversals return values. | [and step](http://tinkerpop.apache.org/docs/current/reference/#add-step) |
+| as | Step modulator for assigning variables to the step's output. | [as step](http://tinkerpop.apache.org/docs/current/reference/#as-step) |
+| by | Step Modulators used in conjunction with group and order. | [by step](http://tinkerpop.apache.org/docs/current/reference/#by-step) |
+| coalesce | Returns the first traversal that returns a result. | [coalesce step](http://tinkerpop.apache.org/docs/current/reference/#coalesce-step) |
+| constant | Returns a constant value. Used in conjunction with coalesce. | [constant step](http://tinkerpop.apache.org/docs/current/reference/#constant-step) |
+| count | Returns a count from the traversal. | [count step](http://tinkerpop.apache.org/docs/current/reference/#addedge-step) |
+| dedup | Returns values with duplicates removed. | [dedup step](http://tinkerpop.apache.org/docs/current/reference/#dedup-step) |
+| drop | Discards a value (vertex/edge). | [drop step](http://tinkerpop.apache.org/docs/current/reference/#drop-step) |
+| fold | Acts as a barrier for computing aggregated values from results. | [fold step](http://tinkerpop.apache.org/docs/current/reference/#fold-step) |
+| group | Groups values based on specified labels. | [group step](http://tinkerpop.apache.org/docs/current/reference/#group-step) |
+| has | Used to filter properties, vertices, and edges. Supports `hasLabel`, `hasId`, `hasNot`, and `has` variants. | [has step](http://tinkerpop.apache.org/docs/current/reference/#has-step) |
+| inject | Injects values into the stream. | [inject step](http://tinkerpop.apache.org/docs/current/reference/#inject-step) |
+| is | Used to filter by a Boolean expression. | [is step](http://tinkerpop.apache.org/docs/current/reference/#is-step) |
+| limit | Used to limit the number of items in a traversal. | [limit step](http://tinkerpop.apache.org/docs/current/reference/#limit-step) |
+| local | Locally wraps a part of a traversal, similar to a subquery. | [local step](http://tinkerpop.apache.org/docs/current/reference/#local-step) |
+| not | Used to generate the negation result of a filter. | [not step](http://tinkerpop.apache.org/docs/current/reference/#not-step) |
+| optional | Returns the result of a specified traversal if it generates any results, otherwise returns the calling element. | [optional step](http://tinkerpop.apache.org/docs/current/reference/#optional-step) |
+| or | Ensures that at least one traversal returns a value. | [or step](http://tinkerpop.apache.org/docs/current/reference/#or-step) |
+| order | Returns results in the specified order. | [order step](http://tinkerpop.apache.org/docs/current/reference/#order-step) |
+| path | Returns the full path of the traversal. | [path step](http://tinkerpop.apache.org/docs/current/reference/#addedge-step) |
+| project | Projects properties as a map. | [project step](http://tinkerpop.apache.org/docs/current/reference/#project-step) |
+| properties | Returns properties with specified labels. | [properties step](http://tinkerpop.apache.org/docs/current/reference/#properties-step) |
+| range | Filters based on a specified range of values. | [range step](http://tinkerpop.apache.org/docs/current/reference/#range-step) |
+| repeat | Repeats a step a specified number of times. Used for looping. | [repeat step](http://tinkerpop.apache.org/docs/current/reference/#repeat-step) |
+| sample | Used to sample results returned by the traversal. | [sample step](http://tinkerpop.apache.org/docs/current/reference/#sample-step) |
+| select | Used to project the results returned by the traversal. | [select step](http://tinkerpop.apache.org/docs/current/reference/#select-step) |
+| store | This step is used fo.r non-blocking aggregation of results returned by traversal | [store step](http://tinkerpop.apache.org/docs/current/reference/#store-step) |
+| tree | Aggregate the paths in vertices into a tree. | [tree step](http://tinkerpop.apac.he.org/docs/current/reference/#tree-step) |
+| unfold | Unfolds an iterator as a step. | [unfold step](http://tinkerpop.apache.org/docs/c.urrent/reference/#unfold-step) |
+| union | Merge the results returned by multiple traversals. | [union step](http://tinkerpop.apache.org/docs/current/reference/#union-step) |
+| V | These are the steps required for traversing between vertices and edges: `V`, `E`, `out`, `in`, `both`, `outE`, `inE`, `bothE`, `outV`, `inV`, `bothV`, and `otherV`. | [order step](http://tinkerpop.apache.org/docs/current/reference/#vertex-steps) |
+| where | Used to filter the results returned by a traversal. Supports `eq`, `neq`, `lt`, `lte`, `gt`, `gte`, and `between` operators. | [where step](http://tinkerpop.apache.org/docs/current/reference/#where-step) |