Expand description

This crate provides functions for validating IRIs and IRI references, as well as for resolving IRI references agains a given base IRI.

It is developed as a part of Sophia, an RDF and Linked Data toolkit in Rust, but can be used independantly.

Modules

Error and result type for IRI resolution.

Implementation of IRI resolution as per [RFC 3987].

Test module for sophia_iri.

Structs

A str satisfying the IRI rule in RFC-3687.

A Box<str> satisfying the IRI-reference rule in RFC-3687.

A str satisfying the IRI rule in RFC-3687.

A Box<str> satisfying the IRI-reference rule in RFC-3687.

Traits

Automatic trait for IsIri, providing cheap conversion to Iri.

Automatic trait for IsIriRef, providing cheap conversion to IriRef.

Marker trait guaranteeing that the underlying str is a valid IRI-reference (i.e. absolute, with an optional fragment identifier)

Marker trait guaranteeing that the underlying str is a valid IRI (i.e. absolute or relative, with an optional fragment identifier)

Functions

Check whether txt is an absolute IRI reference.

Check whether txt is a relative IRI reference.

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

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