diff --git a/tests/compact-manifest.jsonld b/tests/compact-manifest.jsonld index 0743df70..394a7ee2 100644 --- a/tests/compact-manifest.jsonld +++ b/tests/compact-manifest.jsonld @@ -1800,6 +1800,15 @@ "context": "compact/m022-context.jsonld", "expect": "compact/m022-out.jsonld", "option": {"specVersion": "json-ld-1.1"} + }, { + "@id": "#tm023", + "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], + "name": "compact IRI with container: @type", + "purpose": "Uses @none when compacted item is an IRI string", + "input": "compact/m023-in.jsonld", + "context": "compact/m023-context.jsonld", + "expect": "compact/m023-out.jsonld", + "option": {"specVersion": "json-ld-1.1"} }, { "@id": "#tn001", "@type": ["jld:PositiveEvaluationTest", "jld:CompactTest"], diff --git a/tests/compact/m023-context.jsonld b/tests/compact/m023-context.jsonld new file mode 100644 index 00000000..ed57cde2 --- /dev/null +++ b/tests/compact/m023-context.jsonld @@ -0,0 +1,9 @@ +{ + "@context": { + "@vocab": "http://schema.org/", + "location": { + "@type": "@id", + "@container": "@type" + } + } +} diff --git a/tests/compact/m023-in.jsonld b/tests/compact/m023-in.jsonld new file mode 100644 index 00000000..22375132 --- /dev/null +++ b/tests/compact/m023-in.jsonld @@ -0,0 +1,9 @@ +{ + "@context": { + "@vocab": "http://schema.org/" + }, + "@type": "Event", + "location": { + "@id": "http://kg.artsdata.ca/resource/K11-200" + } +} diff --git a/tests/compact/m023-out.jsonld b/tests/compact/m023-out.jsonld new file mode 100644 index 00000000..fdd09514 --- /dev/null +++ b/tests/compact/m023-out.jsonld @@ -0,0 +1,13 @@ +{ + "@context": { + "@vocab": "http://schema.org/", + "location": { + "@type": "@id", + "@container": "@type" + } + }, + "@type": "Event", + "location": { + "@none": "http://kg.artsdata.ca/resource/K11-200" + } +}