to_jsonld {dtreg}R Documentation

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)

Arguments

instance

An instance of an R6 class

Value

JSON string in JSON-LD format

Examples

dt <- dtreg::load_datatype("https://doi.org/21.T11969/74bc7748b8cd520908bc")
instance <- dt$inferential_test_output(label = "my_results")
result <- dtreg::to_jsonld(instance)


[Package dtreg version 1.0.0 Index]