redbox-ro-crate

1.0.8 • Public • Published

redbox-ro-crate

Crosswalk a redbox data publication to an ro-crate-metadata.jsonld file. Forked from the old datacrate library and modified as little as possible because for now we just want to get Stash publishing ro-crates instead of datacrates.

Usage

Note that rb2rocrate is an async function

const rb2ro = require('redbox-ro-crate').rb2rocrate;
const datapub = get_metadata_from_rb2_somehow();
const jsonld = await rb2rocrate(datapub);
await fs.writeFile('ro-crate-metadata.jsonld', JSON.stringify(jsonld, null, 2));

To-do

Do a more robust job with the geolocations field using GeoJSON-LD.

Readme

Keywords

Package Sidebar

Install

npm i redbox-ro-crate

Weekly Downloads

50

Version

1.0.8

License

GPL-3.0

Unpacked Size

229 kB

Total Files

13

Last publish

Collaborators

  • mikelynch