@@ -5190,7 +5190,7 @@ <h3>Using the Document Base for the Default Vocabulary</h3>
5190
5190
"title": "http://example.org/title",
5191
5191
"publisher": "http://example.org/publisher",
5192
5192
####...####
5193
- ****"@language": "ar",
5193
+ ****"@language": "ar-EG ",
5194
5194
"@direction": "rtl"****
5195
5195
},
5196
5196
****"title": "HTML و CSS: تصميم و إنشاء مواقع الويب",
@@ -5203,8 +5203,8 @@ <h3>Using the Document Base for the Default Vocabulary</h3>
5203
5203
data-result-for="Setting the default base direction of a JSON-LD document-compacted">
5204
5204
<!--
5205
5205
[{
5206
- "http://example.org/title": [{"@value": ****"HTML و CSS: تصميم و إنشاء مواقع الويب"****, "@language": "ar", ****"@direction": "rtl"****}],
5207
- "http://example.org/publisher": [{"@value": ****"مكتبة"****, "@language": "ar", ****"@direction": "rtl"****}]
5206
+ "http://example.org/title": [{"@value": ****"HTML و CSS: تصميم و إنشاء مواقع الويب"****, "@language": "ar-EG ", ****"@direction": "rtl"****}],
5207
+ "http://example.org/publisher": [{"@value": ****"مكتبة"****, "@language": "ar-EG ", ****"@direction": "rtl"****}]
5208
5208
}]
5209
5209
-->
5210
5210
</pre>
@@ -5213,8 +5213,8 @@ <h3>Using the Document Base for the Default Vocabulary</h3>
5213
5213
data-to-rdf>
5214
5214
<thead><tr><th>Subject</th><th>Property</th><th>Value</th><th>Language</th><th>Direction</th></tr></thead>
5215
5215
<tbody>
5216
- <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>
5217
- <tr><td>_:b0</td><td>http://example.org/publisher</td><td lang="ar" dir="rtl">مكتبة</td><td>ar</td><td>rtl</td></tr>
5216
+ <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>
5217
+ <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>
5218
5218
</tbody>
5219
5219
</table>
5220
5220
<pre class="turtle nohighlight"
@@ -5227,8 +5227,8 @@ <h3>Using the Document Base for the Default Vocabulary</h3>
5227
5227
5228
5228
# Note that this version drops the base direction.
5229
5229
[
5230
- ex:title ****"HTML و CSS: تصميم و إنشاء مواقع الويب"****@ar;
5231
- ex:publisher ****"مكتبة"****@ar
5230
+ ex:title ****"HTML و CSS: تصميم و إنشاء مواقع الويب"****@ar-EG ;
5231
+ ex:publisher ****"مكتبة"****@ar-EG
5232
5232
] .
5233
5233
-->
5234
5234
</pre>
@@ -5244,8 +5244,8 @@ <h3>Using the Document Base for the Default Vocabulary</h3>
5244
5244
5245
5245
# Note that this version preserves the base direction using a datatype.
5246
5246
[
5247
- ex:title ****"HTML و CSS: تصميم و إنشاء مواقع الويب"^^i18n:ar_rtl ****;
5248
- ex:publisher ****"مكتبة"^^i18n:ar_rtl ****
5247
+ ex:title ****"HTML و CSS: تصميم و إنشاء مواقع الويب"^^i18n:ar-EG_rtl ****;
5248
+ ex:publisher ****"مكتبة"^^i18n:ar-EG_rtl ****
5249
5249
] .
5250
5250
-->
5251
5251
</pre>
@@ -5262,23 +5262,23 @@ <h3>Using the Document Base for the Default Vocabulary</h3>
5262
5262
[
5263
5263
ex:title ****[
5264
5264
rdf:value "HTML و CSS: تصميم و إنشاء مواقع الويب",
5265
- rdf:language "ar",
5265
+ rdf:language "ar-EG ",
5266
5266
rdf:direction "rtl"
5267
5267
]****;
5268
5268
ex:publisher ****[
5269
5269
rdf:value "مكتبة",
5270
- rdf:language "ar",
5270
+ rdf:language "ar-EG ",
5271
5271
rdf:direction "rtl"
5272
5272
]****
5273
5273
] .
5274
5274
-->
5275
5275
</pre>
5276
5276
</aside>
5277
5277
5278
- <p>The example above would associate the <code>ar</code> language tag
5278
+ <p>The example above would associate the <code>ar-EG </code> language tag
5279
5279
and "rtl" base direction
5280
5280
with the two <a>strings</a>
5281
- <em lang="ar" dir="rtl">HTML و CSS: تصميم و إنشاء مواقع الويب</em> and <em lang="ar" dir="rtl">مكتبة</em>.
5281
+ <em lang="ar-EG " dir="rtl">HTML و CSS: تصميم و إنشاء مواقع الويب</em> and <em lang="ar-EG " dir="rtl">مكتبة</em>.
5282
5282
The <a>default base direction</a> applies to all
5283
5283
<a>string</a> values that are not <a href="#type-coercion">type coerced</a>.</p>
5284
5284
@@ -5293,7 +5293,7 @@ <h3>Using the Document Base for the Default Vocabulary</h3>
5293
5293
####...####
5294
5294
****"@version": 1.1,****
5295
5295
"@vocab": "http://example.com/",
5296
- "@language": "ar",
5296
+ "@language": "ar-EG ",
5297
5297
"@direction": "rtl",
5298
5298
"details": {
5299
5299
****"@context": {
@@ -5317,7 +5317,7 @@ <h3>Using the Document Base for the Default Vocabulary</h3>
5317
5317
"@context": {
5318
5318
####...####
5319
5319
"ex": "http://example.com/vocab/",
5320
- "@language": "ar",
5320
+ "@language": "ar-EG ",
5321
5321
"@direction": "rtl",
5322
5322
"publisher": { "@id": "ex:name", ****"@direction": null**** },
5323
5323
"title": { "@id": "ex:title" },
@@ -5338,8 +5338,8 @@ <h3>Using the Document Base for the Default Vocabulary</h3>
5338
5338
data-to-rdf>
5339
5339
<thead><tr><th>Subject</th><th>Property</th><th>Value</th><th>Language</th><th>Direction</th></tr></thead>
5340
5340
<tbody>
5341
- <tr><td>_:b0</td><td>ex:publisher</td><td lang="ar">مكتبة</td><td>ar</td><td>`null`</td></tr>
5342
- <tr><td>_:b0</td><td>ex:title</td><td lang="ar" dir="rtl">HTML و CSS: تصميم و إنشاء مواقع الويب</td><td>ar</td><td>`rtl`</td></tr>
5341
+ <tr><td>_:b0</td><td>ex:publisher</td><td lang="ar-EG ">مكتبة</td><td>ar-EG </td><td>`null`</td></tr>
5342
+ <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>
5343
5343
<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>
5344
5344
</tbody>
5345
5345
</table>
@@ -5358,7 +5358,7 @@ <h3>Using the Document Base for the Default Vocabulary</h3>
5358
5358
{
5359
5359
"@context": {
5360
5360
####...####
5361
- "@language": "ar",
5361
+ "@language": "ar-EG ",
5362
5362
"@direction": "rtl"
5363
5363
},
5364
5364
"title": "HTML و CSS: تصميم و إنشاء مواقع الويب",
@@ -12852,8 +12852,8 @@ <h3>Serializing/Deserializing RDF</h3>
12852
12852
the value of `@language`, if any, followed by an underscore (`"_"`) followed
12853
12853
by the value of `@direction`.</p>
12854
12854
12855
- <p>The following example shows two statements with literal values of `i18n:ar_rtl `,
12856
- which encodes the language tag `ar` and the base direction `rtl`.</p>
12855
+ <p>The following example shows two statements with literal values of `i18n:ar-EG_rtl `,
12856
+ which encodes the language tag `ar-EG ` and the base direction `rtl`.</p>
12857
12857
<pre class="turtle-dt nohighlight"
12858
12858
data-content-type="text/turtle"
12859
12859
data-transform="updateExample"
@@ -12865,8 +12865,8 @@ <h3>Serializing/Deserializing RDF</h3>
12865
12865
12866
12866
# Note that this version preserves the base direction using a non-standard datatype.
12867
12867
[
12868
- ex:title ****"HTML و CSS: تصميم و إنشاء مواقع الويب"^^i18n:ar_rtl ****;
12869
- ex:publisher ****"مكتبة"^^i18n:ar_rtl ****
12868
+ ex:title ****"HTML و CSS: تصميم و إنشاء مواقع الويب"^^i18n:ar-EG_rtl ****;
12869
+ ex:publisher ****"مكتبة"^^i18n:ar-EG_rtl ****
12870
12870
] .
12871
12871
-->
12872
12872
</pre>
@@ -12900,7 +12900,7 @@ <h3>Serializing/Deserializing RDF</h3>
12900
12900
value objects containing `@direction` and optionally `@language`.</p>
12901
12901
12902
12902
<p>The following example shows two statements with compoud literals
12903
- representing strings with the <a>language tag</a> `ar` and <a>base direction</a> `rtl`.</p>
12903
+ representing strings with the <a>language tag</a> `ar-EG ` and <a>base direction</a> `rtl`.</p>
12904
12904
<pre class="turtle-dt nohighlight"
12905
12905
data-content-type="text/turtle"
12906
12906
data-transform="updateExample"
@@ -12913,12 +12913,12 @@ <h3>Serializing/Deserializing RDF</h3>
12913
12913
[
12914
12914
ex:title ****[
12915
12915
rdf:value "HTML و CSS: تصميم و إنشاء مواقع الويب",
12916
- rdf:language "ar",
12916
+ rdf:language "ar-EG ",
12917
12917
rdf:direction "rtl"
12918
12918
]****;
12919
12919
ex:publisher ****[
12920
12920
rdf:value "مكتبة",
12921
- rdf:language "ar",
12921
+ rdf:language "ar-EG ",
12922
12922
rdf:direction "rtl"
12923
12923
]****
12924
12924
] .
0 commit comments