Skip to main content

Crate triblespace_core

Crate triblespace_core 

Source

Re-exports§

pub use arrayvec;

Modules§

attribute
Attribute definition and usage metadata. Typed attribute references with carried identity-determining facts.
blob
Blob storage, schemas, and conversion traits. Anything that can be represented as a byte sequence.
debug
Diagnostic wrappers for testing and debugging the query engine.
examples
Example namespaces and sample datasets for documentation and tests. This module contains an example namespace for use in the documentation. It is not intended to be used in practice.
export
Export utilities for serialising trible data. Export utilities for serialising trible data into external formats.
id
Identifier types and generation strategies. Identifier utilities and ownership mechanisms for Trible Space.
import
Import utilities for deserialising external data into tribles. Data import and conversion helpers bridging external formats into Trible Space.
inline
Inline types, schemas, and conversion traits. Inline<S> (32-byte stored payload), Encoded<V> (the Inline-or-Blob sum that entity!{} builds), and the conversion traits between them. For a deeper look at portability goals, common formats, and schema design, refer to the “Portability & Common Formats” chapter in the project book.
macros
Re-exported proc-macros and helper macros for entity, pattern, and query construction.
metadata
Bootstrap metadata namespace for describing schemas and attributes. Metadata namespace for the triblespace crate.
patch
Adaptive radix tree (PATCH) used as the backing store for trible indexes. Persistent Adaptive Trie with Cuckoo-compression and Hash-maintenance (PATCH).
prelude
Commonly used re-exports for convenient glob imports. This module re-exports the most commonly used types and traits from the triblespace crate. It is intended to be glob imported as use triblespace::prelude::*;.
query
Query engine: constraints, variables, and the Atreides join algorithm. Query facilities for matching tribles by declaring patterns of constraints. Build queries with the find! macro which binds variables and combines constraint expressions:
repo
Repository layer: blob stores, branch stores, commits, and workspaces. This module provides a high-level API for storing and retrieving data from repositories. The design is inspired by Git, but with a focus on object/content-addressed storage. It separates storage concerns from the data model, and reduces the mutable state of the repository, to an absolute minimum, making it easier to reason about and allowing for different storage backends.
trible
Trible representation, sets, fragments, and spread helpers. Representation of a single knowledge graph edge.

Macros§

and
Combines constraints into an IntersectionConstraint (logical AND).
exists
Returns true when a query produces at least one row.
find
Iterate over query results, converting each variable via TryFromInline.
id_hex
Creates an Id from a hex string literal.
ignore
Wraps a constraint while hiding one or more variables from the outer query.
or
Combines constraints into a UnionConstraint (logical OR).
temp
Introduces one or more temporary query variables for a nested constraint.