knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "README-" )
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.
You can install datasauce
from GitHub with:
# install.packages("devtools") devtools::install_github("ropenscilabs/datasauce")
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()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.