https://github.com/clarin-eric/oai-endpoints-get-formats
https://github.com/clarin-eric/oai-endpoints-get-formats
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/clarin-eric/oai-endpoints-get-formats
- Owner: clarin-eric
- License: other
- Created: 2019-01-10T17:05:28.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-25T15:40:53.000Z (over 7 years ago)
- Last Synced: 2025-09-10T03:14:50.040Z (9 months ago)
- Language: HTML
- Size: 31.3 KB
- Stars: 0
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Script to fetch metadata prefixes from CLARIN metadata providers (B and C centres).
See [https://jira.eosc-hub.eu/browse/EOSCWP10-48](https://jira.eosc-hub.eu/browse/EOSCWP10-48)
# Dependencies
* bash
The following tools/commands will be assumed to be available in the shell environment:
* [curl](https://github.com/curl/curl)
* [jq](https://stedolan.github.io/jq)
* [xmlstarlet](http://xmlstar.sourceforge.net)
Let's assume you have bash and curl. On MacOS, install the dependencies using
[Brew](https://brew.sh/) with the following command:
```sh
brew install jq xmlstarlet
```
# Running
Run the script with bash:
```sh
bash oai-endpoints-get-formats.sh
```
# Output
* JSON file with compiled output: [endpoint-formats.json](./endpoint-formats.json)
* [HTML](./html) generated with [json2table.com](http://json2table.com)
* [preview](https://htmlpreview.github.io/?https://github.com/clarin-eric/oai-endpoints-get-formats/blob/master/html/endpoint-formats.html)