Skip to contents

Get label statistics by language in a specific vocabulary from the Finto Skosmos API

Usage

get_label_statistics(vocid)

Arguments

vocid

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

Value

A tibble containing the label statistics for each language, with columns for language, literal, property, and label count.

Examples

result <- get_label_statistics(vocid = "yso")
#> Requesting URL: https://api.finto.fi/rest/v1/yso/labelStatistics
print(result)
#> # A tibble: 12 × 4
#>    language literal      property         labels
#>    <chr>    <chr>        <chr>             <int>
#>  1 en       englanti     skos:prefLabel    32130
#>  2 en       englanti     skos:altLabel      7802
#>  3 en       englanti     skos:hiddenLabel  14896
#>  4 fi       suomi        skos:prefLabel    32603
#>  5 fi       suomi        skos:altLabel     15813
#>  6 fi       suomi        skos:hiddenLabel  17742
#>  7 se       pohjoissaame skos:prefLabel    21661
#>  8 se       pohjoissaame skos:altLabel      1832
#>  9 se       pohjoissaame skos:hiddenLabel   8836
#> 10 sv       ruotsi       skos:prefLabel    32170
#> 11 sv       ruotsi       skos:altLabel     21219
#> 12 sv       ruotsi       skos:hiddenLabel  14738