Convert an input string to the most likely source SID (equivalent to PID.)
Value
if the inputted string is a valid SID, return the string. If the inputted string matches a property label, return its SID. If the inputted string matches multiple labels of multiple properties, return the SID of the first hit.
Examples
# if input string is a valid SID
as_pid("S854")
#> # A tibble: 1 × 1
#> x
#> <chr>
#> 1 S854
# if input string matches multiple item labels
as_pid("URL")
#> Inexact match for "URL", closest match = reference URL (P854).
#> # A tibble: 1 × 1
#> x
#> <chr>
#> 1 P854
# if input string matches a single unique label
as_pid("Reference URL")
#> Inexact match for "Reference URL", closest match = reference URL (P854).
#> # A tibble: 1 × 1
#> x
#> <chr>
#> 1 P854