[][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.

Structs

Iri

Representation of an IRI.

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.