Add toRdf test with reverse property
authorMarkus Lanthaler <mark_lanthaler@gmx.net>
Tue, 12 Mar 2013 00:33:09 +0100
changeset 1417 cb608c1ae36e
parent 1416 1acef1c0dac5
child 1418 a138136d0e38
Add toRdf test with reverse property

This addresses #221.
test-suite/tests/toRdf-0031-in.jsonld
test-suite/tests/toRdf-0031-out.nq
test-suite/tests/toRdf-manifest.jsonld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/toRdf-0031-in.jsonld	Tue Mar 12 00:33:09 2013 +0100
@@ -0,0 +1,15 @@
+{
+  "@context": {
+    "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
+    "defines": { "@reverse": "rdfs:definedBy" },
+    "label": "rdfs:label"
+  },
+  "@id": "http://example.com/vocab",
+  "label": "My vocabulary",
+  "defines": [
+    {
+      "@id": "http://example.com/vocab#property",
+      "label": "A property"
+    }
+  ]
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/toRdf-0031-out.nq	Tue Mar 12 00:33:09 2013 +0100
@@ -0,0 +1,3 @@
+<http://example.com/vocab#property> <http://www.w3.org/2000/01/rdf-schema#definedBy> <http://example.com/vocab> .
+<http://example.com/vocab#property> <http://www.w3.org/2000/01/rdf-schema#label> "A property" .
+<http://example.com/vocab> <http://www.w3.org/2000/01/rdf-schema#label> "My vocabulary" .
--- a/test-suite/tests/toRdf-manifest.jsonld	Mon Mar 11 22:13:50 2013 +0100
+++ b/test-suite/tests/toRdf-manifest.jsonld	Tue Mar 12 00:33:09 2013 +0100
@@ -186,6 +186,12 @@
       "purpose": "Tests graphs containing subject references as strings.",
       "input": "toRdf-0030-in.jsonld",
       "expect": "toRdf-0030-out.nq"
+    }, {
+      "@type": ["test:TestCase", "jld:ToRDFTest"],
+      "name": "Reverse property",
+      "purpose": "Tests conversion of reverse properties.",
+      "input": "toRdf-0031-in.jsonld",
+      "expect": "toRdf-0031-out.nq"
     }
   ]
 }