build_schema_list: Create a metadata skeleton list from a csv dataset to make a...

Description Usage Arguments Details Value

View source: R/make_schema.R

Description

Create a metadata skeleton list from a csv dataset to make a JSON-LD description.

Usage

1
2
build_schema_list(csvpath, delimiter = "auto", encoding = "UTF-8",
  base = "https://iisg.amsterdam/resource/", dataset_name = "")

Arguments

csvpath

Path to the csv file for which to create JSON-LD metadata.

delimiter

Delimiter of the file. Default is "auto" to let data.table::fread guess the delimiter. fread is good at that, but "auto" is not what the csvw-standard expects.

encoding

The encoding of the csv-file. Note that data.table::fread used elsewhere only acccepts UTF-8 and Latin1.

base

The base for the URIs that are to be created. You can also change this in the JSON file.

dataset_name

The name of the dataset. If empty (default), defaults to the basename of the csv file.

Details

Obtain a JSON-LD description by writing the resulting list to JSON using write_schema_json. It is not recommended to edit the list in R, but rather to edit that JSON file to fully describe the csv file.

Value

A list describing the csv file.


rijpma/cower documentation built on March 11, 2020, 8:51 a.m.