Skip to contents

This function retrieves RDF data for a given concept from the Finto API. The user only needs to provide the asteriID, which is appended to a fixed base URI.

Usage

fetch_kanto_info(asteriID, format = "application/json")

Arguments

asteriID

The unique identifier to append to the base URI.

format

The MIME type of the serialization format (e.g., "application/rdf+xml" or "text/turtle"). Default is "application/json".

Value

A tibble containing the RDF data for the concept.

Examples

concept_data <- fetch_kanto_info(asteriID = "000094320")
#> Requesting URL: https://api.finto.fi/rest/v1/data?uri=http%3A%2F%2Furn.fi%2FURN%3ANBN%3Afi%3Aau%3Afinaf%3A000094320&format=application%2Fjson
print(concept_data)
#> # A tibble: 1 × 24
#>   uri     type  prefLabel altLabel variantName hiddenLabel authorizedAccessPoint
#>   <chr>   <chr> <chr>     <chr>    <chr>       <chr>       <chr>                
#> 1 http:/… http… A:son-Lj… Ljungbe… Ljungberg,… NA          A:son-Ljungberg, Ing…
#> # ℹ 17 more variables: note <chr>, birthDate <chr>, deathDate <chr>,
#> #   birthPlace <chr>, deathPlace <chr>, profession <chr>, language <chr>,
#> #   title <chr>, country <chr>, relatedPerson <chr>, isni <chr>, source <chr>,
#> #   exactMatch <chr>, closeMatch <chr>, inScheme <chr>, created <chr>,
#> #   modified <chr>