Skip to content

Commit 82da50b

Browse files
authored
aligning relationship instead of edge
1 parent 817b95d commit 82da50b

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

README.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ A Redis server with the [RedisGraph](https://github.com/RedisLabsModules/RedisGr
1111
https://oss.redislabs.com/redisgraph/
1212

1313
## Usage
14-
bulk_insert.py [OPTIONS] GRAPHNAME
14+
bulk_insert.py GRAPHNAME [OPTIONS]
1515

1616
| Flags | Extended flags | Parameter |
1717
|---------|-----------------------|----------------------------------------------|
@@ -20,15 +20,15 @@ bulk_insert.py [OPTIONS] GRAPHNAME
2020
| -P | --password TEXT | Redis server password |
2121
| -s | --ssl TEXT | Server is SSL-enabled |
2222
| -n | --nodes TEXT | path to node csv file [required] |
23-
| -r | --relations TEXT | path to relation csv file |
23+
| -r | --relationships TEXT | path to relationship csv file |
2424

2525
The only required arguments are the name to give the newly-created graph (which can appear anywhere) and at least one node CSV file.
26-
The nodes and relations flags should be specified once per input file.
26+
The nodes and relationship flags should be specified once per input file.
2727

2828
```
29-
python bulk_insert.py GRAPH_DEMO -n demo/person.csv -n demo/country.csv -r demo/knows.csv -r demo/visited.csv
29+
python bulk_insert.py GRAPH_DEMO -n demo/Person.csv -n demo/Country.csv -r demo/KNOWS.csv -r demo/VISITED.csv
3030
```
31-
The label (for nodes) or relation type (for relations) is derived from the base name of the input CSV file. In this query, we'll construct two node labels, `person` and `country`, and two relation types - `knows` and `visited`.
31+
The label (for nodes) or relationship type (for relationships) is derived from the base name of the input CSV file. In this query, we'll construct two sets of nodes, labeled `Person` and `Country`, and two types of relationships - `KNOWS` and `VISITED`.
3232

3333
## Input constraints
3434
### Node files
@@ -38,22 +38,22 @@ The label (for nodes) or relation type (for relations) is derived from the base
3838
- Value types do not need to be provided. Properties are not required to be exclusively composed of numeric or string types.
3939
- There is no uniqueness constraint on nodes.
4040

41-
### Relation files
42-
- Relation inputs have no headers.
41+
### Relationship files
42+
- Relationship inputs have no headers.
4343
- Each row should specify a source and destination node ID.
44-
- Described relations are always considered to be directed (source->destination).
45-
- The bulk insert script does not yet support adding properties to relations (though this can be done after the fact with RedisGraph queries).
46-
- _NOTE_ Relation processing does not yet include node lookups. The entries in a relation file should all be integers corresponding to node IDs.
44+
- Described relationships are always considered to be directed (source->destination).
45+
- The bulk insert script does not yet support adding properties to relationships (though this can be done after the fact with RedisGraph queries).
46+
- _NOTE_ Relationship processing does not yet include node lookups. The entries in a relationship file should all be integers corresponding to node IDs.
4747

4848

4949
### Determining Node IDs
50-
Node IDs are assigned in order of insertion. Node files are processed in the order specified by the user on the command line (though all label files are processed before relation files).
50+
Node IDs are assigned in order of insertion. Node files are processed in the order specified by the user on the command line (though all Node files are processed before Relationship files).
5151

52-
The first node in the first label file will have an ID of 0, and subsequent nodes across all files are ordered consecutively.
52+
The first node in the first node file will have an ID of 0, and subsequent nodes across all files are ordered consecutively.
5353

54-
If a relation file has the line:
54+
If a relationship file has the line:
5555
```
5656
0,11
5757
```
58-
This indicates that there is an edge from the first node in the first label file to the 12th node to be inserted, regardless of which file it may appear in.
58+
This indicates that there is a relationship from the first node in the first node file to the 12th node to be inserted, regardless of which file it may appear in.
5959

0 commit comments

Comments
 (0)