RMLio / yarrrml-parser

A YARRRML parser library and CLI in Javascript
MIT License
41 stars 17 forks source link

grel:toLowerCase applied to iri removes url encoding from string #151

Open henrieglesorotos opened 2 years ago

henrieglesorotos commented 2 years ago

Issue type: :bug: Bug

Description

Steps

country_label: "United Kingdom"

          s:
             function: grel:toLowerCase
             parameters:
                - [ grel:valueParameter, prefix:country_$(country_label) ]
           po:
             - [ a, prefix:Country ]

However, if I write the mapping without shortcuts the output is as expected. See below. Full mapping without shortcuts:

    s:
      function: grel:toLowerCase
      parameters:
        - parameter: grel:valueParameter
          value: prefix:country_$(country_label)
    po:
      - [ a, prefix_country ]

Environment