-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathimporter_conf.yaml
123 lines (115 loc) · 2.92 KB
/
importer_conf.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
version: v2
description: nebula chinese idiom knowlege graph
removeTempFiles: false
clientSettings:
retry: 3
concurrency: 2 # number of graph clients
channelBufferSize: 1
space: chinese_idiom
connection:
user: root
password: nebula
address: graphd1:9669,graphd2:9669
postStart:
commands: |
DROP SPACE IF EXISTS chinese_idiom;
CREATE SPACE IF NOT EXISTS chinese_idiom(partition_num=5, replica_factor=1, vid_type=FIXED_STRING(24));
USE chinese_idiom;
CREATE TAG idiom(pinyin string);
CREATE TAG character();
CREATE TAG character_pinyin(tone int);
CREATE TAG pinyin_part(part_type string);
CREATE EDGE with_character(position int);
CREATE EDGE with_pinyin(position int);
CREATE EDGE with_pinyin_part(part_type string);
CREATE TAG INDEX character_pinyin_index on character_pinyin(tone);
CREATE TAG INDEX pinyin_part_index on pinyin_part(part_type(8));
CREATE TAG INDEX character_index on character();
CREATE TAG INDEX idiom_index on idiom();
CREATE EDGE INDEX with_character_index on with_character(position);
CREATE EDGE INDEX with_pinyin_index on with_pinyin(position);
CREATE EDGE INDEX with_pinyin_part_index on with_pinyin_part(part_type(8));
afterPeriod: 8s
logPath: ./err/test.log
files:
- path: ./idiom.csv
failDataPath: ./err/idiom.csv
batchSize: 32
type: csv
csv:
withHeader: true
withLabel: false
schema:
type: vertex
vertex:
tags:
- name: idiom
- path: ./character.csv
failDataPath: ./err/character.csv
batchSize: 32
type: csv
csv:
withHeader: true
withLabel: false
schema:
type: vertex
vertex:
tags:
- name: character
- path: ./character_pinyin.csv
failDataPath: ./err/character_pinyin.csv
batchSize: 32
type: csv
csv:
withHeader: true
withLabel: false
schema:
type: vertex
vertex:
tags:
- name: character_pinyin
- path: ./pinyin_part.csv
failDataPath: ./err/pinyin_part.csv
batchSize: 32
type: csv
csv:
withHeader: true
withLabel: false
schema:
type: vertex
vertex:
tags:
- name: pinyin_part
- path: ./with_pinyin.csv
failDataPath: ./err/with_pinyin.csv
batchSize: 32
type: csv
csv:
withHeader: true
withLabel: false
schema:
type: edge
edge:
name: with_pinyin
- path: ./with_character.csv
failDataPath: ./err/with_character.csv
batchSize: 32
type: csv
csv:
withHeader: true
withLabel: false
schema:
type: edge
edge:
name: with_character
- path: ./with_pinyin_part.csv
failDataPath: ./err/with_pinyin_part.csv
batchSize: 32
type: csv
csv:
withHeader: true
withLabel: false
schema:
type: edge
edge:
name: with_pinyin_part