Closed ritamargherita closed 3 years ago
Hi Rita,
I'm afraid that's intended behavior, see template value 2.4 of the R2RML spec.
If you want to join strings together without any default processing, you can use the function grel:array_join
, for an example see https://github.com/RMLio/yarrrml-parser/blob/46398f0650f8e24ae728236f9e21858fc6c67cce/test/function-without-parameters/mapping.yarrrml
Does this work for you?
Hi Ben, yes this works thanks!
Hello there,
I am not sure if this issue has been closed already, but I just wanted to let you know that I managed to find a solution doing the following:
s: function: grel:array_join parameters:
Best, Margherita
On 31 Mar 2021, at 08:45, Ben De Meester @.**@.>> wrote:
Hi Rita,
I'm afraid that's intended behavior, see template value 2.4 of the R2RML spechttps://www.w3.org/TR/r2rml/#dfn-template-value. If you want to join strings together without any default processing, you can use the function grel:array_join, for an example see https://github.com/RMLio/yarrrml-parser/blob/46398f0650f8e24ae728236f9e21858fc6c67cce/test/function-without-parameters/mapping.yarrrml
Does this work for you?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/RMLio/yarrrml-parser/issues/112#issuecomment-810816661, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ASZY3PIM2IEFMIZ7NW5Y523TGLAILANCNFSM42CG2V6Q.
Issue type: :bug: Bug
Description
The forward slash "/" gets replaced with "%2F" when is found in the URI
Steps
xml as follow: `<resource xmlns="http://datacite.org/schema/kernel-4" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://datacite.org/schema/kernel-4 http://schema.datacite.org/meta/kernel-4.1/metadata.xsd">
`
YARRRML: `prefixes: dans: https://example.org/dansOntology/ doi: http://doi.org/ dct: http://purl.org/dc/terms/ disco: http://rdf-vocabulary.ddialliance.org/discovery# opl: http://www.w3id.org/odissei/ns/terms_of_use_representation/ odrl: http://www.w3.org/ns/odrl/2/ idlab-fn: http://example.com/idlab/function/
mappings: test: sources:
The result for the URI is:
<http://doi.org/10.17026%2Fdans-z34-fjds>
instead of:<http://doi.org/10.17026/dans-z34-fjds>
Environment
OS