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 into Term using the ExtractFromVocabulary<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§

Traits§

Functions§

Type Aliases§