-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Conversation
There was a problem hiding this 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> | |||
``` | |||
|
There was a problem hiding this comment.
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.
docs/get-started.md
Outdated
``` | ||
|
||
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Create a Graph Space
docs/get-started.md
Outdated
``` | ||
|
||
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and use
it before
docs/get-started.md
Outdated
|
||
(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> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
called -> named
docs/get-started.md
Outdated
(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); |
There was a problem hiding this comment.
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
docs/get-started.md
Outdated
Currently the default schema is `nba`. | ||
To list the tags and edge types we just created: | ||
```shell | ||
// show tag list |
There was a problem hiding this comment.
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)
docs/get-started.md
Outdated
#### Insert Data | ||
Insert the vertexes and edges based on the graph above. | ||
```shell | ||
//insert vertexes |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
alias ( or rename)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
docs/get-started.md
Outdated
@@ -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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
on GitHub
docs/get-started.md
Outdated
| -6952676908621237908 | | ||
------------------------ | ||
........................ | ||
There are three kinds of tags(course, building and team) and two edge types (select and like). The graph schema is: |
There was a problem hiding this comment.
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.
docs/get-started.md
Outdated
``` | ||
|
||
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. |
There was a problem hiding this comment.
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.
docs/get-started.md
Outdated
|
||
#### Define Graph Schema | ||
The **CREATE TAG** statement defines a tag, with a type name and an attribute list. |
There was a problem hiding this comment.
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.
There was a problem hiding this 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. |
There was a problem hiding this comment.
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)
Jenkins, go! |
Unit testing passed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great
* get-started.md add build user owner graph * update * update * update * update * update * update * update
* Add test for rc. * Fix cxx. Confirm with sophie.xie Co-authored-by: cpw <13495049+CPWstatic@users.noreply.github.com>
add "build your owner graph" section in get-started.md