| { |
| "vertices": [ |
| { |
| "label": "person", |
| "input": { |
| "type": "file", |
| "path": "example/file/vertex_person.csv", |
| "format": "CSV", |
| "header": ["name", "age", "city"], |
| "charset": "UTF-8", |
| "skipped_line": { |
| "regex": "(^#|^//).*" |
| } |
| }, |
| "null_values": ["NULL", "null", ""] |
| }, |
| { |
| "label": "software", |
| "input": { |
| "type": "file", |
| "path": "example/file/vertex_software.txt", |
| "format": "TEXT", |
| "delimiter": "|", |
| "charset": "GBK" |
| }, |
| "id": "id", |
| "ignored": ["ISBN"] |
| } |
| ], |
| "edges": [ |
| { |
| "label": "knows", |
| "source": ["source_name"], |
| "target": ["target_name"], |
| "input": { |
| "type": "file", |
| "path": "example/file/edge_knows.json", |
| "format": "JSON", |
| "date_format": "yyyyMMdd" |
| }, |
| "field_mapping": { |
| "source_name": "name", |
| "target_name": "name" |
| } |
| }, |
| { |
| "label": "created", |
| "source": ["source_name"], |
| "target": ["target_id"], |
| "input": { |
| "type": "file", |
| "path": "example/file/edge_created.json", |
| "format": "JSON", |
| "date_format": "yyyy-MM-dd" |
| }, |
| "field_mapping": { |
| "source_name": "name" |
| } |
| } |
| ] |
| } |