Turn a parsed JSON response (from jsonlite::fromJSON(simplifyVector = FALSE)) into a list of evidence items, each a list with source,
record, type, title, year and url. These functions do not use the
network; nc_collect() calls them on live responses.
Usage
nc_normalize_orcid(json)
nc_normalize_openalex(json)
nc_normalize_datacite(json)
nc_normalize_openaire(json)Examples
ex <- system.file("extdata", "examples", "orcid.json", package = "narrativecv")
items <- nc_normalize_orcid(jsonlite::fromJSON(ex, simplifyVector = FALSE))
length(items)
#> [1] 10
items[[1]]
#> $source
#> [1] "orcid"
#>
#> $record
#> [1] "person"
#>
#> $type
#> NULL
#>
#> $title
#> [1] "Josiah Carberry"
#>
#> $year
#> NULL
#>
#> $url
#> [1] "https://orcid.org/0000-0002-1825-0097"
#>