spine-tools / Spine-Toolbox

Spine Toolbox is an open source Python package to manage data, scenarios and workflows for modelling and simulation. You can have your local workflow, but work as a team through version control and SQL databases.
https://www.tools-for-energy-system-modelling.org/
GNU Lesser General Public License v3.0
70 stars 17 forks source link

Import a datapackage with metadata #645

Open spine-o-bot opened 3 years ago

spine-o-bot commented 3 years ago

In GitLab by @ererkka on Jul 26, 2018, 16:14

Spine toolbox should be able to import a datapackage including metadata (author, created, source, licenses, etc.). Attached is an example of such a package dp_example.zip

Questions

  1. How are the metadata stored in the Spine data store (.sqlite)?
  2. How does the user choose, which data is this for?
  3. Should we use some additional attributes in the datapackage.json file? Like this: "spine_attrs": { "geography": "Finland", "notes": "", "location": "", "frequency": "1 hour"}

Actions

jkiviluo commented 3 years ago

This shouldn't be just about datapackage. We currently have some support for metadata in the importer, but we need more. There should be multiple metadata rows available that can be used flexibly to entities, entity classes, and parameter values. There should be ability to add the metadata key in addition to the value for whatever is read from the source.

I know this is not clear issue description yet, but just dropping here as a warning.