Skip to main content

DSP-METADATA-GUI Metadata Module

The dsp-metadata-gui is a GUI application written in Python for collecting project specific metadata.

Its aim is to enable researchers and project managers who deposit research data on the DaSCH Service Platform (DSP), to add metadata about the project and datasets to the DSP repository. By providing metadata, the project will be searchable on the platform, which is an integral part of the FAIR principles.

The metadata follows the schema defined by the dsp-ontologies.

Install and run

The application has only been tested on Python 3.10.

Note: There is a number of known potential issues. See the troubleshoot section here.

To be able to use Python 3.10, you may want to use a tool such as pyenv to manage your Python versions.

Installation via pip

To install the application, run:

pip install dsp-metadata-gui

Afterwards, the program can be started by running the command dsp-metadata in your terminal of choice.

Installation from source

Clone this repo, install all requirements as described below and run make run.

Usage

Collecting Metadata

The application is divided into two windows:

  1. The main window lets you organize a list of projects, for which you can collect metadata. Several actions can be performed with projects, e.g. editing or exporting the project.

  2. When editing a project, in the project window, the actual metadata can be added, modified and saved.

To add a project, you will need the project short code, which is assigned to you by the DaSCH Client Services.
A project is always associated with a folder on your local machine. If any files should be included with the metadata import, these files must be within that folder. Once all metadata are added and valid, and the overall RDF graph of the metadata set validates against the ontology, the project can be exported for upload to the DSP.

All data is locally stored in the file ~/DaSCH/config/repos.data. for more detail, see here.

Conversion to V2

The metadata generated by the application conforms to the first version of the data model for metadata.
This corresponds to the data that can currently be viewed in the DaSCH Metadata Browser.

The initial data model will eventually be replaced by the model V2 which introduces major improvements.
Metadata V2 will eventually be collected directly in the web interface rather than in this python application.
In the mean time until the web interface for editing metadata is implemented, this application provides a script to automatically convert V1 .ttl files into V2 .json files.

NB: The conversion can not be fully automated, as the model V2 is more rich in information than V1.
For convenience, the conversion adds the string XX wherever the output can not be determined with sufficient confidence. Please check those instances manually.
The conversion also does some "guessing" work, as e.g. the language of literal values or the display text for URLs. If the output can be determined with a sufficient level of confidence, the conversion will not add XX. However it is still advisable to check the entirety of the output for potential errors.

V2 JSON metadata can again be converted to V2 RDF metadata, using another script. This should not require any additional data cleaning.

The most important changes from V1 to V2 include the following additions:

  • Support for multi-language literals

  • howToCite on project level

  • country property for addresses

  • Creation and modification timestamps

  • JSON schema validation

NB: A new button has been added to run the JSON conversions in the GUI without having to export first.

Development

Development Environment

Poetry

Ensure you have poetry installed.

to install all requirements, run

poetry install

To install packages, use

poetry add <package-name>

Documentation

The documentation is created using mkdocs and mkdocstrings with markdown_include.include. To create the documentation, make sure to install all of these, using pip.

To serve the documentation locally, run make doc. To deploy the documentation to github pages, run make deploy-doc.

Release

Automated releases can be created using release-please.

Automatically publish a new release to PyPI does not work. Run the release GitHub Action manually.

Metadata

Release files for dsp-metadata-gui 8.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dsp-metadata-gui 8.5.0
File Size Uploaded Provenance Actions
dsp_metadata_gui-8.5.0.tar.gz 51.6 kB Without provenance Details for dsp_metadata_gui-8.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dsp-metadata-gui 8.5.0
File Interpreter ABI Platform Actions
dsp_metadata_gui-8.5.0-py3-none-any.whl Python 3 none any Details for dsp_metadata_gui-8.5.0-py3-none-any.whl

Total release size: 102.7 kB

Release files / dsp_metadata_gui-8.5.0.tar.gz

Download URL dsp_metadata_gui-8.5.0.tar.gz
Size 51.6 kB
Tags Source
SHA-256 checksum
How to use checksums
f74e3705a55f30231eae6fb0ef47b5cf89f98aced88eabb431823801643fa481
BLAKE2b-256 checksum
How to use checksums
e3bddce25dedb3c8db5bbd8077cd21ae6ef32a2c8b641e882bdf3e9ab6089b85
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.10.14 Linux/6.5.0-1024-azure

Release files / dsp_metadata_gui-8.5.0-py3-none-any.whl

Download URL dsp_metadata_gui-8.5.0-py3-none-any.whl
Size 51.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1f766dbb2606de7ebbb229c70d6ba1fbcf41cff3c5216447596e1fbe50184e9d
BLAKE2b-256 checksum
How to use checksums
42f42e13261e341ae141a868d50c8e0b5a1d80be8e7079694d69dce402e35fe0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.10.14 Linux/6.5.0-1024-azure

Security for dsp-metadata-gui 8.5.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page