SPARQL.rs is a dataflow implementation of the SPARQL graph query language for RDF knowledge graphs.
Tip
π§ We are building in public. This is presently under heavy construction.
[Features] | [Prerequisites] | [Installation] | [Examples] | [Reference] | [Development]
- 100% pure and safe Rust with minimal dependencies and no bloat.
- Supports opting out of any feature using comprehensive feature flags.
- Adheres to the Rust API Guidelines in its naming conventions.
- Cuts red tape: 100% free and unencumbered public domain software.
- Rust 1.85+ (2024 edition)
cargo add sparqlEnable all default features:
[dependencies]
sparql = { version = "0.0" }Enable only specific features:
[dependencies]
sparql = { version = "0.0", default-features = false, features = ["serde"] }use sparql::{algebra, engine, parser, store};let query = sparql::parse("SELECT * WHERE { ?s ?p ?o }").expect("should be valid query");| Package | Crate | Docs |
|---|---|---|
| sparql | ||
| sparql-algebra | ||
| sparql-derive | ||
| sparql-engine | ||
| sparql-parser | ||
| sparql-store |
| Feature | Version | Summary |
|---|---|---|
datafusion |
50.0 | Planned interop with Apache DataFusion and rdf-fusion |
oxrdf |
0.3 | Implements From<T> for oxrdf::T, From<oxrdf::T> for T |
rudof |
0.1 | Planned interop with rudof |
serde |
1.0 | Derives serde::{Serialize, Deserialize} |
sophia |
0.10 | Implements From<T> for sophia::T, From<sophia::T> for T |
git clone https://github.com/rust-rdf/sparql.rs.git