powered by
This function retrieves information about the types (classes) of objects in a given Finto/Skosmos vocabulary, using the /types endpoint.
/types
get_vocabulary_types(vocid, lang = NULL)
A tibble with one row per type, typically containing columns uri, label, and (optionally) superclass.
uri
label
superclass
A Skosmos vocabulary identifier, e.g. "yso".
"yso"
Optional language code for labels, e.g. "fi" or "en". If NULL (default), the API's default language is used.
"fi"
"en"
NULL
types <- get_vocabulary_types("yso", lang = "fi") print(types)
Run the code above in your browser using DataLab