Skip to content

Commit 9e3d228

Browse files
committed
use list instead of set to define the result of expression (#121)
1 parent dd2c794 commit 9e3d228

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

spec/docs/expressions.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,26 +9,26 @@ An <dfn>expression map</dfn> (`rml:ExpressionMap`) is an abstract class, that is
99
* 0 or 1 `rml:reference`, or
1010
* 0 or 1 `rml:template`.
1111

12-
Each of these properties specifies an [=expression=] which, upon evaluation, results in a set of values.
12+
Each of these properties specifies an [=expression=] which, upon evaluation, results in an ordered list of values.
1313

14-
The <dfn>reference expression set</dfn> of an [=expression map=] ar the set of expressions which are evaluated on a [=logical iteration=].
14+
The <dfn>reference expression set</dfn> of an [=expression map=] is the set of expressions which are evaluated on a [=logical iteration=].
1515

1616
### Constant expression (`rml:constant`)
1717

18-
A <dfn>constant-valued expression map</dfn> is an [=expression map=] that always generates the same expression value. A constant-valued expression map is represented by a resource that has exactly one `rml:constant` property, the value of which is called a <dfn>constant expression</dfn>.
18+
A <dfn>constant-valued expression map</dfn> is an [=expression map=] that always generates the same value. A constant-valued expression map is represented by a resource that has exactly one `rml:constant` property, the value of which is called a <dfn>constant expression</dfn>.
1919

20-
The <dfn>constant value</dfn> is a singleton set containing the [=constant expression=].
20+
The <dfn>constant value</dfn> is a singleton list containing the [=constant expression=].
2121

22-
The [=reference expressions=] of a [constant-valued expression map=] is the empty set.
22+
The [=reference expressions=] of a [constant-valued expression map=] is an empty list.
2323

2424
### Reference (`rml:reference`)
2525
A <dfn>reference-valued expression map</dfn> is an [=expression map=] that is represented by a resource that has exactly one `rml:reference` property, the value of which is called a <dfn>reference expression</dfn>.
2626

2727
The [=reference expression=] MUST be a valid [=expression=] according to the defined [=reference formulation=] in the [=logical source=].
2828

29-
The [=reference expression set=] of a [reference-valued expression map=] is the singleton set containing the [=reference expression=].
29+
The [=reference expression set=] of a [=reference-valued expression map=] is the singleton set containing the [=reference expression=].
3030

31-
The <dfn>reference value</dfn> is a set of values obtained by evaluating the [=reference expression=] against a given [=logical iteration=].
31+
The <dfn>reference value</dfn> is an ordered list of values obtained by evaluating the [=reference expression=] against a given [=logical iteration=].
3232

3333
### Template (`rml:template`)
3434
A <dfn>template-valued expression map</dfn> is an [=expression map=] that is represented by a resource that has exactly one `rml:template` property, the value of which is called a <dfn>template expression</dfn>. The [=template expression=] MUST be a valid [=string template=].
@@ -48,7 +48,7 @@ The <dfn>template value</dfn> when evaluating a [=string template=] for a given
4848
1. Let `result` be the [=reference expression set=] of the [=string template=]
4949
2. For each [=reference expression=] in `result`:
5050
1. Let `values` be the [=reference value=] of the [=reference expression=] that is enclosed in the curly braces
51-
2. If `values` is an empty set, then return `NULL`
51+
2. If `values` is an empty list, then return `NULL`
5252
3. For each `value` in `values`:
5353
1. Let `value` be the [=natural RDF lexical form=] corresponding to `value`
5454
3. Let `result` be the [=n-ary Cartesian product=] of `result`

0 commit comments

Comments
 (0)