Learn R Programming

finto (version 0.1.1)

get_narrower_transitive: Get narrower transitive concepts for a specific concept from the Finto Skosmos API

Description

Get narrower transitive concepts for a specific concept from the Finto Skosmos API

Usage

get_narrower_transitive(vocid, uri, lang = NULL)

Value

A tibble containing the narrower transitive concepts (prefLabel and uri) for the specified concept.

Arguments

vocid

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

uri

The URI of the concept whose narrower transitive hierarchy to retrieve.

lang

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

Examples

Run this code
narrow <- get_narrower_transitive(vocid = "yso",
uri = "http://www.yso.fi/onto/yso/p690", lang = "fi")
print(narrow)

Run the code above in your browser using DataLab