Add basic toRDF dataset test cases.
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/toRdf-0113-in.jsonld Thu Aug 22 16:11:19 2013 -0700
@@ -0,0 +1,7 @@
+{
+ "@id": "http://example/g",
+ "@graph": {
+ "@id": "http://example/s",
+ "http://example/p": {"@id": "http://example/o"}
+ }
+}
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/toRdf-0113-out.nq Thu Aug 22 16:11:19 2013 -0700
@@ -0,0 +1,1 @@
+<http://example/s> <http://example/p> <http://example/o> <http://example/g> .
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/toRdf-0114-in.jsonld Thu Aug 22 16:11:19 2013 -0700
@@ -0,0 +1,7 @@
+{
+ "@id": "_:g",
+ "@graph": {
+ "@id": "http://example/s",
+ "http://example/p": {"@id": "http://example/o"}
+ }
+}
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/toRdf-0114-out.nq Thu Aug 22 16:11:19 2013 -0700
@@ -0,0 +1,1 @@
+<http://example/s> <http://example/p> <http://example/o> _:b0 .
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/toRdf-0115-in.jsonld Thu Aug 22 16:11:19 2013 -0700
@@ -0,0 +1,20 @@
+{
+ "@graph": [{
+ "@id": "http://example/s0",
+ "http://example/p0": {"@id": "http://example/o0"}
+ },
+ {
+ "@id": "http://example/g",
+ "@graph": {
+ "@id": "http://example/s1",
+ "http://example/p1": {"@id": "http://example/o1"}
+ }
+ },
+ {
+ "@id": "_:g",
+ "@graph": {
+ "@id": "http://example/s2",
+ "http://example/p2": {"@id": "http://example/o2"}
+ }
+ }]
+}
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/toRdf-0115-out.nq Thu Aug 22 16:11:19 2013 -0700
@@ -0,0 +1,3 @@
+<http://example/s0> <http://example/p0> <http://example/o0> .
+<http://example/s1> <http://example/p1> <http://example/o1> <http://example/g> .
+<http://example/s2> <http://example/p2> <http://example/o2> _:b0 .
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/toRdf-0116-in.jsonld Thu Aug 22 16:11:19 2013 -0700
@@ -0,0 +1,8 @@
+{
+ "@id": "http://example/s0",
+ "http://example/p0": {"@id": "http://example/o0"},
+ "@graph": {
+ "@id": "http://example/s1",
+ "http://example/p1": {"@id": "http:///example/o1"}
+ }
+}
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/toRdf-0116-out.nq Thu Aug 22 16:11:19 2013 -0700
@@ -0,0 +1,2 @@
+<http://example/s0> <http://example/p0> <http://example/o0> .
+<http://example/s1> <http://example/p1> <http:///example/o1> <http://example/s0> .
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/toRdf-0117-in.jsonld Thu Aug 22 16:11:19 2013 -0700
@@ -0,0 +1,7 @@
+{
+ "http://example/p0": {"@id": "http://example/o0"},
+ "@graph": {
+ "@id": "http://example/s1",
+ "http://example/p1": {"@id": "http:///example/o1"}
+ }
+}
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/toRdf-0117-out.nq Thu Aug 22 16:11:19 2013 -0700
@@ -0,0 +1,2 @@
+_:b0 <http://example/p0> <http://example/o0> .
+<http://example/s1> <http://example/p1> <http:///example/o1> _:b0 .
--- a/test-suite/tests/toRdf-manifest.jsonld Wed Aug 21 10:31:46 2013 -0700
+++ b/test-suite/tests/toRdf-manifest.jsonld Thu Aug 22 16:11:19 2013 -0700
@@ -755,6 +755,41 @@
"purpose": "RDF version of expand-0072",
"input": "toRdf-0112-in.jsonld",
"expect": "toRdf-0112-out.nq"
+ }, {
+ "@id": "#t0113",
+ "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"],
+ "name": "Dataset with a IRI named graph",
+ "purpose": "Basic use of creating a named graph using an IRI name",
+ "input": "toRdf-0113-in.jsonld",
+ "expect": "toRdf-0113-out.nq"
+ }, {
+ "@id": "#t0114",
+ "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"],
+ "name": "Dataset with a IRI named graph",
+ "purpose": "Basic use of creating a named graph using a BNode name",
+ "input": "toRdf-0114-in.jsonld",
+ "expect": "toRdf-0114-out.nq"
+ }, {
+ "@id": "#t0115",
+ "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"],
+ "name": "Dataset with a default and two named graphs",
+ "purpose": "Dataset with a default and two named graphs (IRI and BNode)",
+ "input": "toRdf-0115-in.jsonld",
+ "expect": "toRdf-0115-out.nq"
+ }, {
+ "@id": "#t0116",
+ "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"],
+ "name": "Dataset from node with embedded named graph",
+ "purpose": "Embedding @graph in a node creates a named grqph",
+ "input": "toRdf-0116-in.jsonld",
+ "expect": "toRdf-0116-out.nq"
+ }, {
+ "@id": "#t0117",
+ "@type": ["jld:PositiveEvaluationTest", "jld:ToRDFTest"],
+ "name": "Dataset from node with embedded named graph (bnode)",
+ "purpose": "Embedding @graph in a node creates a named grqph. Graph name is created if there is no subject",
+ "input": "toRdf-0117-in.jsonld",
+ "expect": "toRdf-0117-out.nq"
}
]
}