diff --git a/tests/frame-manifest.html b/tests/frame-manifest.html index 50e4a05..b827d14 100644 --- a/tests/frame-manifest.html +++ b/tests/frame-manifest.html @@ -2249,6 +2249,38 @@

+
+Test t0069 Tests @json in framing +
+
+
+
id
+
#t0069
+
Type
+
jld:PositiveEvaluationTest, jld:FrameTest
+
Purpose
+
Test collection to better define what is expected when framing over a `@json` field..
+
input
+
+frame/0069-in.jsonld +
+
frame
+
+frame/0069-frame.jsonld +
+
expect
+
+frame/0069-out.jsonld +
+
Options
+
+
+
specVersion
+
json-ld-1.1
+
+
+
+
Test teo01 @embed true/false
diff --git a/tests/frame-manifest.jsonld b/tests/frame-manifest.jsonld index a4cc781..dc945da 100644 --- a/tests/frame-manifest.jsonld +++ b/tests/frame-manifest.jsonld @@ -611,6 +611,15 @@ "frame": "frame/0068-frame.jsonld", "expect": "frame/0068-out.jsonld", "option": {"specVersion": "json-ld-1.1"} + }, { + "@id": "#t0069", + "@type": ["jld:PositiveEvaluationTest", "jld:FrameTest"], + "name": "Tests @json in framing", + "purpose": "Test collection to better define what is expected when framing over a `@json` field..", + "input": "frame/0069-in.jsonld", + "frame": "frame/0069-frame.jsonld", + "expect": "frame/0069-out.jsonld", + "option": {"specVersion": "json-ld-1.1"} }, { "@id": "#teo01", "@type": ["jld:PositiveEvaluationTest", "jld:FrameTest"], diff --git a/tests/frame/0069-frame.jsonld b/tests/frame/0069-frame.jsonld new file mode 100644 index 0000000..9aee57b --- /dev/null +++ b/tests/frame/0069-frame.jsonld @@ -0,0 +1,10 @@ +{ + "@context": { + "ex": "http://example.org/vocab#", + "ex:info": {"@type": "@json"} + }, + "http://example.org/vocab#info": { + "@value": {}, + "@type": "@json" + } +} diff --git a/tests/frame/0069-in.jsonld b/tests/frame/0069-in.jsonld new file mode 100644 index 0000000..d30aaa0 --- /dev/null +++ b/tests/frame/0069-in.jsonld @@ -0,0 +1,12 @@ +{ + "@context": { + "ex": "http://example.org/vocab#", + "ex:info": {"@type": "@json"} + }, + "@id": "http://example.org/test/#library", + "@type": "ex:Library", + "ex:info": { + "author": "JOHN", + "pages": 200 + } +} diff --git a/tests/frame/0069-out.jsonld b/tests/frame/0069-out.jsonld new file mode 100644 index 0000000..d30aaa0 --- /dev/null +++ b/tests/frame/0069-out.jsonld @@ -0,0 +1,12 @@ +{ + "@context": { + "ex": "http://example.org/vocab#", + "ex:info": {"@type": "@json"} + }, + "@id": "http://example.org/test/#library", + "@type": "ex:Library", + "ex:info": { + "author": "JOHN", + "pages": 200 + } +}