From 0aa620b4fdaaeccc6019d611125b06898a99b501 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jens=20Pryce-=C3=85klundh?= <112686610+JPryce-Aklundh@users.noreply.github.com> Date: Thu, 12 Jun 2025 10:36:50 +0200 Subject: [PATCH 1/3] filter --- modules/ROOT/images/filter-clause.svg | 30 ++++++++++++++++++++++++++ modules/ROOT/images/filter_clause.svg | 1 - modules/ROOT/pages/clauses/filter.adoc | 2 +- 3 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 modules/ROOT/images/filter-clause.svg delete mode 100644 modules/ROOT/images/filter_clause.svg diff --git a/modules/ROOT/images/filter-clause.svg b/modules/ROOT/images/filter-clause.svg new file mode 100644 index 000000000..fc5c281e0 --- /dev/null +++ b/modules/ROOT/images/filter-clause.svg @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/modules/ROOT/images/filter_clause.svg b/modules/ROOT/images/filter_clause.svg deleted file mode 100644 index f15e25ef6..000000000 --- a/modules/ROOT/images/filter_clause.svg +++ /dev/null @@ -1 +0,0 @@ -KNOWSsince:2012KNOWSsince:1999KNOWSsince:2005KNOWSsince:2010KNOWSsince:2021SwedishPersonname:'Andy'age:36Personname:'Timothy'age:38Personname:'Peter'age:35Personname:'Lisa'age:48Personname:'John'age:40Personname:'Susan'age:32 \ No newline at end of file diff --git a/modules/ROOT/pages/clauses/filter.adoc b/modules/ROOT/pages/clauses/filter.adoc index c14186ba7..52477c8c7 100644 --- a/modules/ROOT/pages/clauses/filter.adoc +++ b/modules/ROOT/pages/clauses/filter.adoc @@ -11,7 +11,7 @@ Unlike `WHERE`, `FILTER` is not a subclause, which means it can be used independ The following graph is used for the examples below: -image::filter_clause.svg[width="700",role="middle"] +image::filter-clause.svg[Example graph with Person nodes connecting via knows relationships,width=600,role=popup] To recreate the graph, run the following query in an empty Neo4j database: From b1c5bf85b7f24c50b5b43765456cb3472124dc7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jens=20Pryce-=C3=85klundh?= <112686610+JPryce-Aklundh@users.noreply.github.com> Date: Thu, 12 Jun 2025 15:22:42 +0200 Subject: [PATCH 2/3] update forgotten images --- modules/ROOT/images/graph-order-by-clause.svg | 15 ------------ modules/ROOT/images/graph-with-clause.svg | 24 ------------------- modules/ROOT/images/let-graph.svg | 15 ++++++++++++ modules/ROOT/images/let_clause.svg | 1 - modules/ROOT/images/order-by-graph.svg | 10 ++++++++ .../ROOT/images/sequential-queries-graph.svg | 15 ++++++++++++ modules/ROOT/images/with-graph.svg | 15 ++++++++++++ modules/ROOT/images/with_clause.svg | 1 - modules/ROOT/pages/clauses/let.adoc | 2 +- modules/ROOT/pages/clauses/order-by.adoc | 2 +- modules/ROOT/pages/clauses/with.adoc | 2 +- .../composed-queries/sequential-queries.adoc | 2 +- 12 files changed, 59 insertions(+), 45 deletions(-) delete mode 100644 modules/ROOT/images/graph-order-by-clause.svg delete mode 100644 modules/ROOT/images/graph-with-clause.svg create mode 100644 modules/ROOT/images/let-graph.svg delete mode 100644 modules/ROOT/images/let_clause.svg create mode 100644 modules/ROOT/images/order-by-graph.svg create mode 100644 modules/ROOT/images/sequential-queries-graph.svg create mode 100644 modules/ROOT/images/with-graph.svg delete mode 100644 modules/ROOT/images/with_clause.svg diff --git a/modules/ROOT/images/graph-order-by-clause.svg b/modules/ROOT/images/graph-order-by-clause.svg deleted file mode 100644 index 3817840e9..000000000 --- a/modules/ROOT/images/graph-order-by-clause.svg +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - - - - - - - - diff --git a/modules/ROOT/images/graph-with-clause.svg b/modules/ROOT/images/graph-with-clause.svg deleted file mode 100644 index 39691d659..000000000 --- a/modules/ROOT/images/graph-with-clause.svg +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/modules/ROOT/images/let-graph.svg b/modules/ROOT/images/let-graph.svg new file mode 100644 index 000000000..2290d1f55 --- /dev/null +++ b/modules/ROOT/images/let-graph.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/modules/ROOT/images/let_clause.svg b/modules/ROOT/images/let_clause.svg deleted file mode 100644 index dab93dfc4..000000000 --- a/modules/ROOT/images/let_clause.svg +++ /dev/null @@ -1 +0,0 @@ -BUYSdate:DATESUPPLIESCustomerfirstName:STRINGlastName:STRINGemail:STRINGdiscount:FLOATProductname:STRINGprice:INTEGERSuppliername:STRINGemail:STRING \ No newline at end of file diff --git a/modules/ROOT/images/order-by-graph.svg b/modules/ROOT/images/order-by-graph.svg new file mode 100644 index 000000000..591850e54 --- /dev/null +++ b/modules/ROOT/images/order-by-graph.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/modules/ROOT/images/sequential-queries-graph.svg b/modules/ROOT/images/sequential-queries-graph.svg new file mode 100644 index 000000000..2290d1f55 --- /dev/null +++ b/modules/ROOT/images/sequential-queries-graph.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/modules/ROOT/images/with-graph.svg b/modules/ROOT/images/with-graph.svg new file mode 100644 index 000000000..2290d1f55 --- /dev/null +++ b/modules/ROOT/images/with-graph.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/modules/ROOT/images/with_clause.svg b/modules/ROOT/images/with_clause.svg deleted file mode 100644 index dab93dfc4..000000000 --- a/modules/ROOT/images/with_clause.svg +++ /dev/null @@ -1 +0,0 @@ -BUYSdate:DATESUPPLIESCustomerfirstName:STRINGlastName:STRINGemail:STRINGdiscount:FLOATProductname:STRINGprice:INTEGERSuppliername:STRINGemail:STRING \ No newline at end of file diff --git a/modules/ROOT/pages/clauses/let.adoc b/modules/ROOT/pages/clauses/let.adoc index 4ecffc57d..3a6398f53 100644 --- a/modules/ROOT/pages/clauses/let.adoc +++ b/modules/ROOT/pages/clauses/let.adoc @@ -13,7 +13,7 @@ Nor can it be used for aggregations or in combination with `DISTINCT`; it can on A graph with the following schema is used for the examples below: -image::let_clause.svg[width="600",role="middle"] +image::let-graph.svg[Example graph connecting suppliers, products, and customers,width=600,role=popup] To recreate the graph, run the following query against an empty Neo4j database. diff --git a/modules/ROOT/pages/clauses/order-by.adoc b/modules/ROOT/pages/clauses/order-by.adoc index f18ad4db2..43fbcea32 100644 --- a/modules/ROOT/pages/clauses/order-by.adoc +++ b/modules/ROOT/pages/clauses/order-by.adoc @@ -19,7 +19,7 @@ Unless `ORDER BY` is used, Neo4j does not guarantee the row order of a query res A graph with the following schema is used for the examples below: -image::graph_order_by_clause.svg[width="400", role="middle"] +image::order-by-graph.svg[Graph showing orders and the items they contain, width=400, role=popup] To recreate it, run the following query against an empty Neo4j database: diff --git a/modules/ROOT/pages/clauses/with.adoc b/modules/ROOT/pages/clauses/with.adoc index 3999dc738..8770faaa4 100644 --- a/modules/ROOT/pages/clauses/with.adoc +++ b/modules/ROOT/pages/clauses/with.adoc @@ -20,7 +20,7 @@ As of Cypher 25, `WITH` is no longer required as a separator between a write and == Example graph A graph with the following schema is used for the examples below: -image::graph-with-clause.svg[Example graph connecting person nodes via knows and locks relationships,width=500,role=popup] +image::with-graph.svg[Example graph connecting suppliers, products, and customers,width=600,role=popup] To recreate the graph, run the following query against an empty Neo4j database. diff --git a/modules/ROOT/pages/queries/composed-queries/sequential-queries.adoc b/modules/ROOT/pages/queries/composed-queries/sequential-queries.adoc index 29c84b486..6a0f33ca0 100644 --- a/modules/ROOT/pages/queries/composed-queries/sequential-queries.adoc +++ b/modules/ROOT/pages/queries/composed-queries/sequential-queries.adoc @@ -16,7 +16,7 @@ The following graph is used for the examples on this page: -image::with_clause.svg[width="600",role="middle"] +image::sequential-queries-graph.svg[Example graph connecting suppliers, products, and customers,width=600,role=popup] To recreate the graph, run the following query against an empty Neo4j database. From 78415d89e64520996d4673ca67da116ae3ede041 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jens=20Pryce-=C3=85klundh?= <112686610+JPryce-Aklundh@users.noreply.github.com> Date: Thu, 12 Jun 2025 15:27:20 +0200 Subject: [PATCH 3/3] update --- modules/ROOT/pages/clauses/filter.adoc | 2 +- modules/ROOT/pages/clauses/where.adoc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/ROOT/pages/clauses/filter.adoc b/modules/ROOT/pages/clauses/filter.adoc index 52477c8c7..fab35e07c 100644 --- a/modules/ROOT/pages/clauses/filter.adoc +++ b/modules/ROOT/pages/clauses/filter.adoc @@ -11,7 +11,7 @@ Unlike `WHERE`, `FILTER` is not a subclause, which means it can be used independ The following graph is used for the examples below: -image::filter-clause.svg[Example graph with Person nodes connecting via knows relationships,width=600,role=popup] +image::filter-clause.svg[Example graph with Person nodes connecting via knows relationships,width=700,role=popup] To recreate the graph, run the following query in an empty Neo4j database: diff --git a/modules/ROOT/pages/clauses/where.adoc b/modules/ROOT/pages/clauses/where.adoc index 09c338450..1f62e0ff5 100644 --- a/modules/ROOT/pages/clauses/where.adoc +++ b/modules/ROOT/pages/clauses/where.adoc @@ -20,7 +20,7 @@ For more uses of `WHERE`, see xref:expressions/predicates/index.adoc[]. The following graph is used for the examples below: -image::graph-where-clause.svg[Example graph with Person nodes connecting via knows relationships,width=600,role=popup] +image::graph-where-clause.svg[Example graph with Person nodes connecting via knows relationships,width=700,role=popup] To recreate the graph, run the following query in an empty Neo4j database: