Closed BigBlueHat closed 4 years ago
Originally proposed as part of https://github.com/dret/I-D/issues/89#issuecomment-415048808
The title* property might benefit from using a structure similar to JSON-LD's language map approach:
title*
{ "title": "unknown language", "title*": { "en": "the english language value", "jp": "...if I knew Japanese...this would be in kanji..." } }
Checkout ActivityStreams JSON format (based on JSON-LD and in use in Mastodon and friends) for a similar approach: https://www.w3.org/TR/activitystreams-vocabulary/#dfn-name
Advantages include;
link['title*'].jp
if ('jp' in link['title*'])
we have a new serialization now.
Originally proposed as part of https://github.com/dret/I-D/issues/89#issuecomment-415048808
The
title*
property might benefit from using a structure similar to JSON-LD's language map approach:Checkout ActivityStreams JSON format (based on JSON-LD and in use in Mastodon and friends) for a similar approach: https://www.w3.org/TR/activitystreams-vocabulary/#dfn-name
Advantages include;
link['title*'].jp
and detection becomesif ('jp' in link['title*'])
title*
contains a unique array in a very specific shape/order