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§
- Invalid
Prefix - This error is raised when trying to parse an invalid IRI.
- Prefix
- See
Prefix::new.
Traits§
- AsPrefix
- Automatic trait for
IsPrefix, providing cheap conversion toPrefix. - IsPrefix
- Marker trait guaranteeing that the underlying
stris a valid Turtle/SPARQL prefix. - Prefix
Map - A prefix map associates prefixes to namespaces.
Functions§
- is_
valid_ prefix - Check whether a
stris a valid Turtle/SPARQL prefix (matches ON_PREFIX)
Type Aliases§
- Prefix
MapPair - Type alias for the return type of
PrefixMap::to_vec.