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-0061-in.jsonld | 56 ++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 tests/JSONLDTests/toRdf-0061-in.jsonld (limited to 'tests/JSONLDTests/toRdf-0061-in.jsonld') diff --git a/tests/JSONLDTests/toRdf-0061-in.jsonld b/tests/JSONLDTests/toRdf-0061-in.jsonld new file mode 100644 index 00000000..e52fd1b8 --- /dev/null +++ b/tests/JSONLDTests/toRdf-0061-in.jsonld @@ -0,0 +1,56 @@ +{ + "@context": { + "authored": { + "@id": "http://example.org/vocab#authored", + "@type": "@id" + }, + "contains": { + "@id": "http://example.org/vocab#contains", + "@type": "@id" + }, + "contributor": "http://purl.org/dc/elements/1.1/contributor", + "description": "http://purl.org/dc/elements/1.1/description", + "name": "http://xmlns.com/foaf/0.1/name", + "title": { + "@id": "http://purl.org/dc/elements/1.1/title" + } + }, + "title": "My first graph", + "@graph": [ + { + "@id": "http://example.org/test#jane", + "name": "Jane", + "authored": { + "@graph": [ + { + "@id": "http://example.org/test#chapter1", + "description": "Fun", + "title": "Chapter One" + }, + { + "@id": "http://example.org/test#chapter2", + "description": "More fun", + "title": "Chapter Two" + }, + { + "@id": "http://example.org/test#chapter3", + "title": "Chapter Three" + } + ] + } + }, + { + "@id": "http://example.org/test#john", + "name": "John" + }, + { + "@id": "http://example.org/test#library", + "contains": { + "@id": "http://example.org/test#book", + "contains": "http://example.org/test#chapter", + "contributor": "Writer", + "title": "My Book" + } + } + ] +} -- cgit v1.2.1