powered by
Get the hierarchical context for a specific concept from the Finto Skosmos API
get_hierarchy(vocid, uri, lang = NULL)
A tibble containing the hierarchical context (broader, narrower, prefLabel, etc.) for the specified concept.
The vocabulary ID, e.g., "yso".
The URI of the concept whose hierarchical context to retrieve.
The language code for the labels, e.g., "fi" or "en". Optional.
hierarchy <- get_hierarchy(vocid = "yso", uri = "http://www.yso.fi/onto/yso/p24489", lang = "fi") print(hierarchy)
Run the code above in your browser using DataLab