In Apache AGE, we can load edges data from CSV file. A CSV file for edges should be formatted as follows:
start_id:
It is node id of the node from where the edge is stated. This id should be valid i.e., node with such id should exist.
start_vertex_type:
It should contain class/ label
name of the node. This label
should be valid.
end_id:
The end id of the node at which the edge shall be terminated. This id should also be valid i.e., node with such id should exist.
end_vertex_type:
It should contain class/ label
name of the node. This label
should be valid.
properties:
The properties of the edge. The header (1st Row) shall contain the property name. 2nd Row and onward rows contains data (values).
Create Edge Label:
SELECT create_elabel('GraphName','EdgeLabelName');
Load Edge Data from csv File:
SELECT load_edges_from_file('GraphName', 'EdgeLabelName',
'Path/to/file.csv');
For more details visit: https://age.apache.org/overview/
AGE Github Link: https://github.com/apache/age
AGE Viewer Github Link: https://github.com/apache/age-viewer
Top comments (0)