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-0027-in.jsonld | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 tests/JSONLDTests/toRdf-0027-in.jsonld (limited to 'tests/JSONLDTests/toRdf-0027-in.jsonld') diff --git a/tests/JSONLDTests/toRdf-0027-in.jsonld b/tests/JSONLDTests/toRdf-0027-in.jsonld new file mode 100644 index 00000000..920dcb82 --- /dev/null +++ b/tests/JSONLDTests/toRdf-0027-in.jsonld @@ -0,0 +1,30 @@ +{ + "@context": { + "rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#", + "ex": "http://example.org/", + "xsd": "http://www.w3.org/2001/XMLSchema#", + "ex:locatedIn": {"@type": "@id"}, + "ex:hasPopulaton": {"@type": "xsd:integer"}, + "ex:hasReference": {"@type": "@id"} + }, + "@graph": [ + { + "@id": "http://example.org/ParisFact1", + "@type": "rdf:Graph", + "@graph": { + "@id": "http://example.org/location/Paris#this", + "ex:locatedIn": "http://example.org/location/France#this" + }, + "ex:hasReference": ["http://www.britannica.com/", "http://www.wikipedia.org/", "http://www.brockhaus.de/"] + }, + { + "@id": "http://example.org/ParisFact2", + "@type": "rdf:Graph", + "@graph": { + "@id": "http://example.org/location/Paris#this", + "ex:hasPopulation": 7000000 + }, + "ex:hasReference": "http://www.wikipedia.org/" + } + ] +} -- cgit v1.2.1