GestaltDB Documentation

GestaltDB is an embedded property-graph toolkit with swappable LMDB, LevelDB and RocksDB/PyRex backends, independent serializers, indexed filtering, and Cypher reads and writes. Arrow/Polars ingestion and reusable array-native sampling support graph-data and ML pipelines. Temporal history, sourced claims, ontology compilation and standalone Datalog add explicit knowledge-representation workflows.

Start with Quickstart to create a disposable graph, query it, and sample neighbors. You can use the database, sampling or standalone reasoning without adopting the whole stack. See Components, Interfaces, and Applications for how the components connect.

Choose a capability

Find the path for your application

Goal

Start here

Store and query a property graph

Quickstart, The Property Graph, Cypher Queries

Choose a backend, codec or persistence mode

Storage Backends, Serializers

Load tables and select indexed cohorts

Choose How to Load and Query Data, Load Arrow and Polars Data, Property-Graph Filtering and Indexes

Prepare graph-learning batches

Sampling for graph learning, Random-walk embedding pipelines

Query what applied then or what was recorded then

Temporal and bitemporal data, Read one historical account consistently

Represent sourced/conflicting claims and reason over worlds

Sourced claims and conflicting evidence, Stored rules and support maintenance, Bounded Modal and Epistemic Evaluation

Classify entities using semantic axioms

Ontology reasoning

Apply Datalog rules, literals, negation or aggregates

Facts, Rules, and Explanations, Build typed rules step by step, Typed Datalog: literals, filters, aggregates, Scoped closed-world negation

Compute when conclusions hold

Reason over complete validity ranges, Update and inspect interval-valued conclusions

Integrate reasoning with a database or saved state

Integrate reasoning with application state

Explore or exchange results

Explore graphs and reasoning offline, Exchange current graphs with NetworkX and GEXF

Operate, recover or measure workloads

Compatibility, Migration, and Recovery, Performance and Benchmarks

Important choices

  • Live traversal or reusable arrays? Live sampling reads typed adjacency; SamplerSnapshot / SamplerEngine reuse compact arrays for repeated draws. Filter the eligible graph at build time, not just the seeds. Snapshot construction, loading and steady-state sampling have separate costs (Sampling for graph learning).

  • Historical data or temporal reasoning? Version history selects what is visible at valid/system time; interval reasoning computes when conclusions follow. Recording history does not run Datalog (Reason over complete validity ranges).

  • Stored rules or standalone Datalog? graph.rules operates on temporal claims. Standalone engines consume explicit programs/facts; database extraction, admission and publication use explicit adapters (Runnable API Workflows).

  • Evaluation or publication? A computed result does not automatically modify graph records. Source authentication checks source/state identity, not the truth of assertions or user credentials (Authenticated durable-session resume).

Guide navigation

The first groups cover application workflows. Advanced integration pages retain their exact capability and authentication contracts; engineering references and benchmarks are separated from the first-run path.

Advanced Reasoning Integration