json-ld-bp icon indicating copy to clipboard operation
json-ld-bp copied to clipboard

Alias @none as none as best practice?

Open azaroth42 opened this issue 6 years ago • 2 comments

Given the best practice to alias @id and @type, it seems valuable to also have an alias without the @ symbol for @none.

This would allow javascript like: alert(object.label.none)

In the same way as: alert(object.label.en)

Which is more lovely than: alert(object.label['@none'])

azaroth42 avatar Jan 08 '19 17:01 azaroth42

This is, actually, a larger issue: we do not have a section on the best practice to alias a number of keywords...

iherman avatar Dec 11 '19 15:12 iherman

Actually... this is related to #19 as well as https://github.com/w3c/json-ld-rc/.

I propose to close this issue, and let #19 be the home for it. Note that the recommended context in https://github.com/w3c/json-ld-rc/ does include an alias for @none.

iherman avatar Dec 11 '19 15:12 iherman