Learn R Programming

finto (version 0.1.1)

get_hierarchy: Get the hierarchical context for a specific concept from the Finto Skosmos API

Description

Get the hierarchical context for a specific concept from the Finto Skosmos API

Usage

get_hierarchy(vocid, uri, lang = NULL)

Value

A tibble containing the hierarchical context (broader, narrower, prefLabel, etc.) for the specified concept.

Arguments

vocid

The vocabulary ID, e.g., "yso".

uri

The URI of the concept whose hierarchical context to retrieve.

lang

The language code for the labels, e.g., "fi" or "en". Optional.

Examples

Run this code
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