RMLio / yarrrml-parser

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

Pad suffixes to keep ordering #78

Closed bjdmeest closed 4 years ago

bjdmeest commented 4 years ago

Issue type: :bug: Bug / 🦄 Feature

Description

Right now, suffixes are just incremented so we get _0 ... _9, _10, ... However that gives a wrong ordering when ingesting those in a triple store (_10 comes before _9). This specifically gives problems when using functions that have an array as input Could we pad the suffixes to have _000, _001 etc instead? I know it's not an ideal fix (we should probably think more deeply about how to use functions that have an array as input), but it's small and doesn't break anything existing.

Steps

Any YARRRML 2 RML output

Environment

everywhere