Skip to contents

Download the full ontology in JSON, OWL/RDF, or CSV format.

Usage

export_ontology(format = c("json", "owl", "csv"), file = NULL, depth = 4L)

Arguments

format

Export format: "json", "owl", or "csv".

file

Output file path. If NULL, auto-named as "unitcm_ontology.{ext}".

depth

Tree depth for JSON export (default 4).

Value

Invisible file path.

Examples

if (FALSE) { # \dontrun{
export_ontology("csv")
export_ontology("json", depth = 2, file = "ontology_shallow.json")
} # }