sparq is a lightning-fast RDF triplestore and
SPARQL 1.1 / 1.2
engine, written in Rust — usable as a library, CLI, HTTP server, and from Python and
JavaScript/WASM.
Status: experimental research engine. The API is unstable and pre-1.0. Conformance against
the W3C SPARQL, SHACL, and inference suites is tracked by CI ratchets that only ever go up —
generated by sparq-conformance and published on every run
(inference floor committed at
inference-conformance-report.md).
SPARQL SERVICE federation ships behind the opt-in service cargo feature (off in the
default build); when built in it is default-DENY-all egress, allowlisted per host as an SSRF
guard (see crates/sparq-server/README.md and
research/roadmap.md).
🚀 Quickstart
v0.1.8 release install paths
These are the install commands for the planned v0.1.8 release. Use them only after
the tagged release and corresponding registry publications have succeeded. v0.1.7
published @sparq-org/solid-server, @sparq-org/eyereasoner-compat and the PyPI wheels
(@sparq-org/sparq stopped at 0.1.6); the crates.io bootstrap is still pending, so
until it lands the Cargo commands below do not resolve and Rust users build from
source.
# Rust CLI and HTTP server
cargo install sparq-cli --version 0.1.8
cargo install sparq-server --version 0.1.8
# Rust libraries (run inside your Cargo project)
cargo add [email protected] [email protected]
# Python: distribution name sparq-rdf, import name sparq
python -m pip install sparq-rdf==0.1.8
python -c 'import sparq'
# JavaScript/WASM RDF store
npm install @sparq-org/[email protected]
# Loopback-only Solid/LDP development host (not a production server)
npm install @sparq-org/[email protected]
# eye-js / eyereasoner migration API backed by sparq's N3 reasoner
npm install @sparq-org/[email protected]
Build from source
cargo build --release
# Query a file (Turtle / N-Triples / N-Quads / TriG, optionally .gz / .bz2 / .zst)
cargo run --release -p sparq-cli -- query data.ttl turtle \
'SELECT ?s ?o WHERE { ?s <http://schema.org/name> ?o } LIMIT 10'