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-0102-in.jsonld | 35 ++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 tests/JSONLDTests/toRdf-0102-in.jsonld (limited to 'tests/JSONLDTests/toRdf-0102-in.jsonld') diff --git a/tests/JSONLDTests/toRdf-0102-in.jsonld b/tests/JSONLDTests/toRdf-0102-in.jsonld new file mode 100644 index 00000000..fb472514 --- /dev/null +++ b/tests/JSONLDTests/toRdf-0102-in.jsonld @@ -0,0 +1,35 @@ +{ + "@context": { + "@base": "http://example.com/some/deep/directory/and/file#with-a-fragment", + "links": { "@id": "http://www.example.com/link", "@type": "@id", "@container": "@list" } + }, + "@id": "relativeIris", + "@type": [ + "link", + "#fragment-works", + "?query=works", + "./", + "../", + "../parent", + "../../parent-parent-eq-root", + "../../../../../still-root", + "../.././.././../../too-many-dots", + "/absolute", + "//example.org/scheme-relative" + ], + "links": [ + "link", + "#fragment-works", + "?query=works", + "./", + "../", + "../parent", + "../../parent-parent-eq-root", + "./../../../../../still-root", + "../.././.././../../too-many-dots", + "/absolute", + "//example.org/scheme-relative", + "//example.org/../scheme-relative", + "//example.org/.././useless/../../scheme-relative" + ] +} -- cgit v1.2.1