sophia_api

Module 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§

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)

Type Aliases§