Module sophia_api::term

source ·
Expand description

I define how RDF terms (such as IRIs, blank nodes and literals) are represented in Sophia.

I provide the main trait Term, and a number of auxiliary types and traits, such as TermKind, FromTerm

Re-exports

Modules

  • I define the BnodeId wrapper type, which guarantees that the underlying str satisfies the BLANK_NODE_LABEL rule in Turtle (without the leading _:).
  • I define the LanguageTag wrapper type, which guarantees that the underlying str is a valid BCP47 language tag.
  • I define generic traits and default implementations for matchers, objects that can be used to match zero, one or several terms.
  • I define the VarName wrapper type, which guarantees that the underlying str satisfies the VARNAME rule in SPARQL.

Structs

  • A wrapper for any term type that ensures comparability

Enums

Traits

Functions

Type Aliases