Expand description

RDF-related languages (e.g. Turtle, SPARQL) often use prefixes to shorten IRIs. This crate provides generic traits and types to handle prefix maps.

Structs

This error is raised when trying to parse an invalid IRI.

A str satisfying the PN_PREFIX? rule in Turtle/SPARQL.

A Box<str> satisfying the PN_PREFIX? rule in Turtle/SPARQL.

Traits

Automatic trait for IsPrefix, providing cheap conversion to Prefix.

Marker trait guaranteeing that the underlying str is a valid Turtle/SPARQL prefix.

A prefix map associates prefixes to namespaces.

Functions

Check whether a str is a valid Turtle/SPARQL prefix (matches ON_PREFIX)