pg_ripple
pg_ripple · Provides an RDF knowledge-graph engine with SPARQL, SHACL, Datalog reasoning, federation, and graph analytics inside PostgreSQL 18.
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 101085 | pg_ripple | pg_ripple | 0.136.0 | FEAT | Apache-2.0 | Rust |
PostgreSQL · 18
Usage
Sources:
pg_ripple is a PostgreSQL 18 RDF knowledge-graph engine with SPARQL querying, SHACL validation, Datalog reasoning, federation, and graph analytics. It stores graph data inside PostgreSQL; the reviewed release is 0.136.0 and requires superuser installation.
Core Workflow
Preloading is required for the HTAP merge worker and shared-memory dictionary cache. Append the extension name to the existing shared_preload_libraries list and restart PostgreSQL before running this SQL.
load_turtle returns the number of loaded triples. sparql returns one JSONB object per result row, keyed by query variables.
Main SQL Surface
register_prefixmanages short namespace prefixes.insert_triple,delete_triple, andtriple_countprovide direct triple operations and basic inspection.load_turtleloads Turtle documents; named-graph APIs separate tenants or provenance sources.sparqland its explain/cursor variants execute graph queries from SQL.- SHACL, Datalog, inference, vector/hybrid search, subscriptions, export, and administration APIs are documented as separate feature groups.
Operational Boundary
This source line targets PostgreSQL 18; do not assume compatibility with earlier majors. The extension creates internal schemas and predicate-specific storage, including delta, main, and tombstone relations. Use its public functions rather than modifying internal objects. Basic calls can load the library on demand, but production HTAP and shared-memory features need shared_preload_libraries and a restart.
Treat this broad, rapidly evolving API as versioned. Pin the extension and any HTTP or relay companions, validate backup/restore and upgrades, and review the security and outbound-federation settings before exposing endpoints or remote sources.