Guides
Practical, task-oriented cookbooks for Fluree’s key features. Each guide shows working patterns you can adapt to your use case.
If you’re new to Fluree, start with the Getting Started section first.
Cookbooks
Query Patterns
Recipes for the list-value and path operators: dense / gap-filled series with unwind + range, collecting values into lists, the collect→unwind round-trip, working with list values, and shortest-path queries.
Cypher
Querying and writing with openCypher: modeling a property graph, querying relationships, MERGE find-or-create, updates and deletes, paths and shortest path, aggregation, and cross-surface round-trips with JSON-LD/SPARQL.
SPARQL
The Fluree-specific SPARQL surface (the 1.1 basics assumed): time travel with FROM @t:, fact history via << s p o >> f:t/f:op, RDF 1.2 edge annotations ({| |}, ~, rdf:reifies), cross-ledger FROM/GRAPH queries, and cross-surface round-trips.
Full-Text and Vector Search
Set up BM25 full-text search and vector similarity. Insert searchable data, write relevance-ranked queries, combine search with graph patterns, and build hybrid text+vector search.
Time Travel
Practical patterns for temporal queries: audit trails, point-in-time comparison, compliance snapshots, recovering deleted data, and transaction metadata.
Branching and Merging
Git-like workflows for data: safe experimentation, review-before-merge, multi-environment setups, feature branches, and rebase strategies.
Access Control Policies
Set up fine-grained access control: department isolation, role-based access, property redaction, multi-tenant isolation, and default-deny patterns.
SHACL Validation
Define data quality constraints: required properties, datatype validation, value ranges, string patterns, cardinality, and allowed values.
Edge Annotations
Attach properties to a relationship: model property-graph edges, record statement-level provenance, represent parallel relationships, query inline or annotation-rooted, and understand the retract cascade — in JSON-LD and SPARQL 1.2.