[][src]Module sophia::term

This module re-exports symbols from sophia_api::term and sophia_term.

Modules

blank_node

Blank node like specified in RDF.

factory

A TermFactory can be used to create terms while preventing the proliferation of duplicate string.

index_map

A trait for bidirectional mappings between terms and indexes of a smaller type.

iri

IRIs for identifying resources like specified in RDF.

literal

RDF literals like specified in RDF.

matcher

This crate defines generic traits and default implementations for matchers, objects that can be used to match zero, one or several terms.

ns

This module re-exports things from sophia_api::ns, to ease transition from older versions of Sophia. It will eventually be deprecated.

simple_iri

Minimal implementation of TTerm, for representing datatype IRIs of literals.

test

Provide a naive implementation of TTerm for test purposes.

variable

Variables like used in SPARQL or universally quantified variables in Notation3.

Structs

RawValue

A raw value is a string possibly split into two parts.

SimpleIri

See module documentation

Enums

Term

Generic type for RDF terms.

TermError

This error is raised when the creation of a term fails.

TermKind

Any TTerm belongs to one of those kinds.

Traits

CopiableTerm

This trait is to CopyTerm and TryCopyTerm what Into is to From. It is automatically implemented by any implementation of TTerm.

CopyTerm

A type that can copy any term.

TTerm

Trait for all RDF terms.

TermData

Trait alias for types holding the textual data of terms.

TryCopyTerm

A type that can copy some terms.

Functions

same_graph_name

Check the equality of two graph names (Option<&Term>) possibly of different types.

term_cmp

Compare two terms:

term_eq

Compare two terms for syntactic equality.

term_format

Format the given term in a Turtle-like format.

term_hash

Hash a term

term_to_string

Formats the given term in to a string.

Type Definitions

ArcTerm

Convenient alias for a specialization of Term<T>.

BoxTerm

Convenient alias for a specialization of Term<T>.

MownTerm

Convenient alias for a specialization of Term<T>.

RcTerm

Convenient alias for a specialization of Term<T>.

RefTerm

Convenient alias for a specialization of Term<T>.

Result

Type alias for Result with default error TermError.

StaticTerm

Convenient alias for a specialization of Term<T>.