Learn R Programming

dtreg (version 1.1.1)

to_jsonld: Write an instance in JSON-LD format

Description

Write an instance of a schema-related class in JSON-LD format as a string

Usage

to_jsonld(instance)

Value

JSON string in JSON-LD format

Arguments

instance

An instance of an R6 class

Examples

Run this code
dt <- dtreg::load_datatype("https://doi.org/21.T11969/aff130c76e68ead3862e")
instance <- dt$data_item(label = "my_results")
result <- dtreg::to_jsonld(instance)

Run the code above in your browser using DataLab