@@ -5185,7 +5185,7 @@ <h3>Using the Document Base for the Default Vocabulary</h3>
5185
5185
"title": "http://example.org/title",
5186
5186
"publisher": "http://example.org/publisher",
5187
5187
####...####
5188
- ****"@language": "ar",
5188
+ ****"@language": "ar-EG ",
5189
5189
"@direction": "rtl"****
5190
5190
},
5191
5191
****"title": "HTML و CSS: تصميم و إنشاء مواقع الويب",
@@ -5198,8 +5198,8 @@ <h3>Using the Document Base for the Default Vocabulary</h3>
5198
5198
data-result-for="Setting the default base direction of a JSON-LD document-compacted">
5199
5199
<!--
5200
5200
[{
5201
- "http://example.org/title": [{"@value": ****"HTML و CSS: تصميم و إنشاء مواقع الويب"****, "@language": "ar", ****"@direction": "rtl"****}],
5202
- "http://example.org/publisher": [{"@value": ****"مكتبة"****, "@language": "ar", ****"@direction": "rtl"****}]
5201
+ "http://example.org/title": [{"@value": ****"HTML و CSS: تصميم و إنشاء مواقع الويب"****, "@language": "ar-EG ", ****"@direction": "rtl"****}],
5202
+ "http://example.org/publisher": [{"@value": ****"مكتبة"****, "@language": "ar-EG ", ****"@direction": "rtl"****}]
5203
5203
}]
5204
5204
-->
5205
5205
</pre>
@@ -5208,8 +5208,8 @@ <h3>Using the Document Base for the Default Vocabulary</h3>
5208
5208
data-to-rdf>
5209
5209
<thead><tr><th>Subject</th><th>Property</th><th>Value</th><th>Language</th><th>Direction</th></tr></thead>
5210
5210
<tbody>
5211
- <tr><td>_:b0</td><td>http://example.org/title</td><td lang="ar" dir="rtl">HTML و CSS: تصميم و إنشاء مواقع الويب</td><td>ar</td><td>rtl</td></tr>
5212
- <tr><td>_:b0</td><td>http://example.org/publisher</td><td lang="ar" dir="rtl">مكتبة</td><td>ar</td><td>rtl</td></tr>
5211
+ <tr><td>_:b0</td><td>http://example.org/title</td><td lang="ar-EG " dir="rtl">HTML و CSS: تصميم و إنشاء مواقع الويب</td><td>ar-EG </td><td>rtl</td></tr>
5212
+ <tr><td>_:b0</td><td>http://example.org/publisher</td><td lang="ar-EG " dir="rtl">مكتبة</td><td>ar-EG </td><td>rtl</td></tr>
5213
5213
</tbody>
5214
5214
</table>
5215
5215
<pre class="turtle nohighlight"
@@ -5222,8 +5222,8 @@ <h3>Using the Document Base for the Default Vocabulary</h3>
5222
5222
5223
5223
# Note that this version drops the base direction.
5224
5224
[
5225
- ex:title ****"HTML و CSS: تصميم و إنشاء مواقع الويب"****@ar;
5226
- ex:publisher ****"مكتبة"****@ar
5225
+ ex:title ****"HTML و CSS: تصميم و إنشاء مواقع الويب"****@ar-EG ;
5226
+ ex:publisher ****"مكتبة"****@ar-EG
5227
5227
] .
5228
5228
-->
5229
5229
</pre>
@@ -5239,8 +5239,8 @@ <h3>Using the Document Base for the Default Vocabulary</h3>
5239
5239
5240
5240
# Note that this version preserves the base direction using a datatype.
5241
5241
[
5242
- ex:title ****"HTML و CSS: تصميم و إنشاء مواقع الويب"^^i18n:ar_rtl ****;
5243
- ex:publisher ****"مكتبة"^^i18n:ar_rtl ****
5242
+ ex:title ****"HTML و CSS: تصميم و إنشاء مواقع الويب"^^i18n:ar-EG_rtl ****;
5243
+ ex:publisher ****"مكتبة"^^i18n:ar-EG_rtl ****
5244
5244
] .
5245
5245
-->
5246
5246
</pre>
@@ -5257,23 +5257,23 @@ <h3>Using the Document Base for the Default Vocabulary</h3>
5257
5257
[
5258
5258
ex:title ****[
5259
5259
rdf:value "HTML و CSS: تصميم و إنشاء مواقع الويب",
5260
- rdf:language "ar",
5260
+ rdf:language "ar-EG ",
5261
5261
rdf:direction "rtl"
5262
5262
]****;
5263
5263
ex:publisher ****[
5264
5264
rdf:value "مكتبة",
5265
- rdf:language "ar",
5265
+ rdf:language "ar-EG ",
5266
5266
rdf:direction "rtl"
5267
5267
]****
5268
5268
] .
5269
5269
-->
5270
5270
</pre>
5271
5271
</aside>
5272
5272
5273
- <p>The example above would associate the <code>ar</code> language tag
5273
+ <p>The example above would associate the <code>ar-EG </code> language tag
5274
5274
and "rtl" base direction
5275
5275
with the two <a>strings</a>
5276
- <em lang="ar" dir="rtl">HTML و CSS: تصميم و إنشاء مواقع الويب</em> and <em lang="ar" dir="rtl">مكتبة</em>.
5276
+ <em lang="ar-EG " dir="rtl">HTML و CSS: تصميم و إنشاء مواقع الويب</em> and <em lang="ar-EG " dir="rtl">مكتبة</em>.
5277
5277
The <a>default base direction</a> applies to all
5278
5278
<a>string</a> values that are not <a href="#type-coercion">type coerced</a>.</p>
5279
5279
@@ -5288,7 +5288,7 @@ <h3>Using the Document Base for the Default Vocabulary</h3>
5288
5288
####...####
5289
5289
****"@version": 1.1,****
5290
5290
"@vocab": "http://example.com/",
5291
- "@language": "ar",
5291
+ "@language": "ar-EG ",
5292
5292
"@direction": "rtl",
5293
5293
"details": {
5294
5294
****"@context": {
@@ -5312,7 +5312,7 @@ <h3>Using the Document Base for the Default Vocabulary</h3>
5312
5312
"@context": {
5313
5313
####...####
5314
5314
"ex": "http://example.com/vocab/",
5315
- "@language": "ar",
5315
+ "@language": "ar-EG ",
5316
5316
"@direction": "rtl",
5317
5317
"publisher": { "@id": "ex:name", ****"@direction": null**** },
5318
5318
"title": { "@id": "ex:title" },
@@ -5333,8 +5333,8 @@ <h3>Using the Document Base for the Default Vocabulary</h3>
5333
5333
data-to-rdf>
5334
5334
<thead><tr><th>Subject</th><th>Property</th><th>Value</th><th>Language</th><th>Direction</th></tr></thead>
5335
5335
<tbody>
5336
- <tr><td>_:b0</td><td>ex:publisher</td><td lang="ar">مكتبة</td><td>ar</td><td>`null`</td></tr>
5337
- <tr><td>_:b0</td><td>ex:title</td><td lang="ar" dir="rtl">HTML و CSS: تصميم و إنشاء مواقع الويب</td><td>ar</td><td>`rtl`</td></tr>
5336
+ <tr><td>_:b0</td><td>ex:publisher</td><td lang="ar-EG ">مكتبة</td><td>ar-EG </td><td>`null`</td></tr>
5337
+ <tr><td>_:b0</td><td>ex:title</td><td lang="ar-EG " dir="rtl">HTML و CSS: تصميم و إنشاء مواقع الويب</td><td>ar-EG </td><td>`rtl`</td></tr>
5338
5338
<tr><td>_:b0</td><td>ex:title</td><td lang="en" dir="ltr">HTML and CSS: Design and Build Websites</td><td>en</td><td>`ltr`</td></tr>
5339
5339
</tbody>
5340
5340
</table>
@@ -5353,7 +5353,7 @@ <h3>Using the Document Base for the Default Vocabulary</h3>
5353
5353
{
5354
5354
"@context": {
5355
5355
####...####
5356
- "@language": "ar",
5356
+ "@language": "ar-EG ",
5357
5357
"@direction": "rtl"
5358
5358
},
5359
5359
"title": "HTML و CSS: تصميم و إنشاء مواقع الويب",
@@ -12847,8 +12847,8 @@ <h3>Serializing/Deserializing RDF</h3>
12847
12847
the value of `@language`, if any, followed by an underscore (`"_"`) followed
12848
12848
by the value of `@direction`.</p>
12849
12849
12850
- <p>The following example shows two statements with literal values of `i18n:ar_rtl `,
12851
- which encodes the language tag `ar` and the base direction `rtl`.</p>
12850
+ <p>The following example shows two statements with literal values of `i18n:ar-EG_rtl `,
12851
+ which encodes the language tag `ar-EG ` and the base direction `rtl`.</p>
12852
12852
<pre class="turtle-dt nohighlight"
12853
12853
data-content-type="text/turtle"
12854
12854
data-transform="updateExample"
@@ -12860,8 +12860,8 @@ <h3>Serializing/Deserializing RDF</h3>
12860
12860
12861
12861
# Note that this version preserves the base direction using a non-standard datatype.
12862
12862
[
12863
- ex:title ****"HTML و CSS: تصميم و إنشاء مواقع الويب"^^i18n:ar_rtl ****;
12864
- ex:publisher ****"مكتبة"^^i18n:ar_rtl ****
12863
+ ex:title ****"HTML و CSS: تصميم و إنشاء مواقع الويب"^^i18n:ar-EG_rtl ****;
12864
+ ex:publisher ****"مكتبة"^^i18n:ar-EG_rtl ****
12865
12865
] .
12866
12866
-->
12867
12867
</pre>
@@ -12895,7 +12895,7 @@ <h3>Serializing/Deserializing RDF</h3>
12895
12895
value objects containing `@direction` and optionally `@language`.</p>
12896
12896
12897
12897
<p>The following example shows two statements with compoud literals
12898
- representing strings with the <a>language tag</a> `ar` and <a>base direction</a> `rtl`.</p>
12898
+ representing strings with the <a>language tag</a> `ar-EG ` and <a>base direction</a> `rtl`.</p>
12899
12899
<pre class="turtle-dt nohighlight"
12900
12900
data-content-type="text/turtle"
12901
12901
data-transform="updateExample"
@@ -12908,12 +12908,12 @@ <h3>Serializing/Deserializing RDF</h3>
12908
12908
[
12909
12909
ex:title ****[
12910
12910
rdf:value "HTML و CSS: تصميم و إنشاء مواقع الويب",
12911
- rdf:language "ar",
12911
+ rdf:language "ar-EG ",
12912
12912
rdf:direction "rtl"
12913
12913
]****;
12914
12914
ex:publisher ****[
12915
12915
rdf:value "مكتبة",
12916
- rdf:language "ar",
12916
+ rdf:language "ar-EG ",
12917
12917
rdf:direction "rtl"
12918
12918
]****
12919
12919
] .
0 commit comments