@@ -1061,7 +1061,9 @@ <h3>Overview</h3>
1061
1061
has been detected. Otherwise, we process < a > context</ a > by recursively using
1062
1062
this algorithm ensuring that there is no cyclical reference.</ p >
1063
1063
1064
- < p > If < a > context</ a > is a < a class ="changed "> map</ a > , we first update the
1064
+ < p > If < a > context</ a > is a < a class ="changed "> map</ a > ,
1065
+ it is a < a data-cite ="JSON-LD11#dfn-context-definition "> context definition</ a > .
1066
+ We first update the
1065
1067
< a > base IRI</ a > , the < a > vocabulary mapping</ a > , < a > processing mode</ a > , and the
1066
1068
< a > default language</ a > by processing three specific keywords:
1067
1069
< code > @base</ code > , < code > @vocab</ code > , < code > @version</ code > , and < code > @language</ code > .
@@ -1074,7 +1076,7 @@ <h3>Overview</h3>
1074
1076
< p class ="changed "> If < a > context</ a > is not to be propagated,
1075
1077
a reference to the < var > previous context</ var > is retained so that
1076
1078
it may be rolled back when a new < a > node object</ a > is entered.
1077
- By default, all contexts are propagated, other than type-scoped contexts.</ p >
1079
+ By default, all contexts are propagated, other than < a > type-scoped contexts</ a > .</ p >
1078
1080
1079
1081
< p > Then, for every other < a > entry</ a > in < a > local context</ a > , we update
1080
1082
the < a > term definition</ a > in < var > result</ var > . Since
@@ -1183,6 +1185,7 @@ <h3>Algorithm</h3>
1183
1185
< li > If < var > context</ var > is not a < a class ="changed "> map</ a > , an
1184
1186
< a data-link-for ="JsonLdErrorCode "> invalid local context</ a >
1185
1187
error has been detected and processing is aborted.</ li >
1188
+ < li > Otherwise, < var > context</ var > is a < a data-cite ="JSON-LD11#dfn-context-definition "> context definition</ a > .</ li >
1186
1189
< li class ="changed "> If < var > context</ var > has an < code > @version</ code > < a > entry</ a > :
1187
1190
< ol >
1188
1191
< li > If the associated value is not < code > 1.1</ code > ,
@@ -1217,7 +1220,7 @@ <h3>Algorithm</h3>
1217
1220
characters are treated in URI references, per
1218
1221
< a data-cite ="RFC3987#section-6.5 "> section 6.5</ a >
1219
1222
of [[RFC3987]].</ li >
1220
- < li > Otherwise, dereference < var > import</ var > using
1223
+ < li > Dereference < var > import</ var > using
1221
1224
the < a > LoadDocumentCallback</ a > , passing < var > import</ var >
1222
1225
for < a data-link-for ="LoadDocumentCallback "> url</ a > ,
1223
1226
and < code > http://www.w3.org/ns/json-ld#context</ code > for < a data-link-for ="LoadDocumentOptions "> profile</ a > </ li >
@@ -1227,7 +1230,8 @@ <h3>Algorithm</h3>
1227
1230
error has been detected and processing is aborted.</ li >
1228
1231
< li > If the dereferenced document has no
1229
1232
top-level < a > map</ a > with an < code > @context</ code > < a > entry</ a > ,
1230
- or if the value of < code > @context</ code > is not an < a > map</ a > ,
1233
+ or if the value of < code > @context</ code > is not a < a data-cite ="JSON-LD11#dfn-context-definition "> context definition</ a >
1234
+ (i.e., it is not an < a > map</ a > ),
1231
1235
an < a data-link-for ="JsonLdErrorCode "> invalid remote context</ a >
1232
1236
has been detected and processing is aborted; otherwise,
1233
1237
set < var > import context</ var > to the value of that < a > entry</ a > .</ li >
@@ -1897,15 +1901,15 @@ <h3>Algorithm</h3>
1897
1901
< li class ="changed "> If < var > active property</ var > is < code > @default</ code > ,
1898
1902
set the < a data-link-for ="JsonLdOptions "> frameExpansion</ a > flag to < code > false</ code > .</ li >
1899
1903
< li class ="changed "> If < var > active property</ var > has a < a > term definition</ a > in < var > active context</ var >
1900
- has a < a > local context</ a > , set < var > property scoped context</ var > to the that < a > local context</ a > .</ li >
1904
+ has a < a > local context</ a > , set < var > property- scoped context</ var > to the that < a > local context</ a > .</ li >
1901
1905
< li > If < var > element</ var > is a < a > scalar</ a > ,
1902
1906
< ol >
1903
1907
< li > If < var > active property</ var > is < code > null</ code > or < code > @graph</ code > ,
1904
1908
drop the free-floating < a > scalar</ a > by returning < code > null</ code > .</ li >
1905
- < li class ="changed "> If < var > property scoped context</ var > is defined,
1909
+ < li class ="changed "> If < var > property- scoped context</ var > is defined,
1906
1910
set < var > active context</ var > to the result of the
1907
1911
< a href ="#context-processing-algorithm "> Context Processing algorithm</ a > ,
1908
- passing < var > active context</ var > and < var > property scoped context</ var > as < var > local context</ var > .</ li >
1912
+ passing < var > active context</ var > and < var > property- scoped context</ var > as < var > local context</ var > .</ li >
1909
1913
< li > Return the result of the
1910
1914
< a href ="#value-expansion "> Value Expansion algorithm</ a > , passing the
1911
1915
< var > active context</ var > , < var > active property</ var > , and
@@ -1946,18 +1950,18 @@ <h3>Algorithm</h3>
1946
1950
and < var > element</ var > does not consist of a single entry expanding to < code > @id</ code > ,
1947
1951
set < var > active context</ var > to < a > previous context</ a > from < var > active context</ var > ,
1948
1952
as the scope of a term-scoped < a > context</ a > does not apply when processing new < a > node objects</ a > .</ li >
1949
- < li class ="changed "> If < var > property scoped context</ var > is defined,
1953
+ < li class ="changed "> If < var > property- scoped context</ var > is defined,
1950
1954
set < var > active context</ var > to the result of the
1951
1955
< a href ="#context-processing-algorithm "> Context Processing algorithm</ a > ,
1952
- passing < var > active context</ var > and < var > property scoped context</ var > as < var > local context</ var > .</ li >
1956
+ passing < var > active context</ var > and < var > property- scoped context</ var > as < var > local context</ var > .</ li >
1953
1957
< li > If < var > element</ var > contains the < a > entry</ a > < code > @context</ code > , set
1954
1958
< var > active context</ var > to the result of the
1955
1959
< a href ="#context-processing-algorithm "> Context Processing algorithm</ a > ,
1956
1960
passing < var > active context</ var > and the value of the
1957
1961
< code > @context</ code > < a > entry</ a > as < var > local context</ var > .</ li >
1958
- < li class ="changed "> Set < var > type scoped context</ var > to < var > active context</ var > .
1962
+ < li class ="changed "> Set < var > type- scoped context</ var > to < var > active context</ var > .
1959
1963
This is used for expanding values that may be relevant to any previous
1960
- type-scoped < a > context</ a > .</ li >
1964
+ < a > type-scoped context</ a > .</ li >
1961
1965
< li class ="changed "> For each < var > key</ var > /< var > value</ var > pair in < var > element</ var >
1962
1966
where < var > key</ var > expands to < code > @type</ code > using the
1963
1967
< a href ="#iri-expansion "> IRI Expansion algorithm</ a > ,
@@ -2024,7 +2028,7 @@ <h3>Algorithm</h3>
2024
2028
error has been detected and processing is aborted. Otherwise,
2025
2029
set < var > expanded value</ var > to the result of using the
2026
2030
< a href ="#iri-expansion "> IRI Expansion algorithm</ a > , passing
2027
- < var class ="changed "> type scoped context</ var > for < var > active context</ var > ,
2031
+ < var class ="changed "> type- scoped context</ var > for < var > active context</ var > ,
2028
2032
< code > true</ code > for < var > vocab</ var > ,
2029
2033
and < code > true</ code > for < var > document relative</ var > to expand the < var > value</ var >
2030
2034
or each of its items.
@@ -2610,9 +2614,9 @@ <h3>Algorithm</h3>
2610
2614
< span class ="changed "> If not passed, the both flags are set to < code > false</ code > </ span > .</ p >
2611
2615
2612
2616
< ol >
2613
- < li class ="changed "> Set < var > type scoped context</ var > to < var > active context</ var > .
2617
+ < li class ="changed "> Set < var > type- scoped context</ var > to < var > active context</ var > .
2614
2618
This is used for compacting values that may be relevant to any previous
2615
- type-scoped < a > context</ a > .</ li >
2619
+ < a > type-scoped context</ a > .</ li >
2616
2620
< li > If < var > element</ var > is a < a > scalar</ a > , it is already in its most
2617
2621
compact form, so simply return < var > element</ var > .</ li >
2618
2622
< li > If < var > element</ var > is an < a > array</ a > :
@@ -2694,13 +2698,13 @@ <h3>Algorithm</h3>
2694
2698
Then, for each < var > term</ var >
2695
2699
in < var > compacted types</ var > ordered lexicographically:
2696
2700
< ol >
2697
- < li > If the < a > term definition</ a > for < var > term</ var > in < var > type scoped context</ var > has a
2701
+ < li > If the < a > term definition</ a > for < var > term</ var > in < var > type- scoped context</ var > has a
2698
2702
< a > local context</ a > :
2699
2703
< ol >
2700
2704
< li > Set < var > active context</ var > to the result of the
2701
2705
< a href ="#context-processing-algorithm "> Context Processing algorithm</ a > ,
2702
2706
passing < var > active context</ var > and the value of < var > term</ var > 's
2703
- < a > local context</ a > in < var > type scoped context</ var > as < var > local context</ var > .</ li >
2707
+ < a > local context</ a > in < var > type- scoped context</ var > as < var > local context</ var > .</ li >
2704
2708
< li > Set < var > inverse context</ var > using the
2705
2709
< a href ="#inverse-context-creation "> Inverse Context Creation algorithm</ a >
2706
2710
using < var > active context</ var > .</ li >
@@ -2734,7 +2738,7 @@ <h3>Algorithm</h3>
2734
2738
< li > If < var > expanded value</ var > is a < a > string</ a > ,
2735
2739
then initialize < var > compacted value</ var > to the result
2736
2740
of using the < a href ="#iri-compaction "> IRI Compaction algorithm</ a > ,
2737
- passing < var > type scoped context</ var > for < var > active context</ var > , < var > inverse context</ var > ,
2741
+ passing < var > type- scoped context</ var > for < var > active context</ var > , < var > inverse context</ var > ,
2738
2742
< var > expanded value</ var > for < var > var</ var > ,
2739
2743
and < code > true</ code > for < var > vocab</ var > .</ li >
2740
2744
< li > Otherwise, < var > expanded value</ var > must be a
@@ -2747,7 +2751,7 @@ <h3>Algorithm</h3>
2747
2751
< ol >
2748
2752
< li > Set < var > term</ var > to the result of
2749
2753
of using the < a href ="#iri-compaction "> IRI Compaction algorithm</ a > ,
2750
- passing < var > type scoped context</ var > for < var > active context</ var > , < var > inverse context</ var > ,
2754
+ passing < var > type- scoped context</ var > for < var > active context</ var > , < var > inverse context</ var > ,
2751
2755
< var > expanded type</ var > for < var > var</ var > , and
2752
2756
< code > true</ code > for < var > vocab</ var > .</ li >
2753
2757
< li > Append < var > term</ var > , to < var > compacted value</ var > .</ li >
@@ -6299,7 +6303,7 @@ <h2>Changes since JSON-LD Community Group Final Report</h2>
6299
6303
< a > absolute IRI</ a > which could be confused with a compact IRI in the
6300
6304
< a > active context</ a > .</ li >
6301
6305
< li > By default, all contexts are propagated when traversing < a > node objects</ a > , other than
6302
- type-scoped contexts. This can be controlled using the < code > @propagate</ code >
6306
+ < a > type-scoped contexts</ a > . This can be controlled using the < code > @propagate</ code >
6303
6307
< a > entry</ a > in a < a > local context</ a > .</ li >
6304
6308
< li > A context may contain a < code > @import</ code > < a > entry</ a > used to reference a remote context
6305
6309
within a context, allowing < code > JSON-LD 1.1</ code > features to be added to contexts originally
0 commit comments