w3c / json-ld-syntax

JSON-LD 1.1 Specification
https://w3c.github.io/json-ld-syntax/
Other
116 stars 23 forks source link

language-maps don't allow separate base direction #280

Open gkellogg opened 5 years ago

gkellogg commented 5 years ago

Language Maps allow strings to be indexed by their language-tag, which provides no means of changing the default or term-specific @direction.

A hypothetical change would be to allow value objects without @type or @language as the value of a language map.

{
  "@context": {
    "@version": 1.1,
    "ex:lm": {"@container": "@language"}
  },
  "ex:lm": {
    "en": "HTML and CSS: Design and Build Websites",
    "ar-EG": "HTML و CSS: تصميم و إنشاء مواقع الويب"
  }
}
iherman commented 5 years ago

This issue was discussed in a meeting.

iherman commented 5 years ago

There seems to be only very few usages for this (it is only useful if one has a literal with a direction that needs to be added to a language map). We are also close to CR, and this change would require some non-trivial changes (including the tests). I would therefore propose to label this as a postponed issue, to come back for a possible future release.

iherman commented 5 years ago

This issue was discussed in a meeting.