From 5da18484b9af2406caff5f0daeeb493ead13fc70 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 11 Nov 2017 14:00:49 +0100 Subject: Add JSON-LD test suite --- tests/JSONLDTests/toRdf-0076-in.jsonld | 90 ++++++++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 tests/JSONLDTests/toRdf-0076-in.jsonld (limited to 'tests/JSONLDTests/toRdf-0076-in.jsonld') diff --git a/tests/JSONLDTests/toRdf-0076-in.jsonld b/tests/JSONLDTests/toRdf-0076-in.jsonld new file mode 100644 index 00000000..23c99b55 --- /dev/null +++ b/tests/JSONLDTests/toRdf-0076-in.jsonld @@ -0,0 +1,90 @@ +{ + "@context": { + "property": "http://example.com/property", + "indexContainer": { "@id": "http://example.com/container", "@container": "@index" } + }, + "@id": "http://example.org/indexTest", + "indexContainer": { + "A": [ + { + "@id": "http://example.org/nodeWithoutIndexA" + }, + { + "@id": "http://example.org/nodeWithIndexA", + "@index": "this overrides the 'A' index from the container" + }, + 1, + true, + false, + null, + "simple string A", + { + "@value": "typed literal A", + "@type": "http://example.org/type" + }, + { + "@value": "language-tagged string A", + "@language": "en" + } + ], + "B": "simple string B", + "C": [ + { + "@id": "http://example.org/nodeWithoutIndexC" + }, + { + "@id": "http://example.org/nodeWithIndexC", + "@index": "this overrides the 'C' index from the container" + }, + 3, + true, + false, + null, + "simple string C", + { + "@value": "typed literal C", + "@type": "http://example.org/type" + }, + { + "@value": "language-tagged string C", + "@language": "en" + } + ] + }, + "property": [ + { + "@id": "http://example.org/nodeWithoutIndexProp" + }, + { + "@id": "http://example.org/nodeWithIndexProp", + "@index": "prop" + }, + { + "@value": 3, + "@index": "prop" + }, + { + "@value": true, + "@index": "prop" + }, + { + "@value": false, + "@index": "prop" + }, + { + "@value": null, + "@index": "prop" + }, + "simple string no index", + { + "@value": "typed literal Prop", + "@type": "http://example.org/type", + "@index": "prop" + }, + { + "@value": "language-tagged string Prop", + "@language": "en", + "@index": "prop" + } + ] +} -- cgit v1.2.1