You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Natural language string values, notably title and description (and their language map friends titles and descriptions) do not provide for base direction metadata.
As defined in 5.3.1.1 Thing, the base text direction used to display human-readable metadata can either be estimated using heuristics such as the first-strong rule or inferred from language information. In TD documents the default language is defined by a value assigned to @language in the @context, and this, along with a script subtag if necessary, can be used to determine a base text direction. However, when interpreting human-readable text, each human-readable string value MUST be processed independently. In other words, a TD Processor cannot carry forward changes in direction from one string to another, or infer direction for one string from another one elsewhere in the TD.
Note Strings on the Web [STRING-META] suggests both strong-first and language-based inferencing as means to determine the base text direction. Given that the Thing Description format is based on JSON-LD 1.1 [json-ld11], which currently lacks explicit direction metadata, these approaches are currently considered appropriate at the time of this publication. However, if JSON-LD 1.1 adopts support for explicit base direction metadata as recommended by [STRING-META], the Thing Description format should be updated to take advantage of that feature.
JSON LD 1.1 has the i18n namespace and can be used to define a compound literal for strings with both language and direction metadata.
(citing
Thing
but globally in the document)https://w3c.github.io/wot-thing-description/#thing
https://w3c.github.io/wot-thing-description/#titles-descriptions-serialization-json
Natural language string values, notably
title
anddescription
(and their language map friendstitles
anddescriptions
) do not provide for base direction metadata.JSON LD 1.1 has the
i18n
namespace and can be used to define a compound literal for strings with both language and direction metadata.https://www.w3.org/TR/json-ld/#the-i18n-namespace
https://www.w3.org/TR/json-ld/#the-rdf-compoundliteral-class-and-the-rdf-language-and-rdf-direction-properties
The text was updated successfully, but these errors were encountered: