4store

maintenance

by Garlik / 4store community · since 2009 · also known as 4store RDF

Clustered RDF quad store in C, built at Garlik for billions of triples; now receives only rare fixes.

rdf / triple storedatabase engineopen source (copyleft)legacy

maintenance. Only sporadic build fixes (v1.1.7, May 2024, after a 2015 release); no feature work for about a decade. Prefer Jena TDB, Oxigraph, Virtuoso or QLever.

Overview

4store is an RDF quad store and SPARQL server designed by Steve Harris at Garlik, where it underpinned the company's semantic web products for several years and held datasets of around 15 billion triples. It runs as a set of storage backends with data hashed across segments, plus a SPARQL HTTP front end, and depends only on Raptor, Rasqal and GLib. Garlik open-sourced it under GPLv3 in 2009. Feature development stopped in the mid-2010s; v1.1.6 appeared in 2015 and a lone build-fix release, v1.1.7, in May 2024, so treat it as a stable legacy system rather than a choice for new work.

Strengths & trade-offs

Strengths

  • +Proven at billions of triples on modest commodity clusters
  • +Few dependencies (Raptor, Rasqal, GLib) and a compact C codebase
  • +Segment-based partitioning parallelises imports and queries across nodes
  • +GPLv3 with no vendor or licensing strings

Trade-offs

  • −No feature development in roughly a decade
  • −Incomplete SPARQL 1.1 coverage compared with current stores
  • −No real transactions, reasoning or fine-grained access control
  • −Cluster administration tooling is dated and manual

Great for

  • +Keeping legacy 4store-backed semantic web apps running
  • +Read-mostly SPARQL endpoints over static datasets
  • +Studying clustered triple-store design

Think twice for

  • −New knowledge graph projects
  • −Workloads that need full SPARQL 1.1, inference or transactional updates

Capabilities

Native or official first-party support · 2 of 25 tracked

✓Joins
✓Durable persistence
–Transactions
–Secondary indexes
–Full-text search
–Vector search
–Geospatial
–JSON
–Change data capture
–Triggers
–Stored procedures
–Materialized views
–TTL / expiry
–Pub/Sub
–Columnar storage
–In-memory
–Compression
–Encryption at rest
–Role-based access
–Time travel
–Branching
–Online schema changes
–Streaming ingest
–Offline sync
–Runs in WebAssembly

Scale & consistency

Comfortable data size
Medium · ≤ 10 TB
Horizontal scaling
Native
Multi-region
No
Transactions
Limited ACID
Consistency
Strong
Schema
Schemaless
Architecture
Distributed, Client server
Query languages
SPARQL

Data is hashed into segments spread over storage nodes; Garlik reported running stores of roughly 15 billion triples.

Deployment

Self-hosted Vendor-managed cloud Serverless Embedded Edge Kubernetes operator

Ecosystem

apis & protocolsSPARQL HTTP endpoint, Command-line tools (4s-query, 4s-import)

Alternatives to 4store

Compare all→
Apache Jena TDBRDF / Triple Store18.9

Apache Jena's native RDF store, embeddable in Java or served over SPARQL with Fuseki.

4store vs apache-jena-tdb →
OxigraphRDF / Triple Store15.1

Small, fast SPARQL database in Rust that embeds in Rust, Python and JavaScript or runs as a server.

4store vs oxigraph →
OpenLink VirtuosoRDF / Triple Store19.5

Hybrid SQL/RDF engine that runs many of the largest public SPARQL endpoints.

4store vs virtuoso →
QLeverRDF / Triple Store17.9

Fast open-source SPARQL engine that serves all of Wikidata or OpenStreetMap from one machine.

4store vs qlever →
Graphwise GraphDB (Ontotext)RDF / Triple Store15.6

Standards-compliant RDF triplestore with reasoning, connectors and MCP support for GraphRAG.

4store vs ontotext-graphdb →
BlazegraphRDF / Triple Store10.2

Abandoned Java RDF/SPARQL store, still known as the engine behind Wikidata Query Service.

4store vs blazegraph →

4store FAQ

What is 4store?

4store is a RDF / triple store database by Garlik / 4store community, first released in 2009. 4store is an RDF quad store and SPARQL server designed by Steve Harris at Garlik, where it underpinned the company's semantic web products for several years and held datasets of around 15 billion triples. It runs as a set of storage backends with data hashed across segments, plus a SPARQL HTTP front end, and depends only on Raptor, Rasqal and GLib. Garlik open-sourced it under GPLv3 in 2009. Feature development stopped in the mid-2010s; v1.1.6 appeared in 2015 and a lone build-fix release, v1.1.7, in May 2024, so treat it as a stable legacy system rather than a choice for new work.

Is 4store open source?

Yes. 4store is open source. License: GNU GPL v3.

Does 4store support ACID transactions?

Partly. 4store offers limited ACID guarantees (for example, single-record or single-partition transactions), with strong consistency.

Does 4store scale horizontally?

4store scales horizontally out of the box, with built-in sharding or partitioning. It is comfortable at medium scale (≤ 10 TB).

How can I run 4store?

You can self-host it.

What is 4store best for?

4store is a strong fit for keeping legacy 4store-backed semantic web apps running, read-mostly SPARQL endpoints over static datasets and studying clustered triple-store design. Think twice for new knowledge graph projects.

What are the best alternatives to 4store?

Common alternatives to 4store include Apache Jena TDB, Oxigraph, OpenLink Virtuoso, QLever and Graphwise GraphDB (Ontotext). The right choice depends on your workload, scale and hosting; WhichDB's smart match ranks them against your requirements.

Is 4store still maintained?

4store is in maintenance mode. Only sporadic build fixes (v1.1.7, May 2024, after a 2015 release); no feature work for about a decade. Prefer Jena TDB, Oxigraph, Virtuoso or QLever.

How popular is 4store?

4store ranks #564 of 844 databases on the WhichDB Score (1.2/100), and #16 among RDF / triple store databases. The score combines public adoption signals such as package downloads, GitHub activity, job posts and developer discussion.