cower: Convert a csv file to nquads using json-ld data description.

Description Usage Arguments

View source: R/cower.R

Description

Convert a csv file to nquads using json-ld data description.

Usage

1
2
cower(csv_path, json_path, nquad_path, compress = TRUE, batch_size = -1L,
  max_size = FALSE)

Arguments

csv_path

The path to the csv file.

json_path

The path to the json-ld data description. Use build_schema_list and schema_json to make one or use COW.

nquad_path

Destination path for nquads. cower will give a warning if the extension does not match the compress option.

batch_size

Batch size for conversion. Default is -1L, all rows at once. For large csv-files that take up considerable memory to convert, setting this to a lower number will preserve memory.

max_size

Set this parameter to an integer to only convert part of the dataset. Useful for testing. Depends on head command line tool.

compress.

Should cower output be a compressed (gz) file? Defaults to TRUE as nquad files can be very large relative to the original file (x10, roughly).


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