https://github.com/salvafern/codemeta2jerico
https://github.com/salvafern/codemeta2jerico
jerico-relevant
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/salvafern/codemeta2jerico
- Owner: salvafern
- Created: 2024-01-17T10:04:40.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-28T13:55:14.000Z (about 1 year ago)
- Last Synced: 2025-01-11T20:31:28.032Z (4 months ago)
- Topics: jerico-relevant
- Language: R
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Convert Codemeta files to Jerico metadata
Jerico uses json files to record software metadata. This is similar to what Codemeta does. This repository contains a script that transforms a `codemeta.json` file into a `jerico.json` file.
1. Open the script at `./R/codemeta2jerico.R`
2. Add the url of the new codemeta.json file to the list `files`
https://github.com/salvafern/codemeta2jerico/blob/4f94d87a2573b769081c2c4363f09e09973893d8/R/codemeta2jerico.R#L48
3. Run the script using R
`$ R ./R/codemeta2jerico.R`
4. Resulting files are saved at `./output`## Requirements
The software MUST HAVE a `codemeta.json` file. To create a `codemeta.json` file you may:
* R: All R packages must have a `DESCRIPTION` file with information about the project. Use [codemetar](https://github.com/ropensci/codemetar ) to generate `codemeta.json`
* Python: All python extensions have a setup.py file. Use codemetapy [codemetapy](https://github.com/proycon/codemetapy)
* Java: Software in Java MAY have a pom.xml file with information about the project. This file can be transformed into codemeta.json using [codemetapy](https://github.com/proycon/codemetapy) as `$ codemetapy pom.xml`. If this file is not available, it can be generated with [maven](https://maven.apache.org/)