Skip to content

Commit f08ced8

Browse files
authored
Revert context processing order for property
It is property scoped contexts, followed by embedded, followed by type scoped contexts. See w3c/json-ld-api#61 (comment) for why.
1 parent b696e4c commit f08ced8

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

index.html

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3225,22 +3225,22 @@ <h3>Using the Document Base for the Default Vocabulary</h3>
32253225
"Type1": {
32263226
"@id": "http://example.com/vocab/Type1",
32273227
"@context": {
3228-
"term2": "http://example.com/vocab/term2"
3229-
#### ↑ Scoped context for "Type1" defines term2
3228+
"term2": "http://example.com/vocab/term3"
3229+
#### ↑ Scoped context for "Type1" defines term3
32303230
},
32313231
},
32323232
"Type2": {
32333233
"@id": "http://example.com/vocab/Type2",
32343234
"@context": {
3235-
"term3": "http://example.com/vocab/term3"
3236-
#### ↑ Scoped context for "Type2" defines term3
3235+
"term3": "http://example.com/vocab/term4"
3236+
#### ↑ Scoped context for "Type2" defines term4
32373237
},
32383238
},
32393239
},
32403240
"property": {
32413241
"@context": {
3242-
"term4": "http://example.com/vocab/term4"
3243-
#### ↑ Embedded context defines term4
3242+
"term2": "http://example.com/vocab/term2"
3243+
#### ↑ Embedded context defines term2
32443244
},
32453245
"@type": ["Type2", "Type1"],
32463246
"term1": "a",
@@ -3252,9 +3252,9 @@ <h3>Using the Document Base for the Default Vocabulary</h3>
32523252
-->
32533253
</pre>
32543254

3255-
<p>Contexts are processed depending on how their defined. A scoped context
3256-
for a property is processed first, followed by the scoped contexts for any
3257-
types, in the appropriate order, followed lastly by any embedded context.
3255+
<p>Contexts are processed depending on how they are defined. A scoped context
3256+
for a property is processed first, followed by any embedded context,
3257+
followed lastly by the scoped contexts for any types, in the appropriate order.
32583258
The previous example is logically equivalent to the following:</p>
32593259
<pre data-transform="updateExample">
32603260
<!--
@@ -3271,13 +3271,13 @@ <h3>Using the Document Base for the Default Vocabulary</h3>
32713271
#### ↑ Scoped context for "property" defines term1
32723272
}, {
32733273
"term2": "http://example.com/vocab/term2"
3274-
#### ↑ Scoped context for "Type1" defines term2
3274+
#### ↑ Embedded context defines term2
32753275
}, {
32763276
"term3": "http://example.com/vocab/term3"
3277-
#### ↑ Scoped context for "Type2" defines term3
3277+
#### ↑ Scoped context for "Type1" defines term3
32783278
}, {
32793279
"term4": "http://example.com/vocab/term4"
3280-
#### ↑ Embedded context defines term4
3280+
#### ↑ Scoped context for "Type2" defines term4
32813281
}],
32823282
"@type": ["Type2", "Type1"],
32833283
"term1": "a",

0 commit comments

Comments
 (0)