rdfjs / data-model-spec

RDF/JS: Data model specification – A specification of a low level interface definition representing RDF data independent of a serialized format in a JavaScript environment.
http://rdf.js.org/data-model-spec/
73 stars 12 forks source link

[RDF1.2] Add base direction to literals #172

Open rubensworks opened 1 year ago

rubensworks commented 1 year ago

There's a high chance of text directions to be added in RDF 1.2, so that string literals can indicate their direction (relevant I18N).

This issue is a place do discuss how we want to cope with this at RDF/JS data model-level.

In order to cope with this, we should add a new field to literals (e.g. direction), which may either be 'ltr' or 'rtl'. The datafactory will also have to be modified to cope with this. If we make direction optional, this should be fully backwards-compatible.

https://github.com/w3c/rdf-concepts/issues/9

rubensworks commented 1 year ago

For reference, this has now been merged in the rdf-concepts spec (WD): https://github.com/w3c/rdf-concepts/commit/f299fd0500628ead4b5f2fad23c5eab16d04d1c0