Skip to content

Commit 32a29be

Browse files
committed
Update README to use redisgraph-bulk-insert entrypoint
1 parent 5e3be7a commit 32a29be

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ pip install git+https://github.com/RedisGraph/redisgraph-bulk-loader.git@master
2727
```
2828

2929
## Usage
30-
Pip installation exposes `redisgraph-bulk-loader` as a command to invoke this tool:
30+
Pip installation exposes `redisgraph-bulk-insert` as a command to invoke this tool:
3131
```
32-
redisgraph-bulk-loader GRAPHNAME [OPTIONS]
32+
redisgraph-bulk-insert GRAPHNAME [OPTIONS]
3333
```
3434

3535
Installation by cloning the repository allows the script to be invoked via Python like so:
@@ -63,7 +63,7 @@ The only required arguments are the name to give the newly-created graph (which
6363
The nodes and relationship flags should be specified once per input file.
6464

6565
```
66-
redisgraph-bulk-loader GRAPH_DEMO -n example/Person.csv -n example/Country.csv -r example/KNOWS.csv -r example/VISITED.csv
66+
redisgraph-bulk-insert GRAPH_DEMO -n example/Person.csv -n example/Country.csv -r example/KNOWS.csv -r example/VISITED.csv
6767
```
6868
The label (for nodes) or relationship type (for relationships) is derived from the base name of the input CSV file. In this example, we'll construct two sets of nodes, labeled `Person` and `Country`, and two types of relationships - `KNOWS` and `VISITED`.
6969

@@ -120,7 +120,7 @@ storeNum | Location | daysOpen |
120120
136 | 55 Elm St | ['Sat', 'Sun']
121121
```
122122
This CSV would be inserted with the command:
123-
`redisgraph-bulk-loader StoreGraph --separator \| --nodes Store.csv`
123+
`redisgraph-bulk-insert StoreGraph --separator \| --nodes Store.csv`
124124

125125
(Since the pipe character has meaning in the terminal, it must be backslash-escaped.)
126126

@@ -168,7 +168,7 @@ FOLLOWS.csv
168168
1, 0, 10
169169
```
170170
Inserting these CSVs with the command:
171-
`redisgraph-bulk-loader SocialGraph --enforce-schema --nodes User.csv --relations FOLLOWS.csv`
171+
`redisgraph-bulk-insert SocialGraph --enforce-schema --nodes User.csv --relations FOLLOWS.csv`
172172

173173
Will produce a graph named SocialGraph with 2 users, Jeffrey and Filipe. Jeffrey follows Filipe, and that relation has a reaction_count of 25. Filipe also follows Jeffrey, with a reaction_count of 10.
174174

0 commit comments

Comments
 (0)