Skip to content

Commit c5b8e42

Browse files
author
Petra Selmer
committed
Fix up errors
1 parent d96f928 commit c5b8e42

File tree

1 file changed

+16
-15
lines changed

1 file changed

+16
-15
lines changed

cip/1.accepted/CIP2017-06-18-multiple-graphs.adoc

+16-15
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ This CIP has been developed in tandem with the following CIPs; as such, it is re
5050

5151
* `CIP2016-06-22`: Nested subqueries
5252
* `CIP2018-05-04`: Equivalence operators, copy pattern, and related auxiliary functions
53-
* `CIP2018-05-03`: Creating and administrating graphs and views
53+
* `CIP2018-05-03`: Creating and administering graphs and views
5454

5555

5656
== The data model
@@ -99,8 +99,8 @@ A _**relationship type**_ is a name used to classify a relationship.
9999

100100
.Definition 6
101101
A _**value**_ is any value that is supported by the Cypher type system.
102-
A _**scalar value**_ is any opaque value that cannot be further divided into multiple constituting values.
103-
A _**nested value**_ is any value that is composed of multiple constituting values.
102+
A _**scalar value**_ is any opaque value that cannot be sub-divided into multiple constituent values.
103+
A _**nested value**_ is any value that is composed of multiple values.
104104

105105
.Definition 7
106106
A _**property**_ is a tuple consisting of a name (called the _**property key**_) and a value (called the _**property value**_).
@@ -121,10 +121,10 @@ A relationship contains a start node and an end node (both drawn from the same g
121121
We note that the start and end nodes may be the same node, hence denoting a https://en.wikipedia.org/wiki/Loop_(graph_theory)[self-loop] relationship.
122122

123123
.Definition 11
124-
The _**contents**_ of a model element are its constituents but not its identity.
125-
For a node (respectively relationship) this comprises its labels, and properties (respectively, its relationship type, properties, as well as its start node and its end node).
126-
The _**plain contents**_ of a mode element is the same as the contents of the model element but excludes the identity of the start node and the end node of relationships.
127-
The _**shallow contenst**_ of a mode element is the same as the contents of the model element but excludes the start node and the end node of relationships.
124+
The _**contents**_ of a model element include its constituents but not its identity.
125+
For a node (respectively relationship) this comprises its labels, and properties (respectively, its relationship type, properties, as well as its start node and its end node, the latter defined recursively).
126+
The _**plain contents**_ of a model element is the same as the contents of the model element but excludes the identity of the start node and the end node of relationships. XXTODOXXX
127+
The _**shallow contenst**_ of a model element is the same as the contents of the model element but excludes the start node and the end node of relationships.
128128

129129

130130
.Definition 12
@@ -179,13 +179,13 @@ The set of *atoms* of an arbitrary value `v` is a list of all scalar values cont
179179

180180
A *valid* multiple property graph model instance adheres to the following restrictions:
181181

182-
* The atoms of an identity value of any model element must not contain `NULL`.
182+
* The atoms of an identity value of any model element must not contain `NULL`. XXWHERE-is-identity-value-defined???
183183
* The atoms of an identity value of any model element must not contain a reference to a model element.
184184
* Property values must not be `NULL`
185-
(Note that this differs from an entity not having a property key).
185+
(Note that this differs from an entity not having some property key `key`).
186186
* The atoms of any property value of any entity must not contain a reference to a model element.
187187

188-
Note:: Without these restrictions, nodes could be used to as part of graph identities and relationships could be used as property values.
188+
Note:: Without these restrictions, nodes could be used to form part of graph identities, and relationships could be used as property values.
189189

190190

191191
== Query structure
@@ -202,7 +202,7 @@ Note:: As per this and all accompanying proposals, the list of current and propo
202202
`THEN` is not considered to be an operator clause.
203203

204204
.Definition 22
205-
A _**simple clause chain**_ is a sequence of one or more non-operator clauses which each may be further qualified by clause arguments, sub-clauses and sub-clause arguments.
205+
A _**simple clause chain**_ is a sequence of one or more non-operator clauses which may each be further qualified by clause arguments, sub-clauses and sub-clause arguments.
206206

207207
.Definition 23
208208
An _**operator clause chain**_ comprises two or more simple clause chains that are separated by the same operator clause.
@@ -359,7 +359,7 @@ Note:: As a consequence, the same identity value may refer to different model el
359359

360360
The client always receives the current contents of all returned model elements:
361361

362-
1. If an execution result that is returned _to the client_ is a graph result, the contents of this graph is returned.
362+
1. If an execution result that is returned _to the client_ is a graph result, the contents of this graph is returned.XXXSLOPPY
363363

364364
2. If an execution result that is returned _to the client_ is a tabular, the contents and identity of all contained entities is returned.
365365

@@ -431,7 +431,7 @@ An error is raised in these scenarios:
431431
* `< graph-name >` is not the name of a graph in the catalog.
432432
* Attempting to perform an updating operation on a working graph introduced using `FROM [GRAPH]`.
433433

434-
Note:: A subquery form of `FROM` is proposed in the accompanying `CIP2018-05-03`.
434+
Note:: A subquery form of `FROM` is proposed in the accompanying CIP `CIP2018-05-03: Nested subqueries`.
435435

436436

437437
=== Selecting the working graph from the catalog: updating
@@ -453,7 +453,7 @@ An error is raised in these scenarios:
453453
* `< graph-name >` is not the name of a graph in the catalog.
454454
* If no updating operations are performed on a working graph that was introduced using `UPDATE [GRAPH]`.
455455

456-
Note:: A subquery form of `UPDATE` is proposed in the accompanying `CIP2018-05-03`.
456+
Note:: A subquery form of `UPDATE` is proposed in the accompanying CIP `CIP2018-05-03: Nested subqueries`.
457457

458458

459459
=== Using the working graph when interpreting a pattern
@@ -466,7 +466,7 @@ Consider the following example:
466466

467467
[source, cypher]
468468
----
469-
UDPATE graph1
469+
UPDATE graph1
470470
CREATE (a)
471471
WITH *
472472
FROM graph2
@@ -475,6 +475,7 @@ RETURN count(*) AS count
475475
----
476476

477477
This will always return a count of zero since the `MATCH` clause cannot possibly find any node in `graph2` that is identical to `(a)` even though `graph2` may very well contain nodes `(b)`.
478+
XXMORE-needs-to-be-said.What about WITH *xxxx
478479

479480
An error is raised if a statement attempts to update an entity that is not contained in the working graph.
480481

0 commit comments

Comments
 (0)