Skip to content

Instantly share code, notes, and snippets.

View mbjones's full-sized avatar

Matt Jones mbjones

View GitHub Profile

DataONE Data Package Upload Example

Table of Contents

This is an example of how to upload content into a repository that implements the DataONE Tier 3 MNStorage API. We focus on a simple yet complete data package example that involves two CSV data files, one EML metadata file, and one OAI-ORE resource map file. This example is based on content in the following published dataset, but has some changes to simplify the example:

@mbjones
mbjones / generate
Created July 30, 2016 00:53 — forked from arfon/generate
Let's try and generate some codemeta files.
#!/usr/bin/ruby
# For an OO language, this is distinctly procedural. Should probably fix that.
require 'json'
details = Hash.new({})
capture_params = [
{ :name => "title", :message => "Enter project name." },
{ :name => "url", :message => "Enter the URL of the project repository." },