Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get-started.md add build user's owner graph #590

Merged
merged 8 commits into from
Jul 8, 2019
Merged

Conversation

jude-zhu
Copy link
Contributor

@jude-zhu jude-zhu commented Jul 5, 2019

add "build your owner graph" section in get-started.md

whitewum
whitewum previously approved these changes Jul 5, 2019
Copy link
Contributor

@whitewum whitewum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

only a few problems

@@ -107,160 +107,143 @@ Welcome to Nebula Graph (Version 0.1)
nebula>
```

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add one line: If you have any trouble in starting nebula service in docker, feel free to raise an issue to us.

```

This query comes from a vertex walk up an edge and the target's age should be greater than or equal to 30, also renames the columns as `Player`, `Friend` and `Age`.
#### Create Space
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Create a Graph Space

```

This query comes from a vertex walk up an edge and the target's age should be greater than or equal to 30, also renames the columns as `Player`, `Friend` and `Age`.
#### Create Space
<em>Space</em> is a region that provides physically isolation of graphs in Nebula. First we need to create a space and select it before other operations.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and use it before


(reference to `regular expressions`, using the special ^ (hat) and $ (dollar sign) metacharacters to describe the start and the end of the line.)
To create a new space called <em>myspace_test2</em>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

called -> named

(reference to `regular expressions`, using the special ^ (hat) and $ (dollar sign) metacharacters to describe the start and the end of the line.)
To create a new space called <em>myspace_test2</em>
```shell
nebula> CREATE space myspace_test2(partition_num=1, replica_factor=1);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CREATE SPACE. by default I prefer to use UPPER case
please check partition_num ,replica_factor UPPER or LOWER case

Currently the default schema is `nba`.
To list the tags and edge types we just created:
```shell
// show tag list
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I prefer -- as comment ( like sql)

#### Insert Data
Insert the vertexes and edges based on the graph above.
```shell
//insert vertexes
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

CREATE TAG player(name string, age int)

CREATE TAG team(name string)
Q2. Find the vertexes that 201 likes, whose age are greater than 17. Return their name, age and gender, and alias the columns as Friend, Age and Gender, respectively.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

alias ( or rename)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -107,160 +107,162 @@ Welcome to Nebula Graph (Version 0.1)
nebula>
```

Before query the dataset, you should switch to an existing graph space.
If you have any questions or concerns about the deployment procedures, please do not hesitate to open an issue on git.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

on GitHub

| -6952676908621237908 |
------------------------
........................
There are three kinds of tags(course, building and team) and two edge types (select and like). The graph schema is:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please try to distinguish words with special meanings from the regular text with proper stylings, such as bold, italic, monospace, "quotation", etc.

```

This query comes from a vertex walk up an edge and the target's age should be greater than or equal to 30, also renames the columns as `Player`, `Friend` and `Age`.
#### Create a Graph Space
<em>Space</em> is a region that provides physically isolation of graphs in Nebula. First we need to create a space and use it before other operations.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Try not to use HTML tags in Markdown files, since they are not supported officially and consistently.


#### Define Graph Schema
The **CREATE TAG** statement defines a tag, with a type name and an attribute list.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Leave a blank line between a section header and text body.

whitewum
whitewum previously approved these changes Jul 6, 2019
@jude-zhu jude-zhu requested review from dutor and whitewum July 8, 2019 03:29
whitewum
whitewum previously approved these changes Jul 8, 2019
Copy link
Contributor

@whitewum whitewum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great!

```shell
nebula> CREATE SPACE myspace_test2(partition_num=1, replica_factor=1);

-- Use this space
nebula> USE myspace_test2;
```
<em>replica_factor</em> specifies the number of replicas in the cluster.
`replica_factor` specifies the number of replicas in the cluster.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the number of replicas (copies)

darionyaphet
darionyaphet previously approved these changes Jul 8, 2019
@dutor dutor added the ready-for-testing PR: ready for the CI test label Jul 8, 2019
@dutor
Copy link
Contributor

dutor commented Jul 8, 2019

Jenkins, go!

@jude-zhu jude-zhu dismissed stale reviews from darionyaphet and whitewum via becc9e6 July 8, 2019 04:50
@nebula-community-bot
Copy link
Member

Unit testing passed.

Copy link
Contributor

@whitewum whitewum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great

@dutor dutor merged commit 4313369 into vesoft-inc:master Jul 8, 2019
@jude-zhu jude-zhu deleted the test branch June 10, 2020 06:46
tong-hao pushed a commit to tong-hao/nebula that referenced this pull request Jun 1, 2021
* get-started.md add build user owner graph

* update

* update

* update

* update

* update

* update

* update
yixinglu pushed a commit to yixinglu/nebula that referenced this pull request Mar 21, 2022
* Add test for rc.

* Fix cxx.

Confirm with sophie.xie

Co-authored-by: cpw <13495049+CPWstatic@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-testing PR: ready for the CI test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants