Learn R Programming

finto (version 0.1.1)

get_vocabulary_types: Get type information for a Finto vocabulary

Description

This function retrieves information about the types (classes) of objects in a given Finto/Skosmos vocabulary, using the /types endpoint.

Usage

get_vocabulary_types(vocid, lang = NULL)

Value

A tibble with one row per type, typically containing columns uri, label, and (optionally) superclass.

Arguments

vocid

A Skosmos vocabulary identifier, e.g. "yso".

lang

Optional language code for labels, e.g. "fi" or "en". If NULL (default), the API's default language is used.

Examples

Run this code
types <- get_vocabulary_types("yso", lang = "fi")
print(types)

Run the code above in your browser using DataLab