Skip to contents

Separate the eg: prefix and the refArea resource identifier from the Compact URI `eg:refArea` or `[eg:refArea]`

Usage

get_prefix(curie)

get_resource_identifier(curie)

Arguments

curie

A Compact URI, for example, 'eg:refArea'.

Value

The prefix, for example, 'eg' from 'eg:refArea'.

Examples

get_prefix("eg:refArea")
#> [1] "eg:"
get_resource_identifier("eg:refArea")
#> [1] "refArea"