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]

[src]

Set a default prefix.

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

[src]

Add a prefix to the mapping.

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

[src]

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.

[src]

Expand a CURIE, returning a complete IRI.

[src]

Expand a parsed Curie, returning a complete IRI.

Trait Implementations

impl Default for PrefixMapping
[src]

[src]

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