@@ -926,7 +926,7 @@ <h2>Context Processing Algorithm</h2>
926
926
< span class ="changed "> an optional < a > context</ a > </ span > ,
927
927
< span class ="changed "> an optional < dfn > nest value</ dfn > ,</ span >
928
928
< span class ="changed "> an optional < dfn > prefix flag</ dfn > ,</ span >
929
- < span class ="changed "> an optional < dfn > context id </ dfn > , used to flag this as a sealed term,</ span >
929
+ < span class ="changed "> a < dfn > sealed </ dfn > , used to mark this as a sealed term,</ span >
930
930
and an optional < dfn > container mapping</ dfn > .
931
931
A < a > term definition</ a > can not only be used to map a < a > term</ a >
932
932
to an IRI, but also to map a < a > term</ a > to a < a > keyword</ a > ,
@@ -994,35 +994,24 @@ <h3>Algorithm</h3>
994
994
995
995
< p > This algorithm specifies how a new < a > active context</ a > is updated
996
996
with a < a > local context</ a > . The algorithm takes two required
997
- < span class ="changed "> and two optional</ span >
997
+ < span class ="changed "> and one optional</ span >
998
998
input variables.
999
999
The required inputs inputs are an < var > active context</ var > and a < var > local context</ var > .
1000
- < span class ="changed "> The optional inputs are < var > from term</ var > </ span > , which defaults to < code > null</ code > ,
1001
- and an < a > array</ a > < var > remote contexts</ var > which is used to detect cyclical context inclusions,
1002
- which defaults to a new empty < a > array</ a > .</ p >
1000
+ The optional input is an < a > array</ a > < var > remote contexts</ var > ,
1001
+ defaulting to a new empty < a > array</ a > , which is used to detect cyclical context inclusions.</ p >
1003
1002
1004
1003
< ol >
1005
1004
< li > Initialize < var > result</ var > to the result of cloning
1006
1005
< var > active context</ var > .</ li >
1007
- < li > Initialize < var > current seal</ var > to the value of < a > context id</ a >
1008
- from the term definition for < var > from term</ var > ,
1009
- if such a term definition exists.</ li >
1010
1006
< li > If < var > local context</ var > is not an < a > array</ a > ,
1011
1007
set it to an < a > array</ a > containing only
1012
1008
< var > local context</ var > .</ li >
1013
1009
< li >
1014
1010
For each item < var > context</ var > in < var > local context</ var > :
1015
1011
< ol >
1016
- < li class ="changed "> Initialize < var > context id</ var > to a unique identifier.
1017
- < span class ="note "> < var > context id</ var > is used to identify sealed terms
1018
- created from the same context.</ span > </ li >
1019
- < li > If < var > context</ var > is < code > null</ code >
1020
- < span class ="changed "> and < var > current seal</ var > is < code > null</ code > </ span > ,
1021
- set < var > result</ var > to a
1012
+ < li > If < var > context</ var > is < code > null</ code > , set < var > result</ var > to a
1022
1013
newly-initialized < var > active context</ var > and continue with the
1023
1014
next < var > context</ var > .
1024
- < span class ="changed "> If < var > current seal</ var > is not < code > null</ code > ,
1025
- processors SHOULD issue a warning that an attempt was made to clear a sealed context.</ span >
1026
1015
< span class ="note "> In JSON-LD 1.0, the < a > base IRI</ a > was given
1027
1016
a default value here; this is now described conditionally
1028
1017
in < a href ="#the-application-programming-interface " class ="sectionRef "> </ a > .</ span > </ li >
@@ -1146,9 +1135,8 @@ <h3>Algorithm</h3>
1146
1135
passing < var > result</ var > for < var > active context</ var > ,
1147
1136
< var > context</ var > for < var > local context</ var > , < var > key</ var > ,
1148
1137
< var > defined</ var > ,
1149
- < span class ="changed "> the value of the < code > @sealed</ code >
1150
- member from < var > context</ var > , if any, for < var > sealed</ var > </ span > ,
1151
- < var > current seal</ var > , and < var > context id</ var > .</ li >
1138
+ < span class ="changed "> and the value of the < code > @sealed</ code >
1139
+ member from < var > context</ var > , if any, for < var > sealed</ var > </ span > .</ li >
1152
1140
</ ol >
1153
1141
</ li >
1154
1142
< li > Return < var > result</ var > .</ li >
@@ -1193,14 +1181,12 @@ <h3>Overview</h3>
1193
1181
< section class ="algorithm ">
1194
1182
< h3 > Algorithm</ h3 >
1195
1183
1196
- < p > The algorithm has four required < span class ="changed "> and three optional</ span > inputs.
1184
+ < p > The algorithm has four required < span class ="changed "> and one optional</ span > inputs.
1197
1185
The required inputs are
1198
1186
an < var > active context</ var > , a < var > local context</ var > ,
1199
1187
a < var > term</ var > , and a map < var > defined</ var > .
1200
- < span class ="changed "> The optional inputs are
1201
- < var > sealed</ var > which defaults to < code > false</ code > ,
1202
- < var > current seal</ var > , which defaults to < code > null</ code > ,
1203
- and < var > context id</ var > , which defaults to < code > null</ code > .</ span > </ p >
1188
+ < span class ="changed "> The optional input is
1189
+ < var > sealed</ var > which defaults to < code > false</ code > .</ span > </ p >
1204
1190
< ol >
1205
1191
< li > If < var > defined</ var > contains the < a > member</ a > < var > term</ var > and the associated
1206
1192
value is < code > true</ code > (indicating that the
@@ -1225,8 +1211,7 @@ <h3>Algorithm</h3>
1225
1211
< a data-link-for ="JsonLdErrorCode "> keyword redefinition</ a >
1226
1212
error has been detected and processing is aborted.</ li >
1227
1213
< li class ="changed "> If the < var > active context</ var > has an existing
1228
- < a > term definition</ a > for < var > term</ var > with a non-null < a > context id</ a > ,
1229
- and < var > current seal</ var > is not < code > null</ code > , processing is aborted;
1214
+ < a > term definition</ a > for < var > term</ var > which is sealed, processing is aborted;
1230
1215
processors SHOULD issue a warning that an attempt was made to redefine a sealed term.</ li >
1231
1216
< li > Otherwise, remove any existing < a > term definition</ a > for < var > term</ var > in
1232
1217
< var > active context</ var > .</ li >
@@ -1248,8 +1233,7 @@ <h3>Algorithm</h3>
1248
1233
< li class ="changed "> If the < code > @sealed</ code > member in < var > value</ var >
1249
1234
is < code > true</ code > , or there is no < code > @sealed</ code > member in < var > value</ var >
1250
1235
and the < var > sealed</ var > parameter is < code > true</ code > ,
1251
- set the < a > context id</ a > in < var > definition</ var >
1252
- to the value of the < var > context id</ var > parameter.</ li >
1236
+ set the < a > sealed</ a > in < var > definition</ var > to true.</ li >
1253
1237
< li > If < var > value</ var > contains the < a > member</ a > < code > @type</ code > :
1254
1238
< ol >
1255
1239
< li > Initialize < var > type</ var > to the value associated with the
@@ -1710,9 +1694,8 @@ <h3>Algorithm</h3>
1710
1694
< li > If < var > element</ var > contains the < a > member</ a > < code > @context</ code > , set
1711
1695
< var > active context</ var > to the result of the
1712
1696
< a href ="#context-processing-algorithm "> Context Processing algorithm</ a > ,
1713
- passing < var > active context</ var > , the value of the
1714
- < code > @context</ code > < a > member</ a > as < var > local context</ var > ,
1715
- < span class ="changed "> and < var > active property</ var > as < var > from term</ var > </ span > .</ li >
1697
+ passing < var > active context</ var > and the value of the
1698
+ < code > @context</ code > < a > member</ a > as < var > local context</ var > .</ li >
1716
1699
< li class ="changed "> For each < var > key</ var > /< var > value</ var > pair in < var > element</ var >
1717
1700
where < var > key</ var > expands to < code > @type</ code > using the
1718
1701
< a href ="#iri-expansion "> IRI Expansion algorithm</ a > ,
@@ -1724,9 +1707,8 @@ <h3>Algorithm</h3>
1724
1707
has a < a > local context</ a > , set < var > active context</ var > to the result
1725
1708
to the result of the
1726
1709
< a href ="#context-processing-algorithm "> Context Processing algorithm</ a > ,
1727
- passing < var > active context</ var > , the value of the
1728
- < var > term</ var > 's < a > local context</ a > as < var > local context</ var > ,
1729
- < span class ="changed "> and < var > active property</ var > as < var > from term</ var > </ span > .</ li >
1710
+ passing < var > active context</ var > and the value of the
1711
+ < var > term</ var > 's < a > local context</ a > as < var > local context</ var > .</ li >
1730
1712
</ ol >
1731
1713
</ li >
1732
1714
< li > Initialize an empty < a class ="changed "> dictionary</ a > , < var > result</ var > .</ li >
@@ -1914,10 +1896,8 @@ <h3>Algorithm</h3>
1914
1896
has a < a > local context</ a > , set < var > term context</ var > to the result of the
1915
1897
< a href ="#context-processing-algorithm "> Context Processing algorithm</ a > ,
1916
1898
passing < var > active context</ var > and the value of the
1917
- < var > key</ var > 's < a > local context</ a > as < var > local context</ var > .
1918
- < span class ="changed note "> The < var > from term</ var > is not passed,
1919
- as scoped contexts may redefine sealed terms.</ span >
1920
- Otherwise, set < var > term context</ var > to < var > active context</ var > .</ li >
1899
+ < var > key</ var > 's < a > local context</ a > as < var > local context</ var > . Otherwise,
1900
+ set < var > term context</ var > to < var > active context</ var > .</ li >
1921
1901
< li > Set < var > container mapping</ var > to < var > key</ var > 's < a > container mapping</ a > in
1922
1902
< var class ="changed "> term context</ var > .</ li >
1923
1903
< li > If < var > container mapping</ var > < span class ="changed "> includes</ span > < code > @language</ code > and
@@ -1971,11 +1951,9 @@ <h3>Algorithm</h3>
1971
1951
< var > term context</ var > has a < a > local context</ a > , set
1972
1952
< var > map context</ var > to the result of the < a
1973
1953
href ="#context-processing-algorithm "> Context Processing
1974
- algorithm</ a > , passing < var > term context</ var > as < var > active context</ var > , the
1954
+ algorithm</ a > , passing < var > term context</ var > as < var > active context</ var > and the
1975
1955
value of the < var > index</ var > 's < a > local context</ a > as
1976
- < var > local context</ var > ,
1977
- < span class ="changed "> and < var > active property</ var > as < var > from term</ var > </ span > .
1978
- Otherwise, set < var > map context</ var >
1956
+ < var > local context</ var > . Otherwise, set < var > map context</ var >
1979
1957
to < var > term context</ var > .</ li >
1980
1958
< li > Set < var > expanded index</ var > to the result of using the
1981
1959
< a href ="#iri-expansion "> IRI Expansion algorithm</ a > ,
@@ -2349,9 +2327,8 @@ <h3>Algorithm</h3>
2349
2327
< ol >
2350
2328
< li > Set < var > active context</ var > to the result of the
2351
2329
< a href ="#context-processing-algorithm "> Context Processing algorithm</ a > ,
2352
- passing < var > active context</ var > , the value of the
2353
- < var > active property</ var > 's < a > local context</ a > as < var > local context</ var > ,
2354
- < span class ="changed "> and < var > active property</ var > as < var > from term</ var > </ span > .</ li >
2330
+ passing < var > active context</ var > and the value of the
2331
+ < var > active property</ var > 's < a > local context</ a > as < var > local context</ var > .</ li >
2355
2332
< li > Set < var > inverse context</ var > using the
2356
2333
< a href ="#inverse-context-creation "> Inverse Context Creation algorithm</ a >
2357
2334
using < var > active context</ var > .</ li >
@@ -2420,9 +2397,8 @@ <h3>Algorithm</h3>
2420
2397
< ol >
2421
2398
< li > Set < var > active context</ var > to the result of the
2422
2399
< a href ="#context-processing-algorithm "> Context Processing algorithm</ a > ,
2423
- passing < var > active context</ var > , the value of < var > term</ var > 's
2424
- < a > local context</ a > as < var > local context</ var >
2425
- < span class ="changed "> and < var > active property</ var > as < var > from term</ var > </ span > .</ li >
2400
+ passing < var > active context</ var > and the value of < var > term</ var > 's
2401
+ < a > local context</ a > as < var > local context</ var > .</ li >
2426
2402
< li > Set < var > inverse context</ var > using the
2427
2403
< a href ="#inverse-context-creation "> Inverse Context Creation algorithm</ a >
2428
2404
using < var > active context</ var > .</ li >
0 commit comments