@@ -5080,7 +5080,10 @@ <h3>Using the Document Base for the Default Vocabulary</h3>
5080
5080
example but consolidates all values in a single property. To access the
5081
5081
value in a specific language in a programming language supporting dot-notation
5082
5082
accessors for object properties, a developer may use the
5083
- <code>property.language</code> pattern. For example, to access the occupation
5083
+ <code>property.language</code> pattern
5084
+ (when languages are limited to the primary language sub-tag,
5085
+ and do not depend on other sub-tags, such as `"en-us"`).
5086
+ For example, to access the occupation
5084
5087
in English, a developer would use the following code snippet:
5085
5088
<code>obj.occupation.en</code>.</p>
5086
5089
@@ -7426,7 +7429,9 @@ <h3>Using the Document Base for the Default Vocabulary</h3>
7426
7429
<strong>de</strong> keys are implicitly associated with their respective
7427
7430
values by the <a>JSON-LD Processor</a>. This allows a developer to
7428
7431
access the German version of the <strong>label</strong> using the
7429
- following code snippet: <code>obj.label.de</code>.</p>
7432
+ following code snippet: <code>obj.label.de</code>,
7433
+ which, again, is only appropriate when languages are limited to the
7434
+ primary language sub-tag and do not depend on other sub-tags, such as `"en-us"`.</p>
7430
7435
7431
7436
<p>The value of <code>@container</code> can also
7432
7437
be an array containing both <code>@language</code> and <code>@set</code>.
0 commit comments