Skip to main content

Crate triblespace_core

Crate triblespace_core 

Source

Re-exports§

pub use arrayvec;

Modules§

attribute
Attribute definition and usage metadata. Field helper type used by the query macros.
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.
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.
value
Value types, schemas, and conversion traits. Value type and conversion traits for schema types. For a deeper look at portability goals, common formats, and schema design, refer to the “Portability & Common Formats” chapter in the project book.

Macros§

and
Combines constraints into an IntersectionConstraint (logical AND).
exists
find
Iterate over query results, converting each variable via TryFromValue.
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