@@ -1093,15 +1093,16 @@ <h3>Algorithm</h3>
1093
1093
1094
1094
< p > This algorithm specifies how a new < a > active context</ a > is updated
1095
1095
with a < a > local context</ a > . The algorithm takes two required
1096
- < span class ="changed "> and three optional</ span >
1097
- input variables.
1096
+ < span class ="changed "> and four optional</ span > input variables.
1098
1097
The required inputs are an < var > active context</ var > and a < var > local context</ var > .
1099
1098
The optional inputs are an < a > array</ a > < var > remote contexts</ var > ,
1100
1099
defaulting to a new empty < a > array</ a > , which is used to detect cyclical context inclusions,
1101
- < span class ="changed "> , < var > from property</ var > , defaulting to < code > false</ code > ,
1100
+ < span class ="changed ">
1101
+ < var > override protected</ var > , defaulting to < code > false</ code > ,
1102
1102
which is used to allow changes to protected terms,
1103
- and < var > from type</ var > , defaulting to < code > false</ code > ,
1104
- which is used to set the default for < var > propagated</ var >
1103
+ < var > protected</ var > , defaulting to < code > false</ code > ,
1104
+ which provides a defeault value for < code > @protected</ code > ,
1105
+ and < var > propagate</ var > , defaulting to < code > true</ code >
1105
1106
to mark < a > term definitions</ a > associated with non-propagated < a > contexts</ a > .</ span > .
1106
1107
</ p >
1107
1108
@@ -1111,7 +1112,6 @@ <h3>Algorithm</h3>
1111
1112
< li class ="changed "> If < var > local context</ var > is an object containing the member < code > @propagate</ code > ,
1112
1113
its value MUST be < a > boolean</ a > < code > true</ code > or < code > false</ code > ,
1113
1114
set < var > propagate</ var > to that value.</ li >
1114
- < li class ="changed "> Otherwise, set < var > propagate</ var > to < var > from type</ var > .</ li >
1115
1115
< li class ="changed "> If < var > propagate</ var > is < code > false</ code > , and < var > result</ var >
1116
1116
does not have a < a > previous context</ a > , set < a > previous context</ a >
1117
1117
in < var > result</ var > to < var > active context</ var > .</ li >
@@ -1123,14 +1123,14 @@ <h3>Algorithm</h3>
1123
1123
< ol >
1124
1124
< li > If < var > context</ var > is < code > null</ code > :
1125
1125
< ol >
1126
- < li class ="changed "> If < var > from property </ var > is < code > false</ code > and < var > active context</ var >
1126
+ < li class ="changed "> If < var > override protected </ var > is < code > false</ code > and < var > active context</ var >
1127
1127
contains any < a > protected</ a > < a > term definitions</ a > ,
1128
1128
an < a data-link-for ="JsonLdErrorCode "> invalid context nullification</ a >
1129
1129
has been detected and processing is aborted.</ li >
1130
1130
< li > Otherwise, set < var > result</ var > to a
1131
1131
newly-initialized < var > active context</ var > ,
1132
1132
< span class ="changed "> setting < a > previous context</ a > in < var > result</ var >
1133
- to the previous value of < var > result</ var > if < var > from type </ var > is < code > true </ code > </ span > .
1133
+ to the previous value of < var > result</ var > if < var > propagate </ var > is < code > false </ code > </ span > .
1134
1134
Continue with the next < var > context</ var > .
1135
1135
< span class ="note "> In [[[JSON-LD]]], the < a > base IRI</ a > was given
1136
1136
a default value here; this is now described conditionally
@@ -1195,6 +1195,9 @@ <h3>Algorithm</h3>
1195
1195
to < code > json-ld-1.1</ code > , if not already set.</ li >
1196
1196
</ ol >
1197
1197
</ li >
1198
+ < li class ="changed "> If < var > context</ var > has a < code > @protected</ code > < a > member</ a > ,
1199
+ set the value of < var > protected</ var > from its value.</ li >
1200
+ </ li >
1198
1201
< li class ="changed "> If < var > context</ var > has a < code > @source</ code > < a > member</ a > :
1199
1202
< ol >
1200
1203
< li > If < a > processing mode</ a > is < code > json-ld-1.0</ code > ,
@@ -1206,7 +1209,8 @@ <h3>Algorithm</h3>
1206
1209
< li > Otherwise, set < var > result</ var > to the result of recursively calling this algorithm,
1207
1210
passing < var > result</ var > for < var > active context</ var > ,
1208
1211
the value of < code > @source</ code > for < var > local context</ var > ,
1209
- and a copy of < var > remote contexts</ var > .
1212
+ a copy of < var > remote contexts</ var > ,
1213
+ and < var > protected</ var > .
1210
1214
</ li >
1211
1215
</ ol >
1212
1216
</ li >
@@ -1294,9 +1298,10 @@ <h3>Algorithm</h3>
1294
1298
passing < var > result</ var > for < var > active context</ var > ,
1295
1299
< var > context</ var > for < var > local context</ var > , < var > key</ var > ,
1296
1300
< var > defined</ var > ,
1297
- < span class ="changed "> the value of the < code > @protected</ code >
1298
- member from < var > context</ var > , if any, for < var > protected</ var > </ span > ,
1299
- < var > from property</ var > , and < var > from type</ var > .</ li >
1301
+ < span class ="changed ">
1302
+ < var > protected</ var > , < var > override protected</ var > , and < var > propagate</ var >
1303
+ </ span > .
1304
+ </ li >
1300
1305
</ ol >
1301
1306
</ li >
1302
1307
< li > Return < var > result</ var > .</ li >
@@ -1347,9 +1352,9 @@ <h3>Algorithm</h3>
1347
1352
a < var > term</ var > , and a map < var > defined</ var > .
1348
1353
< span class ="changed "> The optional inputs are
1349
1354
< var > protected</ var > which defaults to < code > false</ code > ,
1350
- < var > from property </ var > , defaulting to < code > false</ code > ,
1355
+ < var > override protected </ var > , defaulting to < code > false</ code > ,
1351
1356
which is used to allow changes to protected terms,
1352
- and < var > from type </ var > , defaulting to < code > false </ code > .</ span > .
1357
+ and < var > propagate </ var > , defaulting to < code > true </ code > .</ span > .
1353
1358
</ p >
1354
1359
< ol >
1355
1360
< li > If < var > defined</ var > contains the < a > member</ a > < var > term</ var > and the associated
@@ -1565,7 +1570,7 @@ <h3>Algorithm</h3>
1565
1570
< code > @context</ code > < a > member</ a > , which is treated as a < var > local context</ var > .</ li >
1566
1571
< li > Invoke the < a href ="#context-processing-algorithm "> Context Processing algorithm</ a >
1567
1572
using the < var > active context</ var > , < var > context</ var > as < var > local context</ var > ,
1568
- and < code > true</ code > for < var > from property </ var > .
1573
+ and < code > true</ code > for < var > override protected </ var > .
1569
1574
If any error is detected, an
1570
1575
< a data-link-for ="JsonLdErrorCode "> invalid scoped context</ a > error
1571
1576
has been detected and processing is aborted.
@@ -1619,7 +1624,7 @@ <h3>Algorithm</h3>
1619
1624
< code class ="changed "> @prefix</ code > , or < code > @type</ code > , an
1620
1625
< a data-link-for ="JsonLdErrorCode "> invalid term definition</ a > error has
1621
1626
been detected and processing is aborted.</ li >
1622
- < li class ="changed "> If < var > from property </ var > is < code > false</ code >
1627
+ < li class ="changed "> If < var > override protected </ var > is < code > false</ code >
1623
1628
and < var > previous definition</ var > exists and is protected;
1624
1629
< ol >
1625
1630
< li > If < var > definition</ var > is not the same as < var > previous definition</ var >
@@ -1941,7 +1946,7 @@ <h3>Algorithm</h3>
1941
1946
< a href ="#context-processing-algorithm "> Context Processing algorithm</ a > ,
1942
1947
passing < var > active context</ var > , the value of the
1943
1948
< var > term</ var > 's < a > local context</ a > as < var > local context</ var > ,
1944
- < span class ="changed "> and < code > true</ code > for < var > from type </ var > </ span > .</ li >
1949
+ < span class ="changed "> and < code > true</ code > for < var > propagate </ var > </ span > .</ li >
1945
1950
</ ol >
1946
1951
</ li >
1947
1952
< li > Initialize two empty < a class ="changed "> dictionaries</ a > , < var > result</ var >
@@ -2624,7 +2629,7 @@ <h3>Algorithm</h3>
2624
2629
< a href ="#context-processing-algorithm "> Context Processing algorithm</ a > ,
2625
2630
passing < var > active context</ var > , the value of the
2626
2631
< var > active property</ var > 's < a > local context</ a > as < var > local context</ var > ,
2627
- < span class ="changed "> and < code > true</ code > for < var > from property </ var > </ span > .</ li >
2632
+ < span class ="changed "> and < code > true</ code > for < var > override protected </ var > </ span > .</ li >
2628
2633
< li > Set < var > inverse context</ var > using the
2629
2634
< a href ="#inverse-context-creation "> Inverse Context Creation algorithm</ a >
2630
2635
using < var > active context</ var > .</ li >
@@ -2658,7 +2663,7 @@ <h3>Algorithm</h3>
2658
2663
into it's compacted form using the < a href ="#iri-compaction "> IRI Compaction algorithm</ a > ,
2659
2664
passing < var > active context</ var > , < var > inverse context</ var > ,
2660
2665
< var > expanded type</ var > for < var > var</ var > , < code > true</ code > for < var > vocab</ var > ,
2661
- and < code > true </ code > for < var > from type </ var > .
2666
+ and < code > false </ code > for < var > propagate </ var > .
2662
2667
Then, for each < var > term</ var >
2663
2668
in < var > compacted types</ var > ordered lexicographically:
2664
2669
< ol >
0 commit comments