Skip to content

Commit 146411a

Browse files
committed
adding language and datatype map in the output dataset
1 parent 92ca9bd commit 146411a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spec/section/output.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ A [=term map=] defines how an [=RDF term=] is generated from the evaluation of a
111111
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/));
114-
- **An [=RDF term=]**, when evaluation produces a valid [=RDF term=]according to the [=term generation rules=];
114+
- **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

117117
The [=generated RDF term=] of a [=term map=] for a given [=logical iteration=] is determined as follows:
@@ -140,8 +140,8 @@ The <dfn>term generation rules</dfn> define how a concrete RDF term is generated
140140
- Return a blank node that is unique in the target graph.
141141

142142
5. **If the term type is `rml:Literal`:**
143-
- If the term map declares a [=language tag=], then return a literal with that language tag and the natural RDF lexical form corresponding to *value*.
144-
- Otherwise, if the term map declares a non-empty [=datatype=] different from the natural RDF datatype corresponding to the value’s implicit datatype, then return an RDF literal with the specified datatype.
143+
- If the term map declares a [=language map=], then evaluate the [=language map=] to obtain a [=language tag=] and return a literal with that [=language tag=] and the natural RDF lexical form corresponding to *value*.
144+
- Otherwise, if the term map declares a [=datatype map=], then evaluate it to obtain a [=datatype IRI=] and return an RDF literal with that [=datatype=] and the natural RDF lexical form corresponding to *value*.
145145
- Otherwise, return the natural RDF literal corresponding to *value*.
146146

147147

0 commit comments

Comments
 (0)