% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/SemsqlConn-S7.R
\name{get_ancestors}
\alias{get_ancestors}
\title{Get all ancestors of a term via entailed edges}
\usage{
get_ancestors(
  x,
  term_id,
  predicates = "rdfs:subClassOf",
  include_self = FALSE,
  ...
)
}
\arguments{
\item{x}{A \code{SemsqlConn} object.}

\item{term_id}{character(1) CURIE.}

\item{predicates}{character vector of predicate CURIEs to follow.
Defaults to \code{"rdfs:subClassOf"}. See \code{\link[=PREDICATES]{PREDICATES()}} for
common values.}

\item{include_self}{logical(1) whether to include the term itself
(default \code{FALSE}).}

\item{...}{not used}
}
\value{
data.frame with columns \code{id}, \code{label}, \code{predicate}.
}
\description{
Get all ancestors of a term via entailed edges
}
\examples{
goref <- semsql_connect(ontology = "go")
get_ancestors(goref, "GO:0006915")
disconnect(goref)
}
