https://github.com/amoeba/dataspice-example
example repo for dataspice
https://github.com/amoeba/dataspice-example
Last synced: about 2 months ago
JSON representation
example repo for dataspice
- Host: GitHub
- URL: https://github.com/amoeba/dataspice-example
- Owner: amoeba
- Created: 2018-05-22T17:10:58.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-11-10T06:47:10.000Z (over 4 years ago)
- Last Synced: 2025-02-15T19:17:30.372Z (about 2 months ago)
- Homepage: https://amoeba.github.io/dataspice-example
- Size: 112 KB
- Stars: 2
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
- jimsghstars - amoeba/dataspice-example - example repo for dataspice (Others)
README
# dataspice-example
Example repo to show off [dataspice](https://github.com/ropenscilabs/dataspice).
```r
library(dataspice)create_spice() # Creates metadata templates for us
write_spice() # Creates a JSON-LD document from our metadata
build_site() # Creates a web page from our JSON-LD# Optionally, convert to EML
eml <- spice_to_eml()# Validation will show errors after conversion because EML is much richer than
# dataspice/Schema.org so some information will be missing and need to be filled
# in after conversion
EML::eml_validate(eml)
```