From 2ec263928241e12abfd736c1e1ed724fc80af353 Mon Sep 17 00:00:00 2001 From: David Chaves Date: Thu, 12 Mar 2026 13:15:33 +0100 Subject: [PATCH 1/6] solving #262 --- spec/section/termmap.md | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/spec/section/termmap.md b/spec/section/termmap.md index 6a53dfc0..e6a91654 100644 --- a/spec/section/termmap.md +++ b/spec/section/termmap.md @@ -129,15 +129,24 @@ to any character that is not in the [`iunreserved` production](http://tools.ietf 1. Convert the character to a sequence of one or more octets using [UTF-8](http://tools.ietf.org/html/rfc3629) in [[RFC3629]] 2. [=Percent-encode=] each octet -The following table shows examples of strings and their IRI-safe versions: +If the [=term type=] of the [=template-valued term map=] is `rml:URI`, then a [=reference value transforming function=] MUST be applied during the evaluation of the [=template expression=]. The [=reference value transforming function=] MUST transform a [=reference value=] into an [=URI-safe version=] of that value. +The URI-safe version of a string is obtained by applying the following transformation to any character that is +not in the [`iunreserved` production](https://www.rfc-editor.org/rfc/rfc3986#section-2.2) in [[RFC3986]]: -| String | IRI-safe version | -| :-------------| :-----| -| 42 | 42 | -| Hello World! | Hello%20World%21 | -| 2011-08-23T22:17:00Z | 2011-08-23T22%3A17%3A00Z | -| ~A_17.1-2 | ~A_17.1-2 | +1. Convert the character to a sequence of one or more octets using [UTF-8](http://tools.ietf.org/html/rfc3629) in [[RFC3629]] +2. [=Percent-encode=] each octet + +The following table shows examples of strings and their IRI-safe and URI-safe versions: + + +| String | IRI-safe version | URI-safe version | +|:---------------------|:-------------------------|:-------------------------| +| 42 | 42 | 42 | +| Hello World! | Hello%20World%21 | Hello%20World%21 | +| 2011-08-23T22:17:00Z | 2011-08-23T22%3A17%3A00Z | 2011-08-23T22%3A17%3A00Z | +| ~A_17.1-2 | ~A_17.1-2 | ~A_17.1-2%C2%A2 | +| Zoë Krüger | Zoë%20Krüger | Zo%C3%AB%20Kr%C3%BCge |