This is an automated email from the ASF dual-hosted git repository.
dehowef pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/age-website.git
The following commit(s) were added to refs/heads/master by this push:
new 5324ea28 Fixed some information on agload.md (#164)
5324ea28 is described below
commit 5324ea2889a0197192edf8f2457a068cf0a5afca
Author: Marco Aurélio Silva de Souza Júnior
<[email protected]>
AuthorDate: Mon Oct 2 20:02:07 2023 -0300
Fixed some information on agload.md (#164)
* Fixed the path needed to be inserted to make the function work;
* Fixed a sentence saying the csv file has id field when it doesn't.
---
docs/intro/agload.md | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/docs/intro/agload.md b/docs/intro/agload.md
index e94ebff6..159cd3b0 100644
--- a/docs/intro/agload.md
+++ b/docs/intro/agload.md
@@ -32,7 +32,7 @@ load_labels_from_file('<graph name>',
false)
```
-Function `load_edges_from_file` can be used to load properties from the CSV
file. Please see the file structure in the following.
+Function `load_edges_from_file` can be used to load edges from the CSV file.
Please see the file structure in the following.
Note: make sure that ids in the edge file are identical to ones that are in
vertices files.
@@ -80,7 +80,7 @@ SELECT create_graph('agload_test_graph');
SELECT create_vlabel('agload_test_graph','Country');
SELECT load_labels_from_file('agload_test_graph',
'Country',
- 'age_load/data/countries.csv');
+ 'age/regress/age_load/data/countries.csv');
```
- Create label `City` and load vertices from csv file. *** Note this CSV file
has id field ***
@@ -89,7 +89,7 @@ SELECT load_labels_from_file('agload_test_graph',
SELECT create_vlabel('agload_test_graph','City');
SELECT load_labels_from_file('agload_test_graph',
'City',
- 'age_load/data/cities.csv');
+ 'age/regress/age_load/data/cities.csv');
```
- Create label `has_city` and load edges from csv file.
@@ -97,7 +97,7 @@ SELECT load_labels_from_file('agload_test_graph',
```postgresql
SELECT create_elabel('agload_test_graph','has_city');
SELECT load_edges_from_file('agload_test_graph', 'has_city',
- 'age_load/data/edges.csv');
+ 'age/regress/age_load/data/edges.csv');
```
- Check if the graph has been loaded properly
@@ -123,16 +123,16 @@ SELECT COUNT(*) FROM cypher('agload_test_graph', $$MATCH
(a)-[e]->(b) RETURN e$$
SELECT create_vlabel('agload_test_graph','Country2');
SELECT load_labels_from_file('agload_test_graph',
'Country2',
- 'age_load/data/countries.csv',
+ 'age/regress/age_load/data/countries.csv',
false);
```
-- Create label `City2` and load vertices from csv file. *** Note this CSV file
has id field ***
+- Create label `City2` and load vertices from csv file. *** Note this CSV file
has no id field ***
```postgresql
SELECT create_vlabel('agload_test_graph','City2');
SELECT load_labels_from_file('agload_test_graph',
'City2',
- 'age_load/data/cities.csv',
+ 'age/regress/age_load/data/cities.csv',
false);
```
- Check if the graph has been loaded properly and perform difference analysis
between ids created automatically and picked from the files.