Returns the @context that write_croissant() writes for a Croissant
version.
Value
Named list: The context, ready for jsonlite::toJSON().
Examples
names(croissant_context("1.1"))#> [1] "@language" "@vocab"
#> [3] "annotation" "arrayShape"
#> [5] "citeAs" "column"
#> [7] "conformsTo" "containedIn"
#> [9] "cr" "data"
#> [11] "dataBiases" "dataCollection"
#> [13] "dataType" "dct"
#> [15] "description" "equivalentProperty"
#> [17] "examples" "extract"
#> [19] "field" "fileObject"
#> [21] "fileProperty" "fileSet"
#> [23] "format" "includes"
#> [25] "isArray" "isLiveDataset"
#> [27] "jsonPath" "key"
#> [29] "md5" "name"
#> [31] "parentField" "path"
#> [33] "personalSensitiveInformation" "prov"
#> [35] "rai" "readLines"
#> [37] "recordSet" "references"
#> [39] "regex" "repeated"
#> [41] "replace" "samplingRate"
#> [43] "sc" "sdVersion"
#> [45] "separator" "source"
#> [47] "subField" "transform"
#> [49] "unArchive" "value"
#> [51] "wd"