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 e79da495 Updated readme.md -- Removed errors from cypher queries (#148)
e79da495 is described below

commit e79da4950e7779967d5d1006280e3600295ed152
Author: safi50 <[email protected]>
AuthorDate: Sat May 6 03:50:13 2023 +0500

    Updated readme.md -- Removed errors from cypher queries (#148)
---
 README.md                                 |  6 ++++++
 docs/functions/aggregate_functions.md     | 14 +++++++-------
 docs/functions/logarithmic_functions.md   |  8 ++++----
 docs/functions/trigonometric_functions.md |  2 +-
 docs/intro/agload.md                      | 10 +++++-----
 docs/intro/operators.md                   |  2 +-
 6 files changed, 24 insertions(+), 18 deletions(-)

diff --git a/README.md b/README.md
index 5a14429a..8b0288dc 100644
--- a/README.md
+++ b/README.md
@@ -10,6 +10,12 @@
 
 * Install requirements (the latex and dvisvgm commands are required to display 
math)
 
+- **MacOS**
+```shell
+brew install python3 virtualenv texlive
+```
+
+- **Ubuntu**
 ```shell
 sudo apt install python3 virtualenv texlive-latex-base texlive-latex-extra 
texlive-extra-utils
 ```
diff --git a/docs/functions/aggregate_functions.md 
b/docs/functions/aggregate_functions.md
index efcc2e51..5bf5738a 100644
--- a/docs/functions/aggregate_functions.md
+++ b/docs/functions/aggregate_functions.md
@@ -87,7 +87,7 @@ Result:
    </td>
   </tr>
   <tr>
-   <td>2123e1af756543542064ae0d07792be90176b311be
+   <td>13
    </td>
   </tr>
   <tr>
@@ -352,7 +352,7 @@ SELECT *
 FROM cypher('graph_name', $$
     MATCH (n:Person)
     RETURN stDevP(n.age)
-$$ as (stdevp_age agtype);
+$$) as (stdevp_age agtype);
 ```
 
 
@@ -432,7 +432,7 @@ SELECT *
 FROM cypher('graph_name', $$
     MATCH (n:Person)
     RETURN percentileCont(n.age, 0.4)
-$$ as (percentile_cont_age agtype);
+$$) as (percentile_cont_age agtype);
 ```
 
 
@@ -512,7 +512,7 @@ SELECT *
 FROM cypher('graph_name', $$
     MATCH (n:Person)
     RETURN percentileDisc(n.age, 0.5)
-$$ as (percentile_disc_age agtype);
+$$) as (percentile_disc_age agtype);
 ```
 
 
@@ -590,7 +590,7 @@ SELECT *
 FROM cypher('graph_name', $$
     MATCH (n {name: 'A'})-[]->(x)
     RETURN n.age, count(*)
-$$ as (age agtype, number_of_people agtype);
+$$) as (age agtype, number_of_people agtype);
 ```
 
 The labels and age property of the start node n and the number of nodes 
related to n are returned.
@@ -624,7 +624,7 @@ SELECT *
 FROM cypher('graph_name', $$
     MATCH (n {name: 'A'})-[r]->()
     RETURN type(r), count(*)
-$$ as (label agtype, count agtype);
+$$) as (label agtype, count agtype);
 ```
 
 
@@ -890,7 +890,7 @@ SELECT *
 FROM cypher('graph_name', $$
 MATCH (n:Person)
 RETURN sum(n.age)
-$$ as (total_age agtype);
+$$) as (total_age agtype);
 ```
 
 
diff --git a/docs/functions/logarithmic_functions.md 
b/docs/functions/logarithmic_functions.md
index 232ec8b4..4fda1775 100644
--- a/docs/functions/logarithmic_functions.md
+++ b/docs/functions/logarithmic_functions.md
@@ -136,7 +136,7 @@ Query:
 ```postgresql
 SELECT *
 FROM cypher('graph_name', $$
-    RETURN e(2)
+    RETURN exp(2)
 $$) as (e agtype);
 ```
 
@@ -282,8 +282,8 @@ Query:
 ```postgresql
 SELECT *
 FROM cypher('graph_name', $$
-    RETURN log(27)
-$$) as (natural_logarithm agtype);
+    RETURN log10(27)
+$$) as (common_logarithm agtype);
 ```
 
 
@@ -294,7 +294,7 @@ Result:
 
 <table>
   <tr>
-   <td>natural_logarithm
+   <td>common_logarithm
    </td>
   </tr>
   <tr>
diff --git a/docs/functions/trigonometric_functions.md 
b/docs/functions/trigonometric_functions.md
index 207706a0..f29fe25d 100644
--- a/docs/functions/trigonometric_functions.md
+++ b/docs/functions/trigonometric_functions.md
@@ -309,7 +309,7 @@ Query:
 ```postgresql
 SELECT *
 FROM cypher('graph_name', $$
-    RETURN cosin(0.5)
+    RETURN cos(0.5)
 $$) as (c agtype);
 ```
 
diff --git a/docs/intro/agload.md b/docs/intro/agload.md
index f7536237..f232fa5d 100644
--- a/docs/intro/agload.md
+++ b/docs/intro/agload.md
@@ -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/countries.csv');
+                             '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/cities.csv');
+                             '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/edges.csv');
+     'age_load/data/edges.csv');
 ```
 
 - check if the graph has been loaded properly
@@ -123,7 +123,7 @@ 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/countries.csv', 
+                             'age_load/data/countries.csv', 
                              false);
 ```
 
@@ -132,7 +132,7 @@ SELECT load_labels_from_file('agload_test_graph',
 SELECT create_vlabel('agload_test_graph','City2');
 SELECT load_labels_from_file('agload_test_graph',
                              'City2',
-                             'age_load/cities.csv', 
+                             '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.
diff --git a/docs/intro/operators.md b/docs/intro/operators.md
index e1bc50bf..48ae7702 100644
--- a/docs/intro/operators.md
+++ b/docs/intro/operators.md
@@ -114,7 +114,7 @@ AGE supports the use of [POSIX regular 
expressions](https://www.postgresql.org/d
 
 #### Basic String Matching
 
-The =~ operator when no special characters are give, act like the = operator.
+The =~ operator when no special characters are given, act like the = operator.
 
 ```postgresql
 SELECT * FROM cypher('graph_name', $$

Reply via email to