Project Status: Concept – Minimal or no implementation has been done yet, or the repository is only intended to be a limited example, demo, or proof-of-concept. Travis-CI Build Status

knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "README-"
)

datasauce

The goal of datasauce is to facilitate creation and manipulation of metadata which uses Google's Structured Data format; essentially JSON-LD formatted files which use https://schema.org/Dataset. Users can check their document interactively using the Structured Data Testing Tool. See Google's Dataset Documentation for more on this approach.

The rOpenSci Project may use datasauce to create and manage metadata about all of the open data sources that can be accessed with rOpenSci packages. This could facilitate discovery of relevant data.

Installation

You can install datasauce from GitHub with:

# install.packages("devtools")
devtools::install_github("ropenscilabs/datasauce")

Example

Concept design stage still.

Get data.frames with definitions of permitted properties in a https://schema.org/Dataset and all subclasses used within Dataset:

ds <- datasauce:::get_schemas("Dataset")
ds$Dataset

Get a simple templating function for creating any schema.org type:

dataset <- datasauce:::template_constructor("Dataset")
# hit tab to see all possible fields
ds <- dataset(name = "My dataset")

(currently does not indicate the type of object expected in each field...)

Get all possible classes and properties in schema.org

datasauce:::get_classes()
datasauce:::get_properties()


ropenscilabs/datasauce documentation built on May 17, 2022, 4:25 p.m.