stateDiagram-v2
direction LR
[*] --> EML
state EML {
direction LR
[*] --> A
A --> B: obsoletedBy
B --> C: obsoletedBy
}
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:
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(dataone) | |
# Download a CSV-formatted data file from the KNB | |
# repository, and convert it to a data.frame | |
get_dataframe <- function(pid) { | |
d1c <- D1Client("PROD", "urn:node:KNB") | |
data_raw <- getObject(d1c@mn, pid) | |
data_char <- rawToChar(data_raw) | |
csv_text <- textConnection(data_char) | |
df <- read.csv(csv_text, stringsAsFactors = FALSE) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
title: "abstracts" | |
author: "Matt Jones" | |
date: "10/11/2021" | |
output: html_document | |
--- | |
```{r setup, include=FALSE} | |
knitr::opts_chunk$set(echo = TRUE) | |
library(vroom) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
title: "geopackage" | |
author: "Matt Jones" | |
date: "7/23/2021" | |
output: html_document | |
--- | |
```{r setup, include=FALSE} | |
knitr::opts_chunk$set(echo = TRUE) | |
``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"@context": "https://doi.org/10.5063/schema/codemeta-2.0", | |
"@type": "SoftwareSourceCode", | |
"license": "https://spdx.org/licenses/Apache-2.0", | |
"codeRepository": "https://github.com/codemeta/codemeta", | |
"dateCreated": "2020-02-04", | |
"datePublished": "2020-02-05", | |
"downloadUrl": "https://codemeta.github.io/", | |
"name": "CodeMeta", | |
"description": "CodeMeta is a metadata language for code.", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
title: "FAIR Metrics" | |
author: "Matt Jones" | |
date: "5/8/2019" | |
output: html_document | |
--- | |
```{r setup, include=FALSE} | |
knitr::opts_chunk$set(echo = TRUE) | |
library(dplyr) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
WORKDIR=${PWD} | |
create_repos () { | |
rm -rf repo-split-example repo-split-recent repo-split-history | |
# Create the repo to be split | |
example_repo | |
# Create the repo to contain the historical commits | |
HISTREPO="file://${WORKDIR}/repo-split-history" |
NewerOlder