From 9727ef03ecbe5af60a2da8fd51210a47821422db Mon Sep 17 00:00:00 2001 From: Stephen-Gates Date: Sun, 4 Mar 2018 06:03:17 +1000 Subject: [PATCH 1/2] text data package Fixes #21, #4 --- text-file/README.md | 3 +++ text-file/datapackage.json | 32 +++++++++++++++++++++++++++----- text-file/text-file.txt | 2 +- 3 files changed, 31 insertions(+), 6 deletions(-) create mode 100644 text-file/README.md diff --git a/text-file/README.md b/text-file/README.md new file mode 100644 index 0000000..0a45ded --- /dev/null +++ b/text-file/README.md @@ -0,0 +1,3 @@ +An example of a txt file providing non-tabular data inside a data package. + +The data is an example. Do not buy a lottery ticket based on this data. diff --git a/text-file/datapackage.json b/text-file/datapackage.json index 492c2fc..2c8c7eb 100644 --- a/text-file/datapackage.json +++ b/text-file/datapackage.json @@ -1,11 +1,33 @@ { "name": "text-file", - "title": "Text File", - "resources": [ + "title": "Text File Data Package", + "description": "An example of a text file in a non-tabular data package", + "licenses": [{ + "name": "CC0-1.0", + "title": "CC0 1.0", + "path": "https://creativecommons.org/publicdomain/zero/1.0/" + }], + "contributors": [ { - "name": "text-file", - "path": "text-file.txt" + "title": "Joe Bloggs", + "email": "joe@example.com", + "path": "http://www.example.com/bloggs", + "role": "author", + "organization": "Bloggs and Associates" + }, + { + "title": "Mary Shelley", + "email": "mshelly@example.com", + "role": "contributor" } ], - "description": "Example Data Package of text file." + "version": "0.1.0", + "created": "2018-03-04T05:45:00Z", + "resources": [{ + "name": "text-file", + "path": "text-file.txt", + "title": "Text File Data Resource", + "description": "An example of a text file as a non-tabular data resource", + "format": "txt" + }] } diff --git a/text-file/text-file.txt b/text-file/text-file.txt index 5b9c8aa..b80b279 100644 --- a/text-file/text-file.txt +++ b/text-file/text-file.txt @@ -1 +1 @@ -This is just a simple text file. +This is just a simple text file. It is not tabular. It includes some data. Tomorrow's winning lottery numbers are 10, 35, 17 and 42. From e7003dc095dbbbf00c1509a6732f19286286308f Mon Sep 17 00:00:00 2001 From: Stephen-Gates Date: Sun, 4 Mar 2018 06:03:59 +1000 Subject: [PATCH 2/2] Add contributors resource provide sample json for people tp copy --- resources/contributors.json | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 resources/contributors.json diff --git a/resources/contributors.json b/resources/contributors.json new file mode 100644 index 0000000..519a2d9 --- /dev/null +++ b/resources/contributors.json @@ -0,0 +1,14 @@ +"contributors": [ + { + "title": "Joe Bloggs", + "email": "joe@example.com", + "path": "http://www.example.com/bloggs", + "role": "author", + "organization": "Bloggs and Associates" + }, + { + "title": "Mary Shelley", + "email": "mshelly@example.com", + "role": "contributor" + } +]