Skip to content

Commit

Permalink
Merge pull request vesoft-inc#1 from vesoft-inc/master
Browse files Browse the repository at this point in the history
Fetching upstream
  • Loading branch information
randomJoe211 committed Aug 4, 2021
2 parents 34f5073 + ad5bb88 commit d0c0bd7
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 11 deletions.
5 changes: 5 additions & 0 deletions docs-2.0/1.introduction/1.what-is-nebula-graph.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ Nebula Graph开放了越来越多的原生工具,例如[Nebula Graph Studio](h

Nebula Graph查询语言,也称为nGQL,是一种声明性的、兼容openCypher的文本查询语言,易于理解和使用。详细语法请参见[nGQL指南](../3.ngql-guide/1.nGQL-overview/1.overview.md)

### 面向未来硬件,读写平衡

闪存型设备有着极高的性能,并且[价格快速下降](https://blocksandfiles.com/wp-content/uploads/2021/01/Wikibon-SSD-less-than-HDD-in-2026.jpg)
Nebula Graph 是一个面向 SSD 设计的产品,相比于基于HDD + 大内存的产品,更适合面向未来的硬件趋势,也更容易做到读写平衡。

### 灵活数据建模

用户可以轻松地在Nebula Graph中建立数据模型,不必将数据强制转换为关系表。而且可以自由增加、更新和删除属性。详情请参见[数据模型](2.data-model.md)
Expand Down
6 changes: 5 additions & 1 deletion docs-2.0/3.ngql-guide/1.nGQL-overview/3.graph-patterns.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@
(a:User:Admin)-[]->(b)
```

!!! compatibility "openCypher兼容性"

nGQL中的`MATCH`语句尚不支持用`(a:User:Admin)`匹配多个标签。如需匹配多标签可使用过滤条件,如`WHERE "User" IN tags(n) AND "Admin" IN tags(n)`。

## 属性模式

点和边是图的基本结构。nGQL在这两种结构上都可以增加属性,方便实现更丰富的模型。
Expand Down Expand Up @@ -146,4 +150,4 @@
p = (a)-[*3..5]->(b)
```

您可以在MATCH语句中使用路径变量。
您可以在MATCH语句中使用路径变量。
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ nebula> LOOKUP ON player WHERE player.name == "Tony Parker";
| 101 |
------------
//正则表达式匹配
# 正则表达式匹配
nebula> LOOKUP ON player WHERE player.name =~ "^.{15,20}$" \
YIELD player.name, player.age;
+-------------+----------------------+------------+
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ nebula> SHOW HOSTS;
+-------------+-------+----------+--------------+----------------------------------+-----------------------------+
| "storaged2" | 9779 | "ONLINE" | 8 | "basketballplayer:3, docs:5" | "docs:5, basketballplayer:3"|
+-------------+-------+----------+--------------+----------------------------------+-----------------------------+
Got 3 rows (time spent 866/1411 us)
nebula> SHOW HOSTS GRAPH;
+-----------+------+----------+---------+--------------+---------------------------------------------+
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
- 首次导入

```bash
<spark_install_path>/bin/spark-submit --master "local" --class com.vesoft.nebula.exchange.Exchange <nebula-exchange-2.x.y.jar_path> -c <csv_application.conf_path>
<spark_install_path>/bin/spark-submit --master "local" --class com.vesoft.nebula.exchange.Exchange <nebula-exchange-2.x.y.jar_path> -c <application.conf_path>
```

- 导入reload文件

如果首次导入时有一些数据导入失败,会将导入失败的数据存入reload文件,可以用参数`-r`尝试导入reload文件。

```bash
<spark_install_path>/bin/spark-submit --master "local" --class com.vesoft.nebula.exchange.Exchange <nebula-exchange-2.x.y.jar_path> -c <csv_application.conf_path> -r "<reload_file_path>"
<spark_install_path>/bin/spark-submit --master "local" --class com.vesoft.nebula.exchange.Exchange <nebula-exchange-2.x.y.jar_path> -c <application.conf_path> -r "<reload_file_path>"
```

!!! note
Expand Down
4 changes: 2 additions & 2 deletions docs-2.0/nebula-explorer/deploy-connect/ex-ug-connect.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# 连接数据库

对于 RPM 安装的 Explorer ,在成功启动 Explorer 后,用户需要配置连接 Nebula Graph。本文主要描述 RPM 安装的 Explorer 如何连接 Nebula Graph 数据库。
对于 RPM 安装的 Explorer,在成功启动 Explorer 后,用户需要配置连接 Nebula Graph。本文主要描述 RPM 安装的 Explorer 如何连接 Nebula Graph 数据库。

## 前提条件

在连接 Nebula Graph 数据库前,用户需要确认以下信息:

- 已经安装部署了 Explorer 。详细信息参考 [部署 Explorer](ex_ug_connect.md)
- 已经安装部署了 Explorer。详细信息参考 [部署 Explorer](../deploy-connect/ex-ug-connect.md)

- Nebula Graph 的 Graph 服务本机 IP 地址以及服务所用端口。默认端口为 `9669`

Expand Down
6 changes: 3 additions & 3 deletions docs-2.0/nebula-explorer/deploy-connect/ex-ug-deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

在部署 Explorer 之前,用户需要确认以下信息:

- Nebula Graph 服务已经部署并启动。详细信息参考[Nebula Graph安装部署](../4.deployment-and-installation/1.resource-preparations.md "点击前往 Nebula Graph 安装部署")
- Nebula Graph 服务已经部署并启动。详细信息参考[Nebula Graph安装部署](../../4.deployment-and-installation/1.resource-preparations.md "点击前往 Nebula Graph 安装部署")

- 以下端口未被使用。

Expand Down Expand Up @@ -64,7 +64,7 @@ $ sudo rpm -e nebula-graph-explorer-<version>.x86_64

在部署 Explorer 之前,用户需要确认以下信息:

- Nebula Graph 服务已经部署并启动。详细信息参考[Nebula Graph安装部署](../4.deployment-and-installation/1.resource-preparations.md "点击前往 Nebula Graph 安装部署")
- Nebula Graph 服务已经部署并启动。详细信息参考[Nebula Graph安装部署](../../4.deployment-and-installation/1.resource-preparations.md "点击前往 Nebula Graph 安装部署")

- 使用的 Linux 上安装有版本为 v10.12.0 以上的Node.js。

Expand Down Expand Up @@ -127,4 +127,4 @@ $ npm run stop # 停止 nebula-graph-explorer

![Nebula Graph Explorer 登录页面](../figs/ex-ug-001.png)

进入 Explorer 登录界面后,用户需要连接 Nebula Graph。详细信息,参考[连接数据库](ex-ug-connect.md)
进入 Explorer 登录界面后,用户需要连接 Nebula Graph。详细信息,参考[连接数据库](../deploy-connect/ex-ug-connect.md)
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ mike
mdx_truly_sane_lists
mkdocs_latest_release_plugin
mkdocs-git-revision-date-localized-plugin
weasyprint
weasyprint==52.5
mkdocs-with-pdf
qrcode

0 comments on commit d0c0bd7

Please sign in to comment.