Skip to main content

Module context

Module context 

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

CompactIriKeyRef
Borrowed view over a CompactIriKey for cache lookups that don’t need to allocate a fresh Term. Hashes byte-for-byte identically to the owned tuple, so HashMap::get finds the same bucket.
Context
Active context: everything the algorithms need to expand or compact against the current scope.
Definitions
Context term definitions.
IntoIter
Owning iterator over the bindings of a context definition.
InvalidContextKey
Error returned when a context key cannot be expressed in syntax form.
Iter
Iterator over the bindings of a context definition.
Key
Context key.
KeywordAliases
Cached fixed-keyword aliases for an active context.
ModuloProtected
Wrapper to consider a term definition without the @protected flag.
NormalTermDefinition
Definition of an ordinary term, as processed from a context.
ShardedMemo
Memo map split into independently locked shards.
Type
The @type entry of a context definition.
TypeTermDefinition
@type term definition.

Enums§

Binding
Term binding.
BindingRef
Term binding reference.
BindingTerm
Term a context binding defines.
ContextRef
Either a borrowed context or an owned one held behind a box.
InvalidContextError
Error returned by Context::into_syntax_definition and related conversions.
InvalidVocab
Error returned when a context vocabulary is set to an invalid value.
KeyOrType
Context definition key that may also be the @type entry.
Nest
Value of the @nest entry of a term definition: the term under which the property is nested.
TermDefinition
Term definition.
TermDefinitionRef
Term definition reference.

Constants§

CACHED_KEYWORDS
13 keywords supported by KeywordAliases, in cache-array order.

Traits§

IntoSyntax
Conversion of a processed context back into its syntactic form.

Type Aliases§

CompactIriKey
Cache key for Context::compact_iri_cache: (var, vocab, reverse, mode).
DefinitionEntryRef
Binding of a context definition, key and term definition together.
DefinitionParts
Term definitions of a context, split from its @type definition.
PrefixTerm
A prefix-eligible term paired with the term it maps to.