o-development / ldo

Monorepo for Linked Data Objects (ldo)
MIT License
23 stars 5 forks source link

feat: improved literal handling #26

Open jeswr opened 3 months ago

jeswr commented 3 months ago

Rather than all literals being converted to strings it would be nice to have numeric types go to numbers, dateTimes go to Dates and so forth.

You should be able to largely use https://www.npmjs.com/package/rdf-literal or re-use https://github.com/LDflex/LDflex/blob/3379cb7059dccdfb41de804a2e0db338e974cc3a/src/valueUtils.js to achieve this.

Edit I've noticed that you have this in some cases, added support for dates would be excellent