Module rdf_types::vocabulary
source · Expand description
Lexical domain abstractions.
Having to store, clone and compare blank ids, IRIs and literals is expensive
and may become a burden to a RDF-intensive application. This modules defines
the Vocabulary
trait (and similar traits) to abstract away the lexical
representation of resources.
Using vocabularies, an IRI can be represented as a simple integer, or enum type, drastically reducing the cost of storage and comparison.
Structs§
- Blank id index.
- Wrapper type to allow
Term<Id<&V::Iri, &V::BlankId>, &V::Literal>
to be extracted intoTerm
using theExtractFromVocabulary<V>
trait. - Vocabulary that stores IRIs and blank node identifiers with a unique index.
- Iri index.
- Literal index.
- Wrapper type to allow an arbitrary type to be recognized as an RDF IRI predicate.
- Vocabulary wrapper that helps avoid blank id collisions.
Enums§
- Blank node identifier index.
- IRI or index.
- IRI index.
Traits§
- Blank node identifier vocabulary.
- Mutable blank node identifier vocabulary.
- Value that can be embedded into the given vocabulary by consuming it.
- Value that can be embedded into the given vocabulary without consuming it.
- Extract the RDF component values (IRIs, blank node identifiers, etc.) embedded into the vocabulary
V
. - Exports the RDF component values (IRIs, blank node identifiers, etc.) embedded into the vocabulary
V
. - Partly indexed blank node identifier type.
- Partly indexed IRI identifier type.
- Partly indexed literal value type.
- IRI vocabulary.
- Mutable IRI vocabulary.
- Literal value vocabulary.
- Mutable literal value vocabulary.
- Try to extract the RDF component values (IRIs, blank node identifiers, etc.) embedded into the vocabulary
V
. This is the fallible version ofExtractFromVocabulary
. - Vocabulary.
- Mutable vocabulary.
Functions§
- Returns a static reference to unit (no vocabulary).
- Returns a static mutable reference to unit (no vocabulary).
Type Aliases§
- No vocabulary.