[][src]Module sophia_api::term

This module defines the API for RDF terms.

Terms are the building blocks of an RDF graph. There are four types of terms: IRIs, blank nodes (BNode for short), literals and variables.

NB: variable only exist in generalized RDF.

Re-exports

pub use simple_iri::SimpleIri;

Modules

matcher

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

simple_iri

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

test

Provide a naive implementation of TTerm for test purposes.

Structs

RawValue

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

Enums

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.

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.