coolboywcm opened a new issue, #680:
URL: https://github.com/apache/incubator-hugegraph-toolchain/issues/680

   ### Problem Type (问题类型)
   
   configs (配置项 / 文档相关)
   
   ### Before submit
   
   - [x] I had searched in the 
[issues](https://github.com/apache/hugegraph-toolchain/issues) and found no 
similar issues.
   
   ### Environment (环境信息)
   
   - Server Version: `hugegraph_1.5.0,hugegraph-loader_lastest`
   
   
   
   ### Your Question (问题描述)
   
   如何通过csv文件导入边数据,我用知识图谱数据数据量比较大,边数量有上亿个,边数据edge.csv内容如下:
   ```
   -201035082963479683,-1779678833482502384,属性
   4646408208538057683,-1861609733419239066,描述
   -2047289935702608120,5842706712819643509,描述
   -2047289935702608120,-3063129772935425027,标签
   -2484942249444426630,-3877061284769534378,描述
   ```
   
   实体数据vertex.csv文件内容如下
   ```
   -201035082963479683,实体
   -1779678833482502384,值
   4646408208538057683,胶饴
   -1861609733419239066,别名: 饴糖、畅糖、畅、软糖。
   -2047289935702608120,词条
   5842706712819643509,词条(拼....
   ```
   
要如何导入边数据?hugegraph-loader的文档只给了json模式的边数据导入样例https://hugegraph.apache.org/cn/docs/quickstart/toolchain/hugegraph-loader/
   
   我现在是定义了节点类型:
   ```
   {
                   "name": "实体",
                   "id_strategy": "CUSTOMIZE_STRING",
                   "properties": [
                       {
                           "name": "id",
                           "nullable": true
                       },
                       {
                           "name": "名称",
                           "nullable": true
                       }
                   ],
                   "primary_keys": [],
                   "property_indexes": [
                       {
                           "owner": "实体",
                           "owner_type": "VERTEX_LABEL",
                           "name": "名称索引",
                           "type": "SEARCH",
                           "fields": [
                               "名称"
                           ]
                       },
                       {
                           "owner": "实体",
                           "owner_type": "VERTEX_LABEL",
                           "name": "id索引",
                           "type": "SECONDARY",
                           "fields": [
                               "id"
                           ]
                       }
                   ],
                   "open_label_index": true
               }
   ```
   我自己扫描了edge.csv, 对每行的边类型进行了去重,并创建了边类型
   ```
   {
                   "name": "医保疾病",
                   "source_label": "实体",
                   "target_label": "实体",
                   "link_multi_times": false,
                   "properties": [],
                   "sort_keys": [],
                   "property_indexes": [],
                   "open_label_index": true,
                   "style": {
                       "color": "#5C73E6",
                       "with_arrow": true,
                       "line_type": "SOLID",
                       "thickness": "NORMAL",
                       "display_fields": [
                           "~id"
                       ],
                       "join_symbols": [
                           "-"
                       ]
                   },
                   "create_time": "1970-01-01 08:00:00"
               },
               {
                   "name": "灯光设计助理",
                   "source_label": "实体",
                   "target_label": "实体",
                   "link_multi_times": false,
                   "properties": [],
                   "sort_keys": [],
                   "property_indexes": [],
                   "open_label_index": true,
                   "style": {
                       "color": "#5C73E6",
                       "with_arrow": true,
                       "line_type": "SOLID",
                       "thickness": "NORMAL",
                       "display_fields": [
                           "~id"
                       ],
                       "join_symbols": [
                           "-"
                       ]
                   },
                   "create_time": "1970-01-01 08:00:00"
               },
               {
                   "name": "平面抛光频率",
                   "source_label": "实体",
                   "target_label": "实体",
                   "link_multi_times": false,
                   "properties": [],
                   "sort_keys": [],
                   "property_indexes": [],
                   "open_label_index": true,
                   "style": {
                       "color": "#5C73E6",
                       "with_arrow": true,
                       "line_type": "SOLID",
                       "thickness": "NORMAL",
                       "display_fields": [
                           "~id"
                       ],
                       "join_symbols": [
                           "-"
                       ]
                   },
                   "create_time": "1970-01-01 08:00:00"
               },
   ```
   现在要如何导入边数据?
   
   ### Vertex/Edge example (问题点 / 边数据举例)
   
   ```javascript
   
   ```
   
   ### Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构)
   
   ```javascript
   
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to