R6 class providing access to vocabulary operations.
Paginated vocabulary list.
Vocabulary details.
Vocabulary statistics.
Domain statistics for vocabularies.
Paginated concepts.
new()Create a new VocabulariesResource.
VocabulariesResource$new(base_req)base_reqBase httr2 request object.
list()List all vocabularies.
VocabulariesResource$list(
include_stats = FALSE,
include_inactive = FALSE,
sort_by = "name",
sort_order = "asc",
page = 1,
page_size = 100
)include_statsInclude vocabulary statistics. Default FALSE.
include_inactiveInclude inactive vocabularies. Default FALSE.
sort_bySort field ("name", "priority", "updated"). Default "name".
sort_orderSort order ("asc" or "desc"). Default "asc".
pagePage number. Default 1.
page_sizeResults per page. Default 100.
get()Get vocabulary details.
VocabulariesResource$get(
vocabulary_id,
include_stats = FALSE,
include_domains = FALSE
)vocabulary_idThe vocabulary ID.
include_statsInclude statistics. Default FALSE.
include_domainsInclude domain breakdown. Default FALSE.
stats()Get vocabulary statistics.
VocabulariesResource$stats(vocabulary_id)vocabulary_idThe vocabulary ID.
domains()Get vocabulary domains.
VocabulariesResource$domains(vocabulary_ids = NULL, page = 1, page_size = 50)vocabulary_idsFilter by vocabulary IDs (optional).
pagePage number. Default 1.
page_sizeResults per page. Default 50.
concepts()Get concepts in a vocabulary.
VocabulariesResource$concepts(
vocabulary_id,
domain_id = NULL,
concept_class_id = NULL,
standard_only = FALSE,
page = 1,
page_size = 50
)vocabulary_idThe vocabulary ID.
domain_idFilter by domain.
concept_class_idFilter by concept class.
standard_onlyOnly standard concepts. Default FALSE.
pagePage number. Default 1.
page_sizeResults per page. Default 50.
clone()The objects of this class are cloneable with this method.
VocabulariesResource$clone(deep = FALSE)deepWhether to make a deep clone.