RMLio / rmlmapper-java

The RMLMapper executes RML rules to generate high quality Linked Data from multiple originally (semi-)structured data sources
http://rml.io
MIT License
151 stars 61 forks source link

Feature request: string replace function #223

Closed MathiasVDA closed 4 months ago

MathiasVDA commented 11 months ago

Hello,

I'm not sure if this is the right place for it, but I have a feature request. The currently supported don't include a string replace function. I found this out when I tried to map the value "76 cm" to "76"^^xsd:decimal

I know it's possible to extend the set of function available in RML, but I think nearly everyone will be in need of this particular function.

Thanks!

DylanVanAssche commented 11 months ago

Hi,

Hmmmm that might be desired yes :) It seems that there's already support for this in the GREL family of functions: https://github.com/FnOio/grel-functions-java/blob/90c1ddabe26d371ac1e45d91f6f7698d6519247a/src/main/resources/grel_java_mapping.ttl#L442

However, it doesn't seem documented?

CC: @ghsnd

ghsnd commented 11 months ago

Hhmm, there is a bug in generating the rmlio website, preventing GREL functions to be documented. Fixing it...

DylanVanAssche commented 4 months ago

Website has been fixed for some time, see https://rml.io/docs/rmlmapper/default-functions/