|
1 | | -<a href="http://oep.iks.cs.ovgu.de/"><img align="right" width="200" height="200" src="https://avatars2.githubusercontent.com/u/37101913?s=400&u=9b593cfdb6048a05ea6e72d333169a65e7c922be&v=4" alt="OpenEnergyPlatform"></a> |
| 1 | +[](https://travis-ci.org/OpenEnergyPlatform/oemetadata) |
2 | 2 |
|
3 | | -# Open Energy Family - Metadata |
| 3 | +<a href="https://github.com/OpenEnergyPlatform/oemetadata/"><img align="right" width="100" height="100" src="https://raw.githubusercontent.com/OpenEnergyPlatform/organisation/master/logo/OpenEnergyFamily_Logo_OEMetadata.png" alt="OpenEnergyMetadata"></a> |
| 4 | +<a href="https://openenergy-platform.org/"><img align="right" width="100" height="100" src="https://avatars2.githubusercontent.com/u/37101913?s=400&u=9b593cfdb6048a05ea6e72d333169a65e7c922be&v=4" alt="OpenEnergyPlatform"></a> |
4 | 5 |
|
5 | | -OEF metadata schemata, examples and templates package |
| 6 | +# Open Energy Family - Open Energy Metadata (OEM) |
| 7 | + |
| 8 | +Open Energy Metadata (OEM) is an energy metadata standard including a template, examples and a metadata schema. |
| 9 | +It is an extensive set of metadata based on the tabular data package specifications and the FAIR principles. |
| 10 | +The metadata contains multiple fields (keys) in a nested JSON structure. |
| 11 | + |
| 12 | +You can find the latest version right here: |
| 13 | +* [template.json](./metadata/latest/template.json) contains an empty metadata string |
| 14 | +* [metadata_key_description.md](./metadata/latest/metadata_key_description.md) contains a description of each metadata key |
| 15 | +* [example.json](./metadata/latest/example.json) contains a basic metadata example |
6 | 16 |
|
7 | | -[](https://travis-ci.org/OpenEnergyPlatform/oemetadata) |
8 | 17 |
|
9 | 18 | ## License / Copyright |
10 | 19 |
|
11 | | -This repository is licensed under [MIT License (MIT)](https://spdx.org/licenses/MIT.html) |
| 20 | +This repository is licensed under [MIT License (MIT)](https://spdx.org/licenses/MIT.html) <br> |
| 21 | +The oemetadata is licensed under [Creative Commons Zero v1.0 Universal](https://creativecommons.org/publicdomain/zero/1.0/) <br> |
| 22 | +The oemetadata example and oemetadata template are licensed under [Creative Commons Zero v1.0 Universal](https://creativecommons.org/publicdomain/zero/1.0/) |
12 | 23 |
|
13 | 24 | ## Installation |
14 | 25 |
|
15 | | -`pip install oep-oemetadata` |
| 26 | +`pip install oep-metadata` |
16 | 27 |
|
17 | 28 | ## Usage Examples |
18 | 29 |
|
19 | 30 | ``` |
20 | | -from oemetadata.v140.example import OEMETADATA_V140_EXAMPLE |
21 | | -
|
22 | | -print(OEMETADATA_V140_EXAMPLE) |
23 | | -``` |
| 31 | +from metadata.v150.example import OEMETADATA_v150_EXAMPLE |
24 | 32 |
|
| 33 | +print(OEMETADATA_v150_EXAMPLE) |
25 | 34 | ``` |
26 | | -from oemetadata.v140.schema import OEMETADATA_V140_SCHEMA |
27 | 35 |
|
28 | | -print(OEMETADATA_V140_SCHEMA) |
29 | 36 | ``` |
| 37 | +from metadata.v150.schema import OEMETADATA_v150_SCHEMA |
30 | 38 |
|
| 39 | +print(OEMETADATA_v150_SCHEMA) |
31 | 40 | ``` |
32 | | -from oemetadata.v140.template import OEMETADATA_V140_TEMPLATE |
33 | 41 |
|
34 | | -print(OEMETADATA_V140_TEMPLATE) |
35 | 42 | ``` |
| 43 | +from metadata.v150.template import OEMETADATA_v150_TEMPLATE |
36 | 44 |
|
37 | | -## Open Energy Metadata description |
38 | | - |
39 | | -The OEMeta data contains multiple fields/keys in a nested JSON data structure. We [describe](https://github.com/OpenEnergyPlatform/oemetadata/blob/develop/metadata/latest/metadata_key_description.md) |
40 | | -each field/key and update the description for each release if necessary! |
41 | | - |
42 | | -## Development |
43 | | - |
44 | | -### Example for activating virtualenv and install development dependencies: |
45 | | - |
46 | | -1. Create virtualenv in root folder of repo |
47 | | - |
48 | | -`python -m venv venv` |
49 | | - |
50 | | -2. Activate virtualenv |
51 | | - |
52 | | - Linux: |
53 | | - |
54 | | - `. venv/bin/activate` |
55 | | - |
56 | | - Windows: |
57 | | - |
58 | | - `. venv/Scripts/activate` |
59 | | - |
60 | | -3. Install requirements |
61 | | - |
62 | | -`pip install -r requirements.txt` |
63 | | - |
64 | | -### Run tests locally (after above steps): |
65 | | - |
66 | | -Short: |
67 | | - |
68 | | -`pytest` |
69 | | - |
70 | | -Complete: |
71 | | - |
72 | | -`tox -v` |
73 | | - |
74 | | -### If a Python interpreter version is missing: |
75 | | - |
76 | | -Linux (Ubuntu): |
77 | | - |
78 | | -``` |
79 | | -sudo add-apt-repository ppa:deadsnakes/ppa |
80 | | -sudo apt-get update |
81 | | -# Install only missing interpreters: |
82 | | -sudo apt-get install python3.6 |
83 | | -sudo apt-get install python3.7 |
| 45 | +print(OEMETADATA_v150_TEMPLATE) |
84 | 46 | ``` |
85 | 47 |
|
86 | | -### Contributing |
| 48 | +## Contributing |
87 | 49 |
|
88 | 50 | For further contributing infos and conventions see: [CONTRIBUTING.md](./CONTRIBUTING.md) |
89 | 51 |
|
90 | | -### Make PyPI release: |
| 52 | +## Make PyPI release: |
91 | 53 |
|
92 | 54 | First bump version in setup.py, then: |
93 | 55 |
|
|
0 commit comments