Converts codemeta to a representation for the SSHOC Open Marketplace
Project description
Codemeta to SSHOC Open Marketplace
This is a converter to transform data from codemeta (as used by https://tools.clariah.nl) for ingestion into the SSHOC Open Marketplace by communicating via their API.
Installation
Run (preferably in a Python virtual environment):
pip install codemeta2mp
Usage
If you already have a codemeta.json file, just run codemeta2mp --baseurl http://localhost:8080 --username Administrator --password q1w2e3r4t5 codemeta.json to upload it to the SSHOC marketplace (the default credentials and URL are for a local development instance):
- Find the tool you want to convert on https://tools.clariah.nl/ (e.g. https://tools.clariah.nl/frog
- Run this on on it:
curl --header 'Accept: application/json' https://tools.clariah.nl/frog/ | codemeta2mp --baseurl http://localhost:8080 --username Administrator --password q1w2e3r4t5 -
Considerations & Discussion
A conversion from one vocabulary to another always presents some challenges, as terms do not always map exactly one to one. Some decisions and assumptions have to be made by the converter.
The following were made for the conversion from codemeta (as used by the CLARIAH-NL Tools) to the sshoc open marketplace. If any of the SSHOC/EOSC SKOS terms are used directly in the codemeta, then they will of course be preserved as-is.
- SSHOC Invocation Type does not cover all we have in our Software Types, some mappings are sub-optimal.
- EOSC Resource Technology readiness levels go from 1-9, CLARIAH's go from 0-9. We map both our 0 and 1 to their 1.
- EOSC Lifecycle status values we derive from our use of Repostatus for
codemeta:developmentStatus(to indicate maintenance status) and TRL. codemeta:issueTrackergets mapped to SSHOC Marketplace'shelpdesk-url- Software as a Service by definition has at least two
accessible_atURLs after conversion. One pointing to the source code, and one to the service. The marketplace doesn't really have the mechanism for fine-grained control to distinguish the two yet keep the strong relation. - We both use Tadirah for
schema:applicationCategoryakaactivity. This maps one-to-one. - Marketplace has an Austrian bias and uses ÖFOS 2012. Österreichische Version der 'Fields of Science and Technology (FOS) Classification' for
disciplinewhereas CLARIAH-NL has a dutch bias and uses NWO's classification (inschema:applicationCategory. A conversion for this still needs to be established.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file codemeta2mp-0.3.tar.gz.
File metadata
- Download URL: codemeta2mp-0.3.tar.gz
- Upload date:
- Size: 23.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3caa39c47b0591b0971998385ead90662dee776cc7c0d23c3a896f4c5b52bc74
|
|
| MD5 |
bfaf5b3b6df7971885817859217cfc62
|
|
| BLAKE2b-256 |
e0f5aee22b406c9e21c17fe306092ae4bb48646c3fe41ac24caa12acbb7e3480
|