Module sophia_api::prefix
source · 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.
- See
Prefix::new
.
Traits
- 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)
Type Aliases
- Type alias for the return type of
PrefixMap::to_vec
.