Merge branch 'master' of github.com:json-ld/json-ld.org
authorMarkus Lanthaler <mark_lanthaler@gmx.net>
Thu, 29 Mar 2012 01:28:59 +0800
changeset 419 af2af234c176
parent 417 2da486b08555 (current diff)
parent 418 c150ca1167fe (diff)
child 420 48f2d6281c85
Merge branch 'master' of github.com:json-ld/json-ld.org
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/normalize-0053-in.jsonld	Thu Mar 29 01:28:59 2012 +0800
@@ -0,0 +1,8 @@
+{
+  "@context": {
+    "prop1": "http://example.org/test#property1",
+    "prop2": {"@id": "http://example.org/test#property2", "@container": "@list"}
+  },
+  "prop1": {"@list": ["1","2","3"]},
+  "prop2": ["4","5","6"]
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test-suite/tests/normalize-0053-out.jsonld	Thu Mar 29 01:28:59 2012 +0800
@@ -0,0 +1,84 @@
+[
+  {
+    "@id": "_:c14n0",
+    "http://www.w3.org/1999/02/22-rdf-syntax-ns#first": [
+      "6"
+    ],
+    "http://www.w3.org/1999/02/22-rdf-syntax-ns#rest": [
+      {
+        "@id": "http://www.w3.org/1999/02/22-rdf-syntax-ns#nil"
+      }
+    ]
+  },
+  {
+    "@id": "_:c14n1",
+    "http://www.w3.org/1999/02/22-rdf-syntax-ns#first": [
+      "4"
+    ],
+    "http://www.w3.org/1999/02/22-rdf-syntax-ns#rest": [
+      {
+        "@id": "_:c14n2"
+      }
+    ]
+  },
+  {
+    "@id": "_:c14n2",
+    "http://www.w3.org/1999/02/22-rdf-syntax-ns#first": [
+      "5"
+    ],
+    "http://www.w3.org/1999/02/22-rdf-syntax-ns#rest": [
+      {
+        "@id": "_:c14n0"
+      }
+    ]
+  },
+  {
+    "@id": "_:c14n3",
+    "http://www.w3.org/1999/02/22-rdf-syntax-ns#first": [
+      "1"
+    ],
+    "http://www.w3.org/1999/02/22-rdf-syntax-ns#rest": [
+      {
+        "@id": "_:c14n4"
+      }
+    ]
+  },
+  {
+    "@id": "_:c14n4",
+    "http://www.w3.org/1999/02/22-rdf-syntax-ns#first": [
+      "2"
+    ],
+    "http://www.w3.org/1999/02/22-rdf-syntax-ns#rest": [
+      {
+        "@id": "_:c14n5"
+      }
+    ]
+  },
+  {
+    "@id": "_:c14n5",
+    "http://www.w3.org/1999/02/22-rdf-syntax-ns#first": [
+      "3"
+    ],
+    "http://www.w3.org/1999/02/22-rdf-syntax-ns#rest": [
+      {
+        "@id": "http://www.w3.org/1999/02/22-rdf-syntax-ns#nil"
+      }
+    ]
+  },
+  {
+    "@id": "_:c14n6",
+    "http://example.org/test#property1": [
+      {
+        "@id": "_:c14n3"
+      }
+    ],
+    "http://example.org/test#property2": [
+      {
+        "@id": "_:c14n1"
+      }
+    ]
+  },
+  {
+    "@id": "http://www.w3.org/1999/02/22-rdf-syntax-ns#nil"
+  }
+]
\ No newline at end of file
--- a/test-suite/tests/normalize-manifest.jsonld	Thu Mar 29 01:28:20 2012 +0800
+++ b/test-suite/tests/normalize-manifest.jsonld	Thu Mar 29 01:28:59 2012 +0800
@@ -264,5 +264,10 @@
     "name": "alias keywords",
     "input": "normalize-0052-in.jsonld",
     "expect": "normalize-0052-out.jsonld"
+  }, {
+    "@type": ["test:TestCase", "jld:NormalizeTest"],
+    "name": "@list",
+    "input": "normalize-0053-in.jsonld",
+    "expect": "normalize-0053-out.jsonld"
   }]
 }