Skip to contents

Get the rdfs:label for a term

Usage

get_label(x, ...)

Arguments

x

A SemsqlConn object.

term_id

character(1) CURIE, e.g. "GO:0006915".

Value

character(1) label, or NA_character_ if not found.

Examples

goref <- semsql_connect(ontology = "go")
#> Connected to SemanticSQL database: /Users/vincentcarey/Library/Caches/org.R-project.R/R/BiocFileCache/40e293b372b_go.db
#> Primary ontology prefix: GO
get_label(goref, "GO:0006915")  # "apoptotic process"
#> [1] "apoptotic process"
disconnect(goref)
#> Disconnected from '40e293b372b_go.db'