[][src]Module sophia_term::iri

IRIs for identifying resources like specified in RDF.

IRIs themselves are specified in RFC3987.

Naming

According to RFC3987, an IRI is always absolute. An IRI reference, on the other hand, can be absolute or relative (and an absolute IRI reference happens to be an IRI).

In most cases when the documentation talks about IRIs it actually refers to IRI references. Only if IRI reference, absolute IRI or relative IRI are explicitly mentioned does the difference matter.

Modules

error

Error and result type for IRI resolution.

resolve

Implementation of IRI resolution as per [RFC 3987].

test

Test module for sophia_iri.

Structs

Iri

An IRI reference.

IriParsed

Keeps track of the different components of an IRI reference.

Enums

Normalization

Normalization policies are used to ensure that IRIs are represented in a given format.

Constants

GEN_DELIMS

According to RFC3987: gen-delims = ":" / "/" / "?" / "#" / "[" / "]" / "@"

Traits

Resolve

Resolve some kind of IRI with self as the base.

Functions

is_absolute_iri_ref

Check whether txt is an absolute IRI reference.

is_relative_iri_ref

Check whether txt is a relative IRI reference.

is_valid_iri_ref

Check whether txt is a valid (absolute or relative) IRI reference.

is_valid_suffixed_iri_ref

Check whether ns and suffix concatenate into a valid (absolute or relative) IRI reference.