dret / I-D

Internet Drafts I've authored or contributed to.
16 stars 13 forks source link

Consider a JSON-LD style "language map" for the `title*` shape #104

Closed BigBlueHat closed 4 years ago

BigBlueHat commented 6 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": "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;

dret commented 4 years ago

we have a new serialization now.