Skip to content

Commit 39f65de

Browse files
authored
Merge pull request #84 from bact/add-owid-co2-data
Add a Dataset Profile example (CO2 dataset)
2 parents 9e78e8c + 26b43dd commit 39f65de

File tree

6 files changed

+316
-0
lines changed

6 files changed

+316
-0
lines changed

dataset/README.md

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# SPDX Dataset Profile Examples
2+
3+
This repository includes demonstrations of [SPDX documents](https://spdx.dev)
4+
for a Dataset Profile.
5+
6+
## Format of examples
7+
8+
Directories of the form `example##` are structured as follows:
9+
10+
- `content/`: contains the example's content (data files, related source code,
11+
etc.)
12+
- `spdx3.0/`: contains one or more SPDX documents for the example
13+
- `README.md`: more details about the particular example
14+
15+
## Examples
16+
17+
| ## | Data | Sources | SPDX | Comments |
18+
|----|------|---------|------|----------|
19+
| [01](./example01/) | 2 CSV files | - | 1 document | An example of a simple dataset in tabular format. |

dataset/example01/README.md

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Example 01
2+
3+
## Description
4+
5+
An example of a simple dataset in tabular format.
6+
7+
```text
8+
content
9+
├── codebook.csv
10+
└── data.csv
11+
```
12+
13+
Both `codebook.csv` and `data.csv` are plain text files in CSV (comma-separated
14+
values) format.
15+
16+
The file `data.csv` contains records of gas emission data for each year in a
17+
country. It has a header on the first line that defines the column names.
18+
Each record consists mostly of numerical data with some categorical data.
19+
20+
The file `codebook.csv` contains the column names from the header of
21+
`data.csv`, together with their description, unit, and source.
22+
23+
The content of this example is an excerpt of the Our World in Data CO2 and
24+
Greenhouse Gas Emissions dataset. It is available in full, under Creative
25+
Commons Attribution 4.0 International License, at
26+
<https://github.com/owid/co2-data/>.
27+
28+
This simplified
29+
[Unified Modeling Language (UML)](https://en.wikipedia.org/wiki/Unified_Modeling_Language)
30+
class diagram illustrates Example 01. Long string values are truncated and the
31+
spdxIds are shortened (by removing the UUID suffix), for brevity.
32+
33+
[![A diagram of a bill of materials of Dataset Example 01](./spdx3.0/example01.png "A diagram of a bill of materials of Dataset Example 01")](./spdx3.0/example01.png)

0 commit comments

Comments
 (0)