Skip to content

Commit

Permalink
Merge pull request #130 from OpenEnergyPlatform/release/v1.6.0
Browse files Browse the repository at this point in the history
Release v1.6.0
  • Loading branch information
jh-RLI authored May 30, 2023
2 parents c1ed1e2 + b76455c commit d29f5d5
Show file tree
Hide file tree
Showing 31 changed files with 2,517 additions and 143 deletions.
31 changes: 31 additions & 0 deletions .github/ISSUE_TEMPLATE/issue_template_bug.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
name: Bug Issue
about: For bugs and errors
title: Your title should make sense if said after "The issue is <your issue title>"
labels: "bug"
assignees: ''

---

## Description of the issue

Describe the problem in as much detail as possible.
Focus on the expected and current behavior.
If necessary, create a screenshot and insert below.

## Steps to Reproduce
1.
2.
3.

## Ideas of solution

Describe possible ideas for solution and evaluate advantages and disadvantages.

## Context and Environment
* Version used:
* Operating system:
* Environment setup and (python) version:

## Workflow checklist
- [ ] I am aware of the workflow in [CONTRIBUTING.md](https://github.com/rl-institut/super-repo/blob/develop/CONTRIBUTING.md)
19 changes: 19 additions & 0 deletions .github/ISSUE_TEMPLATE/issue_template_feature.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: Feature Issue
about: For new ideas, developments and features
title: Your title should make sense if said after "The issue is <your issue title>"
labels: "enhancement"
assignees: ''

---

## Description of the issue

Describe the problem in as much detail as possible.

## Ideas of solution

Describe possible ideas for solution and evaluate advantages and disadvantages.

## Workflow checklist
- [ ] I am aware of the workflow in [CONTRIBUTING.md](https://github.com/OpenEnergyPlatform/oemetadata/blob/develop/CONTRIBUTING.md)
29 changes: 29 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
## Summary of the discussion

Describe the findings of the discussion in the issue or meeting.

## Type of change (CHANGELOG.md)

### Added
- Add a new class [(#)](https://github.com/OpenEnergyPlatform/oemetadata/pull/)

### Updated
- Update a definition [(#)](https://github.com/OpenEnergyPlatform/oemetadata/pull/)

### Removed
- Remove a broken link [(#)](https://github.com/OpenEnergyPlatform/oemetadata/pull/)


## Workflow checklist

### Automation
Closes #

### PR-Assignee
- [ ] 🐙 Follow the workflow in [CONTRIBUTING.md](https://github.com/OpenEnergyPlatform/oemetadata/blob/develop/CONTRIBUTING.md)
- [ ] 📝 Update the [CHANGELOG.md](https://github.com/OpenEnergyPlatform/oemetadata/blob/develop/CHANGELOG.md)
- [ ] 📙 Update the documentation

### Reviewer
- [ ] 🐙 Follow the [Reviewer Guidelines](https://github.com/OpenEnergyPlatform/oemetadata/blob/develop/CONTRIBUTING.md#40-let-someone-else-review-your-pr)
- [ ] 🐙 Provided feedback and show sufficient appreciation for the work done
4 changes: 2 additions & 2 deletions .github/workflows/metadata-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ on:

jobs:
test:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
env:
TOXENV: py3
name: metadata-tests
Expand All @@ -36,4 +36,4 @@ jobs:
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Test metadata
run: tox -v
run: tox -v
19 changes: 17 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Here is a template for new release sections
### Added
-
### Changed
-
-
### Removed
-
Expand All @@ -30,9 +30,24 @@ Here is a template for new release sections
## Current

### Added
-

### Changed

### Removed
-

## [1.6.0] - Release - Introduce badges in json schema - 2023-05-30

### Added

- Add badge for all fields [PR#117]
- Add CITATION.cff with list of authors [(#111)](https://github.com/OpenEnergyPlatform/oemetadata/pull/111)

### Changed
- Separate examples from descripton and put into its own key-value pair [PR#117]
- Add issue and PR templates [(#116)](https://github.com/OpenEnergyPlatform/oemetadata/pull/116)
- Update context field [PR#114]

### Removed
-

Expand Down
34 changes: 34 additions & 0 deletions CITATION.cff
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
cff-version: 1.2.0
message: "If you use this software, please cite it using these metadata."
authors:
- family-names: "Hülk"
given-names: "Ludwig"
alias: "@Ludee"
website: "https://github.com/Ludee"
affiliation: "Reiner Lemoine Institut"
orcid: "https://orcid.org/0000-0003-4655-2321"
- family-names: "Huber"
given-names: "Jonas"
alias: "@jh-RLI"
website: "https://github.com/jh-RLI"
affiliation: "Reiner Lemoine Institut"
orcid: "https://orcid.org/0000-0002-6234-0751"
- family-names: "Hofmann"
given-names: "Christian"
alias: "@christian-rli"
website: "https://github.com/christian-rli"
affiliation: "Reiner Lemoine Institut"
orcid: "https://orcid.org/0000-0003-4520-7008"
- family-names: "Muschner"
given-names: "Christoph"
alias: "@chrwm"
website: "https://github.com/chrwm"
affiliation: "Reiner Lemoine Institut"
orcid: "https://orcid.org/0000-0001-8144-5260"
title: "Open Energy Family - Open Energy Metadata (OEMetadata)"
type: software
license: MIT
version: 1.5.2
doi:
date-released: 2022-11-18
url: "https://github.com/OpenEnergyPlatform/oemetadata"
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ The oemetadata example and oemetadata template are licensed under [Creative Comm

## Installation

`pip install oep-metadata`
`pip install oemetadata`

## Usage Examples

Expand Down
14 changes: 7 additions & 7 deletions RELEASE_PROCEDURE.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
# Release procedure
## Pre-Release
- View the GitHub project for the next release and check the
- View the GitHub project for the next release and check the
Status of all issues and PR's assigned to the project.
If there are any open issues or PR's, decide if you want to include them
them to be included in the upcoming release. Make sure that all changes are
are included in the development branch before proceeding to the next steps.
- Create a new folder named "vXXX" (release version) in the metadata and
test directory.
- In the metadata direcotry copy all files from latest to the
test directory.
- In the metadata direcotry copy all files from latest to the
new folder then adapt all .py files to the latest version and
update the id in schema.json.
- In test copy all files from previous oder latest version folder
- In test copy all files from previous oder latest version folder
in test directory and adapt all tests (test_***.py files) to
the latest version.
## Release
- 1 Checkout a new branch from devolop branch named: release/oem-vX.X.X
- 2 Update the following files:
- 2 Update the following files:
- Make sure all changes are documented in the changelog.md.
- Set the correct version number in the setup.py file.
- 3 Commit and Push the changes.
- 4 Create the Pull Request via the GitHub website and merge changes to
- 4 Create the Pull Request via the GitHub website and merge changes to
develop then merge develop in master branch.
- 5 Create a new release via the GitHub website and tag the master branch.

Expand All @@ -28,7 +28,7 @@ We provide automation workflows that will build and upload PyPi Packages.

Keep in mind that specific package versions (as specified in the [setup.py](https://github.com/OpenEnergyPlatform/oemetadata/blob/5fc02df0a5efeb01cc8d9b78929c3dfe9eebd8cb/setup.py#L13)) can only be release once. This stands for test and official PyPi package index.

**Test workflows** are triggered when pushing commits to the permanent branch called `deployment-test`.
**Test workflows** are triggered when pushing commits to the permanent branch called `deployment-test`.

**Release Deployment Workflow** is triggered as soon as one publishes a new github release.

Expand Down
23 changes: 15 additions & 8 deletions metadata/latest/example.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "oep_metadata_table_example_v152",
"title": "Example title for metadata example - Version 1.5.2",
"id": "http://openenergyplatform.org/dataedit/view/model_draft/oep_metadata_table_example_v152",
"name": "oep_metadata_table_example_v160",
"title": "Example title for metadata example - Version 1.6.0",
"id": "http://openenergyplatform.org/dataedit/view/model_draft/oep_metadata_table_example_v160",
"description": "This is an metadata example for example data. There is a corresponding table on the OEP for each metadata version.",
"language": [
"en-GB",
Expand Down Expand Up @@ -225,13 +225,20 @@
"date": "2022-11-18",
"object": "metadata",
"comment": "Release metadata version OEP-1.5.2"
},
{
"title": "christian-rli",
"email": null,
"date": "2023-05-30",
"object": "metadata",
"comment": "Release metadata version OEP-1.6.0"
}
],
"resources": [
{
"profile": "tabular-data-resource",
"name": "model_draft.oep_metadata_table_example_v152",
"path": "http://openenergyplatform.org/dataedit/view/model_draft/oep_metadata_table_example_v152",
"name": "model_draft.oep_metadata_table_example_v160",
"path": "http://openenergyplatform.org/dataedit/view/model_draft/oep_metadata_table_example_v160",
"format": "PostgreSQL",
"encoding": "UTF-8",
"schema": {
Expand Down Expand Up @@ -380,13 +387,13 @@
}
],
"@id": "https://databus.dbpedia.org/kurzum/mastr/bnetza-mastr/01.04.00",
"@context": "https://github.com/OpenEnergyPlatform/oemetadata/blob/master/metadata/latest/context.json",
"@context": "https://raw.githubusercontent.com/OpenEnergyPlatform/oemetadata/develop/metadata/latest/context.json",
"review": {
"path": "https://github.com/OpenEnergyPlatform/data-preprocessing/issues",
"badge": "Platinum"
},
"metaMetadata": {
"metadataVersion": "OEP-1.5.2",
"metadataVersion": "OEP-1.6.0",
"metadataLicense": {
"name": "CC0-1.0",
"title": "Creative Commons Zero v1.0 Universal",
Expand All @@ -403,4 +410,4 @@
"null": "If not applicable use: null",
"todo": "If a value is not yet available, use: todo"
}
}
}
10 changes: 5 additions & 5 deletions metadata/latest/metadata_key_description.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# OEMetadata - Key Description

This pages describes the key of **OEMetadata version 1.5.2 .** <br>
You can have a look at an empty [template](https://github.com/OpenEnergyPlatform/metadata/blob/master/metadata/v151/template.json) and a filled out [example](https://github.com/OpenEnergyPlatform/metadata/blob/master/metadata/v151/example.json) of the metadata string.
This pages describes the key of **OEMetadata version 1.6.0 .** <br>
You can have a look at an empty [template](https://github.com/OpenEnergyPlatform/metadata/blob/master/metadata/v160/template.json) and a filled out [example](https://github.com/OpenEnergyPlatform/metadata/blob/master/metadata/v160/example.json) of the metadata string.


## JSON Format
Expand Down Expand Up @@ -35,7 +35,7 @@ The JSON format offers different formats:
### General Keys
|#|Key |Description |Example |
|---|---|---|---|
| 1 | name | A file name or database table name. | oep_metadata_table_example_v15 |
| 1 | name | A file name or database table name. | oep_metadata_table_example_v16 |
| 2 | title | A human readable full title including author. | RLI - OEMetadata - Metadata example table |
| 3 | id | An Uniform Resource Identifier (URI) that unambiguously identifies the resource. This can be a URL on the data set. It can also be a Digital Object Identifier (DOI). | https://example.com |
| 4 | description | A description or abstract of the package. It should be usable as summary information for the entire package that is described by the metadata. | Example table used to illustrate the metadata structure and meaning. |
Expand Down Expand Up @@ -114,7 +114,7 @@ The JSON format offers different formats:
|---|---|---|---|
| 15 | **resources** | An array of objects of the data. It describes the data resource as an individual file or (database) table. | |
| 15.1 | profile | The profile of this descriptor according to the profiles specification. This information is retained in order to comply with the "Tabular Data Package" standard. Use "tabular-data-resource" for all tables. | tabular-data-resource |
| 15.2 | name | A name for the entire data package. To comply with the data package standard it must consist of only lowercase alphanumeric character plus ".", "-" and "_". It may not start with a number. In a database, this will be the name of the table within the schema containing it. The name usually corresponds to the file name (minus the file-extension) of the data file describing the resource. | openstreetmap.osm_deu_line |
| 15.2 | name | A name for the entire data package. The name must consist of only lowercase alphanumeric characters or underscore. It must not start with a number or underscore. In a database, this will be the name of the table within the schema containing it. The name can correspond to the file name (minus the file-extension) of the data file describing the resource, if it complies with the naming convention above. Name also contains information about the shema on the OEP, use "." to seperate shema from table name. | openstreetmap.osm_deu_line |
| 15.3 | path | A URL that should be a permanent http(s) address or other path directly linking to the resource. | https://openenergy-platform.org/dataedit/view/openstreetmap/osm_deu_line |
| 15.4 | format | The file extension. 'csv', 'xls', 'json' etc. would be expected to be the standard file extension for this type of resource. When you upload your data to the OEDB, in the shown metadata string, the format will be changed accordingly to 'PostgreSQL', since the data there are stored in a database. | PostgreSQL |
| 15.5 | encoding | Specifies the character encoding of the resource's data file. The values should be one of the ["Preferred MIME Names"](https://www.iana.org/assignments/character-sets/character-sets.xhtml) for a character encoding registered with IANA. If no value for this key is specified then the default is UTF-8. | UTF-8 |
Expand All @@ -124,7 +124,7 @@ The JSON format offers different formats:
|---|---|---|---|
| 15.6 | **schema** | An object that describes the structure of the present data. It contains all fields (columns of the table), the primary key and optional foreign keys. | |
| 15.6.1 | **fields** | An array of objects describing a column and providing name, description, type and unit. | |
| 15.6.1.1 | name | The name of the field. | year |
| 15.6.1.1 | name | The name of the field. The name must consist of only lowercase alphanumeric characters or underscore. It must not start with a number or underscore. | year |
| 15.6.1.2 | description | A text describing the field. | Reference year for which the data were collected. |
| 15.6.1.3 | type | The data type of the field. In case of a geom column in a database, also indicate the shape and CRS. | geometry(Point, 4326) |
| 15.6.1.4 | unit | The unit, preferably SI-unit, that values in this field are mapped to. If 'unit' doesn't apply to a field, use 'null'. If the unit is given in a seperate field, reference this field. | MW |
Expand Down
Loading

0 comments on commit d29f5d5

Please sign in to comment.