Skip to contents

Export a KRT as RDF (JSON-LD or Turtle)

Usage

as_rdf(
  x,
  format = c("jsonld", "turtle"),
  path = NULL,
  audience = c("author", "public")
)

Arguments

x

A krt_tbl.

format

"jsonld" (default) or "turtle" (requires the rdflib package).

path

Output path, or NULL to return the text.

audience

"author" (default) or "public" (redacts the table first).

Value

The serialized RDF text, or the path (invisibly).

Examples

invisible(as_rdf(krt_example, format = "jsonld"))