From 2df4aa08b04370af606526b38157d67f6cf1b27f Mon Sep 17 00:00:00 2001 From: Gregg Kellogg Date: Sat, 19 Aug 2017 16:24:52 -0600 Subject: [PATCH] Fix examples using `"tableSchema": [...]` to `"tableSchema": {...}`, which is more appropriate given that tableSchema is single-valued. Fixes #855. --- csv2rdf/index.html | 4 ++-- metadata/index.html | 16 ++++++++-------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/csv2rdf/index.html b/csv2rdf/index.html index 62f24db2..fbeb56de 100644 --- a/csv2rdf/index.html +++ b/csv2rdf/index.html @@ -1677,7 +1677,7 @@

Simple, two table case

}, { "url": "http://foo.example.org/CSV/Addresses", "aboutUrl" : "http://foo.example.org/CSV/Addresses/ID={ID}", - "tableSchema": [{ + "tableSchema": { "columns": [{ "name": "ID", "datatype": "integer" @@ -1691,7 +1691,7 @@

Simple, two table case

"propertyUrl": "rdf:type", "valueUrl" : "http://foo.example.org/CSV/Addresses" }], - }] + } } diff --git a/metadata/index.html b/metadata/index.html index 55b25aa3..920f39a5 100644 --- a/metadata/index.html +++ b/metadata/index.html @@ -1807,7 +1807,7 @@

Examples

"@context": { "http://www.w3.org/ns/csvw", { "@language": "en" } }, "@type": "Table", "url": "http://example.com/table.csv", - "tableSchema": [...], + "tableSchema": {...}, "dc:title": "The title of this Table" } @@ -1816,7 +1816,7 @@

Examples

{ "@type": "Table", "url": "http://example.com/table.csv", - "tableSchema": [...], + "tableSchema": {...}, "dc:title": {"@value": "The title of this Table", "@language": "en"} } @@ -1826,7 +1826,7 @@

Examples

"@context": { "http://www.w3.org/ns/csvw", { "@language": "en" } }, "@type": "Table", "url": "http://example.com/table.csv", - "tableSchema": [...], + "tableSchema": {...}, "dc:title": {"@value": "The title of this Table"} } @@ -1836,7 +1836,7 @@

Examples

"@context": { "http://www.w3.org/ns/csvw", { "@language": "en" } }, "@type": "Table", "url": "http://example.com/table.csv", - "tableSchema": [...], + "tableSchema": {...}, "dc:title": [ "The title of this Table", {"@value": "Der Titel dieser Tabelle", "@language": "de"} @@ -1850,7 +1850,7 @@

Examples

{ "@type": "Table", "url": "http://example.com/table.csv", - "tableSchema": [...], + "tableSchema": {...}, "dc:title": [ {"@value": "The title of this Table", "@language": "en"} {"@value": "Der Titel dieser Tabelle", "@language": "de"} @@ -1863,7 +1863,7 @@

Examples

"@context": [ "http://www.w3.org/ns/csvw", { "@base": "http://example.com/" } ], "@type": "Table", "url": "table.csv", - "tableSchema": [...], + "tableSchema": {...}, "schema:url": {"@id": "table.csv"} } @@ -1873,7 +1873,7 @@

Examples

"@context": "http://www.w3.org/ns/csvw", "@type": "Table", "url": "http://example.com/table.csv", - "tableSchema": [...], + "tableSchema": {...}, "schema:url": {"@id": "http://example.com/table.csv"} } @@ -1883,7 +1883,7 @@

Examples

"@context": "http://www.w3.org/ns/csvw", "@type": "Table", "url": "http://example.com/table.csv", - "tableSchema": [...], + "tableSchema": {...}, "dc:publisher": [{ "schema:name": "Example Municipality", "schema:url": {"@id": "http://example.org"}