Checks that a round-trip of expanding and compacting json-ld matches the original document. Incorrect schema terms or types (or spelling errors of properties) will cause this round-trip to fail by not fully compacting.
codemeta_validate(codemeta = "codemeta.json", context = NULL)
codemeta | path/filename to a codemeta.json file, or json-ld text string |
---|---|
context | URL (or path or json string) for the codemeta context. Leave as default or use appropriate DOI for the version; see details. |
by default, validation will use the original context from the import file.
ex <- system.file("examples/codemeta.json", package="codemetar") codemeta_validate(ex)#> [1] TRUE