fluree/db

Fluree database library

What it solves

Fluree DB is a graph database built for data that matters: it keeps every change in history (time travel), lets you branch and merge data like code, verifies transactions with signatures, and still performs faster than specialized engines that lack these features. It also integrates full-text and vector search directly into the query engine, and supports multiple query languages (SPARQL, JSON-LD, openCypher) on the same underlying engine.

How it works

Data is stored as graph facts (subject-predicate-object triples) in immutable, append-only transactions. Each transaction is a commit that can be queried at any point in time by transaction number, ISO timestamp, or commit ID. The engine uses a columnar integer-ID design for speed, with a cost-based planner and fast-path operators that fuse scan and aggregate. Search (BM25 full-text, HNSW vector similarity) is built into the query engine, so results can participate in joins, filters, and aggregations like any other graph pattern. Branching works like git: you can fork a ledger, make changes, rebase, and merge, with each branch having its own commit history. Access control is enforced at the individual triple level, and reasoning (RDFS, OWL 2 RL, Datalog rules) infers facts you didn't explicitly store.

Who it’s for

Developers and data engineers who need a graph database with temporal queries, verifiable data, and git-like workflows. It's also aimed at AI agent builders: the CLI includes Fluree Memory for persistent project memory for coding assistants, and Fluree Unstructured to turn documents into knowledge graphs. It's suitable for large-scale datasets (billions of triples) and supports multiple storage backends (memory, file, S3, IPFS).

Highlights

  • Time travel: query data as of any transaction number, ISO timestamp, or commit ID.
  • Git-like branching and merging for data, with independent commit histories per branch.
  • Triple-level access control enforced at query and transaction time.
  • Integrated BM25 full-text and HNSW vector search, no external services.
  • Edge annotations: attach properties to relationships (RDF 1.2 / SPARQL 1.2).
  • Reasoning: RDFS, OWL 2 RL, and Datalog rules.
  • Standards-first: full SPARQL 1.1, JSON-LD, openCypher, GraphQL.
  • High performance: 17.5 ms geo mean on DBLP-core, 10x faster than next engine on Wikidata-truthy.
  • Verifiable transactions with JWS signatures and Verifiable Credentials.
  • SHACL validation, OWL ontology imports, and querying Apache Iceberg / relational sources.

Related

  • Project
  • Project
  • Project
  • Project
  • Project