Finds the term matching the query text, and returns its IRI. If the query text is already a IRI, it is returned as is.
pk_get_iri(text, as, exactOnly = FALSE, nomatch = NA, verbose = FALSE)
character. The search text to be resolved.
character. The ontology or ontologies as which to find the term.
Can be provided in several ways: (1) IRI of the ontology; (2) the ID space
for OBO ontologies such as UBERON, VTO, etc; (3)
logical. Whether to require an exact match. If TRUE, only the first exact match is returned. Default is FALSE.
the value to return if there is no match, by default NA.
logical: optional. If TRUE (default), informative messages printed.
The IRI if a match is found.
This uses find_term to find matches, and assumes that the term of interest is a class. If there is an exact match, its IRI will be returned. If there isn't, by default partial, and as a last resort broad, matches will also be considered, although this will result in a warning.