diff --git a/spec/latest/json-ld-api/index.html b/spec/latest/json-ld-api/index.html index 8ead2baf2..de1553183 100644 --- a/spec/latest/json-ld-api/index.html +++ b/spec/latest/json-ld-api/index.html @@ -737,6 +737,9 @@

RDF Serialization/Deserialization

so long as the end result is indistinguishable from the result that would be obtained by the specification's algorithms.

+

In algorithm steps that describe operations on keywords, those steps + also apply to keyword aliases.

+

Implementers can partially check their level of conformance to this specification by successfully passing the test cases of the JSON-LD test suite [[JSON-LD-TESTS]]. Note, however, that passing all the tests in the test diff --git a/spec/latest/json-ld-framing/index.html b/spec/latest/json-ld-framing/index.html index 0f1190f6a..b9d8785da 100644 --- a/spec/latest/json-ld-framing/index.html +++ b/spec/latest/json-ld-framing/index.html @@ -806,6 +806,9 @@

Framing Named Graphs

so long as the end result is indistinguishable from the result that would be obtained by the specification's algorithms.

+

In algorithm steps that describe operations on keywords, those steps + also apply to keyword aliases.

+

Implementers can partially check their level of conformance to this specification by successfully passing the test cases of the JSON-LD test suite [[JSON-LD-TESTS]]. Note, however, that passing all the tests in the test diff --git a/test-suite/tests/frame-manifest.jsonld b/test-suite/tests/frame-manifest.jsonld index c3f3cbaae..0a8d4a5ac 100644 --- a/test-suite/tests/frame-manifest.jsonld +++ b/test-suite/tests/frame-manifest.jsonld @@ -86,7 +86,7 @@ "input": "frame-0010-in.jsonld", "frame": "frame-0010-frame.jsonld", "expect": "frame-0010-out.jsonld", - "option": {"pruneBlankNodeIdentifiers": false} + "option": {"specVersion": "json-ld-1.1", "processingMode": "json-ld-1.0"} }, { "@id": "#t0011", "@type": ["jld:PositiveEvaluationTest", "jld:FrameTest"], @@ -167,7 +167,7 @@ "input": "frame-0020-in.jsonld", "frame": "frame-0020-frame.jsonld", "expect": "frame-0020-out.jsonld", - "option": {"pruneBlankNodeIdentifiers": false} + "option": {"specVersion": "json-ld-1.1", "processingMode": "json-ld-1.0"} }, { "@id": "#t0021", "@type": ["jld:PositiveEvaluationTest", "jld:FrameTest"], @@ -176,7 +176,7 @@ "input": "frame-0021-in.jsonld", "frame": "frame-0021-frame.jsonld", "expect": "frame-0021-out.jsonld", - "option": {"pruneBlankNodeIdentifiers": false} + "option": {"specVersion": "json-ld-1.1", "processingMode": "json-ld-1.0"} }, { "@id": "#t0022", "@type": ["jld:PositiveEvaluationTest", "jld:FrameTest"], @@ -400,7 +400,7 @@ "input": "frame-0046-in.jsonld", "frame": "frame-0046-frame.jsonld", "expect": "frame-0046-out.jsonld", - "option": {"pruneBlankNodeIdentifiers": false, "specVersion": "json-ld-1.1"} + "option": {"specVersion": "json-ld-1.1", "processingMode": "json-ld-1.0"} }, { "@id": "#t0047", "@type": ["jld:PositiveEvaluationTest", "jld:FrameTest"], @@ -427,7 +427,7 @@ "input": "frame-0049-in.jsonld", "frame": "frame-0049-frame.jsonld", "expect": "frame-0049-out.jsonld", - "option": {"pruneBlankNodeIdentifiers": false, "specVersion": "json-ld-1.1"} + "option": {"specVersion": "json-ld-1.1", "processingMode": "json-ld-1.0"} }, { "@id": "#t0050", "@type": ["jld:PositiveEvaluationTest", "jld:FrameTest"], @@ -571,6 +571,15 @@ "frame": "frame-0049-frame.jsonld", "expect": "frame-p049-out.jsonld", "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} + }, { + "@id": "#tp050", + "@type": ["jld:PositiveEvaluationTest", "jld:FrameTest"], + "name": "Prune blank nodes with alias of @id", + "purpose": "If @id is aliased in a frame, an unreferenced blank node is still pruned.", + "input": "frame-p050-in.jsonld", + "frame": "frame-p050-frame.jsonld", + "expect": "frame-p050-out.jsonld", + "option": {"processingMode": "json-ld-1.1", "specVersion": "json-ld-1.1"} } ] } diff --git a/test-suite/tests/frame-p050-frame.jsonld b/test-suite/tests/frame-p050-frame.jsonld new file mode 100644 index 000000000..b0e6c1925 --- /dev/null +++ b/test-suite/tests/frame-p050-frame.jsonld @@ -0,0 +1,8 @@ +{ + "@context": { + "@vocab": "http://example/", + "id": "@id" + }, + "id": {}, + "name": {} +} diff --git a/test-suite/tests/frame-p050-in.jsonld b/test-suite/tests/frame-p050-in.jsonld new file mode 100644 index 000000000..91961fa50 --- /dev/null +++ b/test-suite/tests/frame-p050-in.jsonld @@ -0,0 +1,8 @@ +{ + "@context": { + "@vocab": "http://example/", + "id": "@id" + }, + "id": "_:bnode0", + "name": "foo" +} diff --git a/test-suite/tests/frame-p050-out.jsonld b/test-suite/tests/frame-p050-out.jsonld new file mode 100644 index 000000000..ebbf90188 --- /dev/null +++ b/test-suite/tests/frame-p050-out.jsonld @@ -0,0 +1,7 @@ +{ + "@context": { + "@vocab": "http://example/", + "id": "@id" + }, + "@graph": [{"name": "foo"}] +} \ No newline at end of file