@@ -1052,10 +1052,6 @@ <h3>Overview</h3>
1052
1052
a remote context. We dereference the remote context and replace < a > context</ a >
1053
1053
with the value of the < code > @context</ code > < a > entry</ a > of the top-level object in the
1054
1054
retrieved JSON-LD document.
1055
- < span class ="changed "> If the result is an HTML document,
1056
- we attempt to extract JSON-LD from the first < a data-cite ="HTML/scripting.html#the-script-element "> script element</ a >
1057
- of type < code > application/ld+json;profile=http://www.w3.org/ns/json-ld#context</ code >
1058
- or < code > application/ld+json</ code > , if no context profile exists.</ span >
1059
1055
If there's no such < a > entry</ a > , an
1060
1056
< a data-link-for ="JsonLdErrorCode "> invalid remote context</ a >
1061
1057
has been detected. Otherwise, we process < a > context</ a > by recursively using
@@ -1167,7 +1163,8 @@ <h3>Algorithm</h3>
1167
1163
< li class ="changed "> Otherwise, dereference < var > context</ var > using
1168
1164
the < a > LoadDocumentCallback</ a > , passing < var > context</ var >
1169
1165
for < a data-link-for ="LoadDocumentCallback "> url</ a > ,
1170
- and < code > http://www.w3.org/ns/json-ld#context</ code > for < a data-link-for ="LoadDocumentOptions "> profile</ a > </ li >
1166
+ and < code > http://www.w3.org/ns/json-ld#context</ code > for < a data-link-for ="LoadDocumentOptions "> profile</ a >
1167
+ and for < a data-link-for ="LoadDocumentOptions "> requestProfile</ a > .</ li >
1171
1168
< li > If < var > context</ var > cannot be dereferenced,
1172
1169
< span class ="changed "> or cannot be transformed into the < a > internal representation</ a > </ span > ,
1173
1170
a < a data-link-for ="JsonLdErrorCode "> loading remote context failed</ a >
@@ -1223,7 +1220,8 @@ <h3>Algorithm</h3>
1223
1220
< li > Dereference < var > import</ var > using
1224
1221
the < a > LoadDocumentCallback</ a > , passing < var > import</ var >
1225
1222
for < a data-link-for ="LoadDocumentCallback "> url</ a > ,
1226
- and < code > http://www.w3.org/ns/json-ld#context</ code > for < a data-link-for ="LoadDocumentOptions "> profile</ a > </ li >
1223
+ and < code > http://www.w3.org/ns/json-ld#context</ code > for < a data-link-for ="LoadDocumentOptions "> profile</ a >
1224
+ and for < a data-link-for ="LoadDocumentOptions "> requestProfile</ a > .</ li >
1227
1225
< li > If < var > import</ var > cannot be dereferenced,
1228
1226
< span > or cannot be transformed into the < a > internal representation</ a > </ span > ,
1229
1227
a < a data-link-for ="JsonLdErrorCode "> loading remote context failed</ a >
@@ -5800,7 +5798,7 @@ <h3>LoadDocumentCallback</h3>
5800
5798
< dd > The URL of the remote document or context to load.</ dd >
5801
5799
< dt class ="changed "> < dfn data-lt ="LoadDocumentCallback-options " data-lt-noDefault > options</ dfn > </ dt >
5802
5800
< dd class ="changed "> A set of options to determine
5803
- the behavior of the callback. See < a href ="loaddocumentoptions " class ="sectionRef "> </ a > .</ dd >
5801
+ the behavior of the callback. See < a href ="# loaddocumentoptions " class ="sectionRef "> </ a > .</ dd >
5804
5802
</ dl >
5805
5803
5806
5804
< p class ="changed "> The following algorithm describes the default callback and places
@@ -5820,7 +5818,9 @@ <h3>LoadDocumentCallback</h3>
5820
5818
5821
5819
< p > Processors MAY include other media types using a < code > +json</ code > suffix as defined in [[RFC6839]].</ p >
5822
5820
5823
- < p > A < a > full Processor</ a > MUST include < code > text/html</ code > at any preference level.</ p > </ li >
5821
+ < p > A < a > full Processor</ a > MUST include < code > text/html</ code > at any preference level,
5822
+ unless < a data-link-for ="LoadDocumentOptions "> requestProfile</ a > is `http://www.w3.org/ns/json-ld#context`.</ p >
5823
+ </ li >
5824
5824
< li > Set < var > documentUrl</ var > to the location of the retrieved resource
5825
5825
considering redirections (exclusive of HTTP status < code > 303</ code > "See Other" redirects
5826
5826
as discussed in [[?cooluris]]).</ li >
@@ -6344,10 +6344,6 @@ <h2>Changes since JSON-LD Community Group Final Report</h2>
6344
6344
< li > < a > Term definitions</ a > with keys which are of the form of a < a > compact IRI</ a > or < a > absolute IRI</ a > MUST NOT
6345
6345
expand to an < a > IRI</ a > other than the expansion of the key itself.</ li >
6346
6346
< li > Define different processor modes: < a > pure JSON Processor</ a > , < a > event-based JSON processor</ a > , and < a > full Processor</ a > .</ li >
6347
- < li > For a < a > full Processor</ a > , if a retrieved context URL returns an HTML document, the first script element
6348
- of type < code > application/ld+json;profile=http://www.w3.org/ns/json-ld#context</ code > ,
6349
- or < code > application/ld+json</ code > is used as the context for further processing.
6350
- This allows a mechanism for documenting the content of a context using HTML.</ li >
6351
6347
< li > Consolidate < a > RemoteDocument</ a > processing into the < a > LoadDocumentCallback</ a >
6352
6348
including variations on HTML processing.</ li >
6353
6349
< li > The < a href ="#iri-compaction "> IRI compaction algorithm</ a > may generate an error if the result is an
0 commit comments