% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ontology.R
\name{export_ontology}
\alias{export_ontology}
\title{Export the TCM ontology}
\usage{
export_ontology(format = c("json", "owl", "csv"), file = NULL, depth = 4L)
}
\arguments{
\item{format}{Export format: \code{"json"}, \code{"owl"}, or \code{"csv"}.}

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

\item{depth}{Tree depth for JSON export (default 4).}
}
\value{
Invisible file path.
}
\description{
Download the full ontology in JSON, OWL/RDF, or CSV format.
}
\examples{
\dontrun{
export_ontology("csv")
export_ontology("json", depth = 2, file = "ontology_shallow.json")
}
}
