Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
amber-moe committed Aug 5, 2020
1 parent 3c7a855 commit 7e8a1a8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions docs/manual-CN/1.overview/1.concepts/1.data-model.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,35 +18,35 @@ G = < V, E, P<sub>V</sub>, P<sub>E</sub> >,
上图为 NBA 球员及球队信息数据,图中包含 2 种类型的 11 个节点,即 player 和 team,2 种类型的边,即 serve 和 like。
以下为示例图数据涉及到的概念介绍。

## 节点 (Vertex)
## 节点(Vertex)

节点用于表示现实世界中的实体。在 **Nebula Graph** 中,节点必须拥有唯一的标识符(即 `VID`)。在每个图空间中的 `VID` 必须是唯一的。

本例的数据中共包含 11 个节点。

<img src="https://user-images.githubusercontent.com/42762957/64932628-00eecf00-d873-11e9-844b-6b2a535ca734.png" width="15%" height="20%">

## 标签 (Tag)
## 标签(Tag)

**Nebula Graph** 使用**标签**对节点进行分类,本例包含的节点标签为 **player****team**

<img src="https://user-images.githubusercontent.com/42762957/64932330-bff5bb00-d870-11e9-9940-4ff76ceca353.png" width="50%" height="25%">

## (Edge)
## 边(Edge)

边用来连接节点,边通常表示两个节点间的某种关系或行为,本例中的边为 _**serve**__**like**_

<img src="https://user-images.githubusercontent.com/42762957/64932285-68efe600-d870-11e9-8dc7-051f7b43c4aa.png" width="50%" height="25%">

## 边类型 (Edge Type)
## 边类型(Edge Type)

每条边都有一种边类型,以边 _**serve**_ 为例,节点 `101`(表示一名球员)为起始点,节点 `215`(表示一支球队)为目标点。节点 `101` 有一条出边,而节点 `215` 有一条入边。

## 边 rank

边 rank 是用户分配的不可变的 64 位带符号整数,决定两个顶点之间相同类型的边顺序。等级值较高的边排名靠前。如未指定,则默认等级值为零。目前的排序依据为“二进制编码顺序“:即 0, 1, 2, ... 9223372036854775807, -9223372036854775808, -9223372036854775807, ..., -1。

## 属性 (Property)
## 属性(Property)

属性为点和边内部的键值对。本例中,节点 **player** 拥有属性 `id``name``age`,边 **like** 则拥有属性 `likeness`

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ FETCH PROP ON * <vertex_id_list>

`*` 返回指定 ID 点的所有属性。

`<tag_name>::=[tag_name [, tag_name]]` 为标签名称,与 return_list 中的标签相同。
`<tag_name_list>::=[tag_name [, tag_name]]` 为标签名称,与 return_list 中的标签相同。

`<vertex_id_list>::=[vertex_id [, vertex_id]]` 是一组用 "," 分隔开的顶点 ID 列表。

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,12 @@ $ sudo make install
$ cd /usr/local/nebula
$ cp etc/nebula-storaged.conf.production etc/nebula-storaged.conf
$ cp etc/nebula-metad.conf.production etc/nebula-metad.conf
$ cp etc/nebula-metad.conf.production etc/nebula-metad.conf
$ sudo cp etc/nebula-graphd.conf.production etc/nebula-graphd.conf
# 用于试用
$ cd /usr/local/nebula
$ sudo cp etc/nebula-storaged.conf.default etc/nebula-storaged.conf
$ sudo cp etc/nebula-metad.conf.default etc/nebula-metad.conf
$ sudo cp etc/nebula-metad.conf.default etc/nebula-metad.conf
$ sudo cp etc/nebula-graphd.conf.default etc/nebula-graphd.conf
```

详情参考[启动和停止 Nebula Graph 服务文档](../2.install/2.start-stop-service.md)
Expand Down

0 comments on commit 7e8a1a8

Please sign in to comment.