diff --git a/index.html b/index.html index 7164c0c5..c46ee130 100644 --- a/index.html +++ b/index.html @@ -5809,7 +5809,7 @@
application/ld+json
@@ -5824,10 +5824,17 @@ 303
"See Other" redirects
as discussed in [[?cooluris]]).application/json
+ nor any media type with a +json
suffix as defined in [[RFC6839]],
+ and the response has an HTTP Link Header [[RFC8288]] using the alternate
link relation
+ with type `application/ld+json`,
+ set url to the associated href
relative to the previous url
+ and restart the algorithm from step 2,
+ ensuring that documentUrl is set to the original url.application/json
or any media type with a +json
suffix as defined in [[RFC6839]]
except application/ld+json
,
- and the response has an HTTP Link Header [[RFC8259]] using the http://www.w3.org/ns/json-ld#context
link relation,
+ and the response has an HTTP Link Header [[RFC8288]] using the http://www.w3.org/ns/json-ld#context
link relation,
set contextUrl to the associated href
.
If multiple HTTP Link Headers using the http://www.w3.org/ns/json-ld#context
link relation are found,
the promise is rejected with a JsonLdError whose code is set to multiple context link headers
@@ -5972,7 +5979,7 @@
http://www.w3.org/ns/json-ld#context
link relation
in the response.
If the response's Content-Type is application/ld+json
,
@@ -6190,7 +6197,7 @@ http://www.w3.org/ns/json-ld#context
link relation
have been detected.This content should be skipped
+ + \ No newline at end of file diff --git a/tests/remote-doc/la01-out.jsonld b/tests/remote-doc/la01-out.jsonld new file mode 100644 index 00000000..a5d1e558 --- /dev/null +++ b/tests/remote-doc/la01-out.jsonld @@ -0,0 +1,3 @@ +[{ + "http://example.org/content": [{"@value": "alternate"}] +}] \ No newline at end of file diff --git a/tests/remote-doc/la02-alternate.jsonld b/tests/remote-doc/la02-alternate.jsonld new file mode 100644 index 00000000..672295e9 --- /dev/null +++ b/tests/remote-doc/la02-alternate.jsonld @@ -0,0 +1,6 @@ +{ + "@context": { + "@vocab": "http://example.org/" + }, + "content": "alternate" +} \ No newline at end of file diff --git a/tests/remote-doc/la02-in.jsonld b/tests/remote-doc/la02-in.jsonld new file mode 100644 index 00000000..05fcb19a --- /dev/null +++ b/tests/remote-doc/la02-in.jsonld @@ -0,0 +1,6 @@ +{ + "@context": { + "@vocab": "http://example.org/" + }, + "content": "not skipped" +} \ No newline at end of file diff --git a/tests/remote-doc/la02-out.jsonld b/tests/remote-doc/la02-out.jsonld new file mode 100644 index 00000000..e2c788c0 --- /dev/null +++ b/tests/remote-doc/la02-out.jsonld @@ -0,0 +1,3 @@ +[{ + "http://example.org/content": [{"@value": "not skipped"}] +}] \ No newline at end of file diff --git a/tests/remote-doc/la03-alternate.json b/tests/remote-doc/la03-alternate.json new file mode 100644 index 00000000..672295e9 --- /dev/null +++ b/tests/remote-doc/la03-alternate.json @@ -0,0 +1,6 @@ +{ + "@context": { + "@vocab": "http://example.org/" + }, + "content": "alternate" +} \ No newline at end of file diff --git a/tests/remote-doc/la03-in.json b/tests/remote-doc/la03-in.json new file mode 100644 index 00000000..05fcb19a --- /dev/null +++ b/tests/remote-doc/la03-in.json @@ -0,0 +1,6 @@ +{ + "@context": { + "@vocab": "http://example.org/" + }, + "content": "not skipped" +} \ No newline at end of file diff --git a/tests/remote-doc/la03-out.jsonld b/tests/remote-doc/la03-out.jsonld new file mode 100644 index 00000000..e2c788c0 --- /dev/null +++ b/tests/remote-doc/la03-out.jsonld @@ -0,0 +1,3 @@ +[{ + "http://example.org/content": [{"@value": "not skipped"}] +}] \ No newline at end of file diff --git a/tests/remote-doc/la04-alternate.jsonld b/tests/remote-doc/la04-alternate.jsonld new file mode 100644 index 00000000..672295e9 --- /dev/null +++ b/tests/remote-doc/la04-alternate.jsonld @@ -0,0 +1,6 @@ +{ + "@context": { + "@vocab": "http://example.org/" + }, + "content": "alternate" +} \ No newline at end of file diff --git a/tests/remote-doc/la04-in.json b/tests/remote-doc/la04-in.json new file mode 100644 index 00000000..05fcb19a --- /dev/null +++ b/tests/remote-doc/la04-in.json @@ -0,0 +1,6 @@ +{ + "@context": { + "@vocab": "http://example.org/" + }, + "content": "not skipped" +} \ No newline at end of file diff --git a/tests/remote-doc/la04-out.jsonld b/tests/remote-doc/la04-out.jsonld new file mode 100644 index 00000000..e2c788c0 --- /dev/null +++ b/tests/remote-doc/la04-out.jsonld @@ -0,0 +1,3 @@ +[{ + "http://example.org/content": [{"@value": "not skipped"}] +}] \ No newline at end of file diff --git a/tests/remote-doc/la05-alternate.jsonld b/tests/remote-doc/la05-alternate.jsonld new file mode 100644 index 00000000..8039161a --- /dev/null +++ b/tests/remote-doc/la05-alternate.jsonld @@ -0,0 +1,7 @@ +{ + "@context": { + "@vocab": "http://example.org/" + }, + "@id": "", + "content": "alternate" +} \ No newline at end of file diff --git a/tests/remote-doc/la05-in.html b/tests/remote-doc/la05-in.html new file mode 100644 index 00000000..4fb2995e --- /dev/null +++ b/tests/remote-doc/la05-in.html @@ -0,0 +1,17 @@ + + +This content should be skipped
+ + \ No newline at end of file diff --git a/tests/remote-doc/la05-out.jsonld b/tests/remote-doc/la05-out.jsonld new file mode 100644 index 00000000..55700a0e --- /dev/null +++ b/tests/remote-doc/la05-out.jsonld @@ -0,0 +1,4 @@ +[{ + "@id": "https://w3c.github.io/json-ld-api/tests/remote-doc/la05-in.html", + "http://example.org/content": [{"@value": "alternate"}] +}] \ No newline at end of file