RMLio/yarrrml-parser

v1.3.6+ URL encoding breaks with GREL functions

vaishalir18 opened this issue ยท 1 comments

Issue type: ๐Ÿ› Bug

Description

In versions 1.3.6+, certain iris are corrupted as GREL lowercasing removes URL encoding of subjects. The rml file generated with version 1.3.5 appears unaffected by this bug. It appears a bug was introduced in v1.3.6 onwards.

Steps

  1. Generate a rml file using yarrrml-parser for versions 1.4.0
  2. Generate a rml file using yarrrml-parser for version 1.3.5

The respective rml turtle files and yml file needed for the parser have all been attached in the zip file within this report.

The diff in the mapping is as follows:

 $ diff mapping1.3.5.ttl mapping1.4.0.ttl
59,60c59,60
<     rml:parentTermMap :ptm_000.
< :ptm_000 rr:template "http://www.example.com/canonical/skill_{Skill-Canonical}".
>     rr:template "http://www.example.com/canonical/skill_{Skill-Canonical}";
>     rr:termType rr:Literal.
97,98c97,98
<     rml:parentTermMap :ptm_001.
< :ptm_001 rr:template "http://www.example.com/skill_{Skill-AssetMetadata}".
>     rr:template "http://www.example.com/skill_{Skill-AssetMetadata}";
>     rr:termType rr:Literal. 

Environment

Java version: openjdk version "11.0.11"
System OS: macOS Monterey Version 12.5

yarrrml-Parser.zip

This bug appears to be similar to this - #151