Expand description
Context processing algorithm and related types.
Re-exports§
pub use inverse::InverseContext;
Modules§
- inverse
- Inverse context, used to pick terms during compaction.
Structs§
- Compact
IriKey Ref - Borrowed view over a
CompactIriKeyfor cache lookups that don’t need to allocate a freshTerm. Hashes byte-for-byte identically to the owned tuple, soHashMap::getfinds the same bucket. - Context
- Active context: everything the algorithms need to expand or compact against the current scope.
- Definitions
- Context term definitions.
- Into
Iter - Owning iterator over the bindings of a context definition.
- Invalid
Context Key - Error returned when a context key cannot be expressed in syntax form.
- Iter
- Iterator over the bindings of a context definition.
- Key
- Context key.
- Keyword
Aliases - Cached fixed-keyword aliases for an active context.
- Modulo
Protected - Wrapper to consider a term definition without the
@protectedflag. - Normal
Term Definition - Definition of an ordinary term, as processed from a context.
- Sharded
Memo - Memo map split into independently locked shards.
- Type
- The
@typeentry of a context definition. - Type
Term Definition @typeterm definition.
Enums§
- Binding
- Term binding.
- Binding
Ref - Term binding reference.
- Binding
Term - Term a context binding defines.
- Context
Ref - Either a borrowed context or an owned one held behind a box.
- Invalid
Context Error - Error returned by
Context::into_syntax_definitionand related conversions. - Invalid
Vocab - Error returned when a context vocabulary is set to an invalid value.
- KeyOr
Type - Context definition key that may also be the
@typeentry. - Nest
- Value of the
@nestentry of a term definition: the term under which the property is nested. - Term
Definition - Term definition.
- Term
Definition Ref - Term definition reference.
Constants§
- CACHED_
KEYWORDS - 13 keywords supported by
KeywordAliases, in cache-array order.
Traits§
- Into
Syntax - Conversion of a processed context back into its syntactic form.
Type Aliases§
- Compact
IriKey - Cache key for
Context::compact_iri_cache:(var, vocab, reverse, mode). - Definition
Entry Ref - Binding of a context definition, key and term definition together.
- Definition
Parts - Term definitions of a context, split from its
@typedefinition. - Prefix
Term - A prefix-eligible term paired with the term it maps to.