portaljs icon indicating copy to clipboard operation
portaljs copied to clipboard

Create and render a Data Rich basic dataset (i.e. all in README)

Open rufuspollock opened this issue 4 years ago • 2 comments

would look something like:

---
title: My Dataset
keywords:
 - Energy
 - Climate
license: odc-pddl
---

Here's a description of this cool dataset

<Table csv={`
Let's,have,some,inline,data
1,2,3,4,5
`} />

rufuspollock avatar Jul 04 '21 08:07 rufuspollock

Started on this in https://github.com/datopian/data-literate/commit/edfe4311930c78b3e25fe16e1adecfeff4c111d6 - see https://data-literate.vercel.app/datasets/iea-data-products and the raw file https://raw.githubusercontent.com/datopian/data-literate/edfe4311930c78b3e25fe16e1adecfeff4c111d6/content/datasets/iea-data-products.mdx

rufuspollock avatar Jul 04 '21 08:07 rufuspollock

My current example (see below for a copy of original) is no different from Data Literate Document/Story. What makes this a dataset? In this setup (as the data is inline in the markdown) the only difference would be some special rendering of the metadata ...

But I think that is mistaken, what makes a dataset is i have data and probably not data i'm inlining in my markdown. Thus, a a better example of a minimal Data Literate dataset would be:

title: My Dataset
data: mydata.csv

Or, more explicit and Frictionless like:

title: My Dataset
resources:
  - path: mydata.csv

Original Example

---
title: My Dataset
keywords:
 - Energy
 - Climate
license: odc-pddl
---

Here's a description of this cool dataset

<Table csv={`
Let's,have,some,inline,data
1,2,3,4,5
`} />

rufuspollock avatar Jul 20 '21 17:07 rufuspollock