You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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`.
32
32
33
33
## Input constraints
34
34
### Node files
@@ -38,22 +38,22 @@ The label (for nodes) or relation type (for relations) is derived from the base
38
38
- Value types do not need to be provided. Properties are not required to be exclusively composed of numeric or string types.
39
39
- There is no uniqueness constraint on nodes.
40
40
41
-
### Relation files
42
-
-Relation inputs have no headers.
41
+
### Relationship files
42
+
-Relationship inputs have no headers.
43
43
- 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.
47
47
48
48
49
49
### 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).
51
51
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.
53
53
54
-
If a relation file has the line:
54
+
If a relationship file has the line:
55
55
```
56
56
0,11
57
57
```
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.
0 commit comments