Skip to content

Commit 92ca9bd

Browse files
committed
using iteration and not record
1 parent a514906 commit 92ca9bd

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

spec/section/output.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ The [=generated RDF triples=] are determined by the following algorithm. [=RML P
2525
Let:
2626

2727
- **sm** be the [=subject map=] of the [=Triples Map=].
28-
- **records** be the set of logical records obtained by evaluating the [=logical source=] of the [=Triples Map=] using its declared [=reference formulation=].
28+
- **iterations** be the set of [=logical iterations=] obtained by evaluating the [=logical source=] of the [=Triples Map=] using its declared [=reference formulation=].
2929
- **classes** be the set of class [=IRIs=] defined in **sm** (via `rml:class`).
3030
- **sgm** be the set of [=graph maps=] attached to **sm**.
3131

32-
For each logical record **record** in **records**, apply the following steps:
32+
For each [=logical iteration=] **iteration** in **iterations**, apply the following steps:
3333

34-
1. Let [=subject=] be the [=RDF term=] resulting from applying **sm** to **record**.
35-
2. Let **subject_graphs** be the set of [=RDF term=] resulting from applying each graph map in **sgm** to **record**.
34+
1. Let [=subject=] be the [=RDF term=] resulting from applying **sm** to **iteration**.
35+
2. Let **subject_graphs** be the set of [=RDF term=] resulting from applying each graph map in **sgm** to **iteration**.
3636
3. For each class [=IRI=] in **classes**, add a triple to the [=output dataset=] as follows:
3737

3838
| Component | Value |
@@ -44,10 +44,10 @@ For each logical record **record** in **records**, apply the following steps:
4444

4545
4. For each [=predicate-object map=] of the Triples Map, apply the following steps:
4646

47-
- Let **predicates** be the set of [=RDF terms=] resulting from applying each predicate map of the predicate-object map to **record**.
48-
- Let **objects** be the set of [=RDF terms=] resulting from applying each object map (excluding [=referencing object maps=]) to **record**.
47+
- Let **predicates** be the set of [=RDF terms=] resulting from applying each predicate map of the predicate-object map to **iteration**.
48+
- Let **objects** be the set of [=RDF terms=] resulting from applying each object map (excluding [=referencing object maps=]) to **iteration**.
4949
- Let **pogm** be the set of graph maps of the predicate-object map.
50-
- Let **predicate_object_graphs** be the set of RDF terms resulting from applying each graph map in **pogm** to **record**.
50+
- Let **predicate_object_graphs** be the set of RDF terms resulting from applying each graph map in **pogm** to **iteration**.
5151

5252
For each possible combination `<predicate, object>`, where *predicate***predicates** and *object***objects**, add a triple to the output dataset as follows:
5353

@@ -63,15 +63,15 @@ For each [=referencing object map=] of a [=predicate-object map=] in the [=Tripl
6363

6464
- Let **psm** be the [=subject map=] of the [=parent Triples Map=] referenced by [=referencing object map=].
6565
- Let **pogm** be the set of [=graph maps=] of the [=predicate-object map=].
66-
- Let **joined_records** be the result of evaluating the [=join conditions=] defined by the [=referencing object map=], combining records from both the child and parent logical sources.
66+
- Let **joined_iterations** be the result of evaluating the [=join conditions=] defined by the [=referencing object map=], combining iterations from both the child and parent logical sources.
6767

68-
For each pair `<child_record, parent_record>` in **joined_records**, apply the following steps:
68+
For each pair `<child_iteration, parent_iteration>` in **joined_iterations**, apply the following steps:
6969

70-
1. Let **subject** be the [=RDF terms=] resulting from applying **sm** to **child_record**.
71-
2. Let **predicates** be the set of [=RDF terms=] resulting from applying each [=predicate map=] of the [=predicate-object map=] to **child_record**.
72-
3. Let **object** be the [=RDF terms=] resulting from applying **psm** to **parent_record**.
73-
4. Let **subject_graphs** be the set of RDF terms resulting from applying each graph map in **sgm** to **child_record**.
74-
5. Let **predicate_object_graphs** be the set of RDF terms resulting from applying each graph map in **pogm** to **child_record**.
70+
1. Let **subject** be the [=RDF terms=] resulting from applying **sm** to **child_iteration**.
71+
2. Let **predicates** be the set of [=RDF terms=] resulting from applying each [=predicate map=] of the [=predicate-object map=] to **child_iteration**.
72+
3. Let **object** be the [=RDF terms=] resulting from applying **psm** to **parent_iteration**.
73+
4. Let **subject_graphs** be the set of RDF terms resulting from applying each graph map in **sgm** to **child_iteration**.
74+
5. Let **predicate_object_graphs** be the set of RDF terms resulting from applying each graph map in **pogm** to **child_iteration**.
7575

7676
For each *predicate* in **predicates**, add a triple to the output dataset as follows:
7777

@@ -108,17 +108,17 @@ Execute the following steps:
108108

109109

110110
A [=term map=] defines how an [=RDF term=] is generated from the evaluation of a [=logical iteration=] over a [=logical source=].
111-
The result of evaluating a term map for a given logical record can be one of the following:
111+
The result of evaluating a term map for a given [=logical iteration=] can be one of the following:
112112

113113
- **Empty**, if any referenced value of the [=term map=] evaluates to a null, empty or missing value (each data format defines it in [RML-IO-Registry](https://w3id.org/kg-construct/rml-io-registry/));
114114
- **An [=RDF term=]**, when evaluation produces a valid [=RDF term=]according to the [=term generation rules=];
115115
- **A data error**, when a valid RDF term cannot be produced.
116116

117-
The [=generated RDF term=] of a [=term map=] for a given logical record is determined as follows:
117+
The [=generated RDF term=] of a [=term map=] for a given [=logical iteration=] is determined as follows:
118118

119119
1. If the term map is a **constant-valued term map**, then the generated RDF term is the term map’s constant value.
120-
2. If the term map is a **reference-valued term map**, then the generated RDF term is determined by evaluating the [=reference value=] expression over the logical record and applying the *term generation rules* to the resulting value.
121-
3. If the term map is a **template-valued term map**, then the generated RDF term is determined by evaluating the [=template value=] against the logical record and applying the *term generation rules* to the resulting value.
120+
2. If the term map is a **reference-valued term map**, then the generated RDF term is determined by evaluating the [=reference value=] expression over the [=logical iteration=] and applying the *term generation rules* to the resulting value.
121+
3. If the term map is a **template-valued term map**, then the generated RDF term is determined by evaluating the [=template value=] against the [=logical iteration=] and applying the *term generation rules* to the resulting value.
122122

123123
The <dfn>term generation rules</dfn> define how a concrete RDF term is generated from a given value:
124124

0 commit comments

Comments
 (0)