diff options
author | David Robillard <d@drobilla.net> | 2017-11-11 14:00:49 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-05-25 11:15:50 +0200 |
commit | 5da18484b9af2406caff5f0daeeb493ead13fc70 (patch) | |
tree | af0d9f683d434c828d14b10b81f33355b1a74fd2 /tests/JSONLDTests/toRdf-0076-in.jsonld | |
parent | d14838cf7217d27e499908fe324ebf4cd7863ed8 (diff) | |
download | serd-5da18484b9af2406caff5f0daeeb493ead13fc70.tar.gz serd-5da18484b9af2406caff5f0daeeb493ead13fc70.tar.bz2 serd-5da18484b9af2406caff5f0daeeb493ead13fc70.zip |
Add JSON-LD test suite
Diffstat (limited to 'tests/JSONLDTests/toRdf-0076-in.jsonld')
-rw-r--r-- | tests/JSONLDTests/toRdf-0076-in.jsonld | 90 |
1 files changed, 90 insertions, 0 deletions
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" + } + ] +} |