@@ -2444,7 +2444,7 @@ <h3>Algorithm</h3>
2444
2444
< li > If < var > element</ var > is < code > null</ code > , return < code > null</ code > .</ li >
2445
2445
< li class ="changed "> If < var > active property</ var > is < code > @default</ code > ,
2446
2446
initialize the {{JsonLdOptions/frameExpansion}} flag to < code > false</ code > .</ li >
2447
- < li class ="changed "> If < var > active property</ var > has a < a > term definition</ a > in < var > active context</ var >
2447
+ < li id =" alg-expand-property-scoped-context " class ="changed "> If < var > active property</ var > has a < a > term definition</ a > in < var > active context</ var >
2448
2448
with a < a > local context</ a > , initialize < var > property-scoped context</ var > to that < a > local context</ a > .</ li >
2449
2449
< li > If < var > element</ var > is a < a > scalar</ a > ,
2450
2450
< ol >
@@ -2498,7 +2498,7 @@ <h3>Algorithm</h3>
2498
2498
(where < a > entries</ a > are < span class ="changed "> < a data-lt ="IRI expanding "> IRI expanded</ a > </ span > ,
2499
2499
set < var > active context</ var > to < a > previous context</ a > from < var > active context</ var > ,
2500
2500
as the scope of a term-scoped < a > context</ a > does not apply when processing new < a > node objects</ a > .</ li >
2501
- < li id ="alg-expand-property-scoped-context " class ="changed "> If < var > property-scoped context</ var > is defined,
2501
+ < li id ="alg-expand-property-scoped-context2 " id =" alg-expand-property-scoped- context " class ="changed "> If < var > property-scoped context</ var > is defined,
2502
2502
set < var > active context</ var > to the result of the
2503
2503
< a href ="#context-processing-algorithm "> Context Processing algorithm</ a > ,
2504
2504
passing < var > active context</ var > , < var > property-scoped context</ var > as < var > local context</ var > ,
@@ -3033,9 +3033,20 @@ <h3>Algorithm</h3>
3033
3033
< var > nested value</ var > expands to < code > @value</ code > , an
3034
3034
< a data-link-for ="JsonLdErrorCode "> invalid @nest value</ a > error
3035
3035
has been detected and processing is aborted.</ li >
3036
- < li > Recursively repeat steps < a href ="#alg-expand-each-key-value "> 13</ a >
3036
+ < li > Recursively repeat steps
3037
+ < a href ="#alg-expand-property-scoped-context "> 3</ a > ,
3038
+ < a href ="#alg-expand-property-scoped-context2 "> 8</ a > ,
3039
+ < a href ="#alg-expand-each-key-value "> 13</ a > ,
3037
3040
and < a href ="#alg-expand-resolve-nest "> 14</ a >
3038
- using < var > nested value</ var > for < var > element</ var > .
3041
+ using < var > nesting-key</ var > for < var > active property</ var > , and
3042
+ < var > nested value</ var > for < var > element</ var > .
3043
+ < div class ="note "> Steps < a href ="#alg-expand-property-scoped-context "> 3</ a >
3044
+ and < a href ="#alg-expand-property-scoped-context2 "> 8</ a >
3045
+ may update the < var > active context</ var > based on a
3046
+ property-scoped context associated with < var > nesting-key</ var > .
3047
+ Updates to < var > active context</ var > are restricted to the
3048
+ recursive operation, and do not propogate to subsequent iterations
3049
+ on < var > nested value</ var > and < var > nesting-key</ var > .</ div >
3039
3050
< div class ="note "> By invoking steps < a href ="#alg-expand-each-key-value "> 13</ a >
3040
3051
and < a href ="#alg-expand-resolve-nest "> 14</ a > on < var > nested value</ var >
3041
3052
we are able to unfold arbitrary levels of nesting, with results being merged into
0 commit comments