Skip to contents

Get children concepts for a specific concept from the Finto Skosmos API

Usage

get_children_concepts(vocid, uri, lang = NULL)

Arguments

vocid

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

uri

The URI of the concept whose children concepts to retrieve.

lang

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

Value

A tibble containing the children concepts (prefLabel, uri, hasChildren) for the specified concept.

Examples

children <- get_children_concepts(vocid = "yso",
 uri = "http://www.yso.fi/onto/yso/p690", lang = "fi")
print(children)
#> # A tibble: 20 × 3
#>    uri                               prefLabel                      hasChildren
#>    <chr>                             <chr>                          <lgl>      
#>  1 http://www.yso.fi/onto/yso/p27641 rajapinnat (tietojenkäsittely) TRUE       
#>  2 http://www.yso.fi/onto/yso/p26592 tietokoneohjelmat              TRUE       
#>  3 http://www.yso.fi/onto/yso/p14670 hypermedia                     FALSE      
#>  4 http://www.yso.fi/onto/yso/p22929 ontologiat (tiedonhallinta)    FALSE      
#>  5 http://www.yso.fi/onto/yso/p24015 linkit                         FALSE      
#>  6 http://www.yso.fi/onto/yso/p1312  matkaliput                     TRUE       
#>  7 http://www.yso.fi/onto/yso/p25964 tietorakenteet                 FALSE      
#>  8 http://www.yso.fi/onto/yso/p23971 ohjelmistopaketit              TRUE       
#>  9 http://www.yso.fi/onto/yso/p22933 korpukset                      FALSE      
#> 10 http://www.yso.fi/onto/yso/p12828 multimedia                     FALSE      
#> 11 http://www.yso.fi/onto/yso/p4047  verkkosivustot                 TRUE       
#> 12 http://www.yso.fi/onto/yso/p4050  WWW-sivut                      FALSE      
#> 13 http://www.yso.fi/onto/yso/p18458 tehosteet                      TRUE       
#> 14 http://www.yso.fi/onto/yso/p23564 verkkosyötteet                 TRUE       
#> 15 http://www.yso.fi/onto/yso/p25920 kehitysalustat                 TRUE       
#> 16 http://www.yso.fi/onto/yso/p38232 ohjelmistokirjastot            FALSE      
#> 17 http://www.yso.fi/onto/yso/p8441  tiedostot                      TRUE       
#> 18 http://www.yso.fi/onto/yso/p4361  handsfree-toiminto             FALSE      
#> 19 http://www.yso.fi/onto/yso/p7989  kyberavaruus                   FALSE      
#> 20 http://www.yso.fi/onto/yso/p21231 salasanat                      FALSE