Learn R Programming

finto (version 0.1.1)

fetch_profession_hierarchy: Fetch hierarchy of professions from Finto API

Description

This function retrieves broader/narrower relationships and constructs a hierarchical structure.

Usage

fetch_profession_hierarchy(concept_uri, vocid = "mts", depth = 3)

Value

A data.frame representing the hierarchy.

Arguments

concept_uri

The URI of the starting profession (root).

vocid

The vocabulary ID (default: "mts").

depth

The depth of hierarchy to fetch (default: 3).

Examples

Run this code
hierarchy_df <- fetch_profession_hierarchy("http://urn.fi/URN:NBN:fi:au:mts:m3357")
print(hierarchy_df)

Run the code above in your browser using DataLab