🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

datacrate

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

datacrate

utilities for building and manipulating DataCrate data packages

1.0.12
latest
npm
Version published
Weekly downloads
2
-97.33%
Maintainers
1
Weekly downloads
 
Created
Source

datacrate

Node.js utilities for building and working with DataCrates.

(The DataCrate Standard is here: https://github.com/UTS-eResearch/datacrate)

This started as a library for crosswalking ReDBox 2 data publications into CATALOG.json files as part of the publication workflow. It should turn into a general-purpose toolkit which makes it easy to build things like Provisioner bots and publication pipelines.

It doesn't generate the HTML for a DataCrate - that functionality is in the Calcyte package, though in time this module might include that as a dependency.

Usage

const datacrate = require('datacrate').catalog;
const datapub = get_metadata_from_rb2_somehow();
const catalog = datacrate.datapub2catalog(datapub);
fs.writeFileSync('CATALOG.json', JSON.stringify(catalog, null, 2));

random.jshis is a utility to generate plausible random DataCrates with no payloads, for testing things like Solr indexers. It generates random text descriptions and a reasonable distribution of keywords and authors.

node ./random.js -d ./output/ -n 1000

To-do

Refactor this module so that it's a library of components which can be used to build crosswalks like datapub2catalog, and then factor the rb2-specific stuff out into its own modules.

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

Keywords

datacrate

FAQs

Package last updated on 23 Aug 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts