Struct curie::PrefixMapping [] [src]

pub struct PrefixMapping { /* fields omitted */ }

Maps prefixes to base URIs and allows for the expansion of CURIEs (Compact URIs).

Methods

impl PrefixMapping
[src]

Set a default prefix.

This is used during CURIE expansion when there is no prefix, just a reference value.

Add a prefix to the mapping.

This allows this prefix to be resolved when a CURIE is expanded.

Remove a prefix from the mapping.

Future calls to expand_curie_string or expand_curie that use this prefix will result in a ExpansionError::Invalid error.

Expand a CURIE, returning a complete IRI.

Expand a parsed Curie, returning a complete IRI.

Trait Implementations

impl Default for PrefixMapping
[src]

Returns the "default value" for a type. Read more