You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spec/section/output.md
+18-18Lines changed: 18 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,14 +25,14 @@ The [=generated RDF triples=] are determined by the following algorithm. [=RML P
25
25
Let:
26
26
27
27
-**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=].
29
29
-**classes** be the set of class [=IRIs=] defined in **sm** (via `rml:class`).
30
30
-**sgm** be the set of [=graph maps=] attached to **sm**.
31
31
32
-
For each logical record **record** in **records**, apply the following steps:
32
+
For each [=logical iteration=]**iteration** in **iterations**, apply the following steps:
33
33
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**.
36
36
3. For each class [=IRI=] in **classes**, add a triple to the [=output dataset=] as follows:
37
37
38
38
| Component | Value |
@@ -44,10 +44,10 @@ For each logical record **record** in **records**, apply the following steps:
44
44
45
45
4. For each [=predicate-object map=] of the Triples Map, apply the following steps:
46
46
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**.
49
49
- 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**.
51
51
52
52
For each possible combination `<predicate, object>`, where *predicate* ∈ **predicates** and *object* ∈ **objects**, add a triple to the output dataset as follows:
53
53
@@ -63,15 +63,15 @@ For each [=referencing object map=] of a [=predicate-object map=] in the [=Tripl
63
63
64
64
- Let **psm** be the [=subject map=] of the [=parent Triples Map=] referenced by [=referencing object map=].
65
65
- 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.
67
67
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:
69
69
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**.
75
75
76
76
For each *predicate* in **predicates**, add a triple to the output dataset as follows:
77
77
@@ -108,17 +108,17 @@ Execute the following steps:
108
108
109
109
110
110
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:
112
112
113
113
-**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/));
114
114
-**An [=RDF term=]**, when evaluation produces a valid [=RDF term=]according to the [=term generation rules=];
115
115
-**A data error**, when a valid RDF term cannot be produced.
116
116
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:
118
118
119
119
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.
122
122
123
123
The <dfn>term generation rules</dfn> define how a concrete RDF term is generated from a given value:
0 commit comments