sparql-store 0.0.0

A dataflow implementation of the SPARQL graph query language.
Documentation

SPARQL.rs

License Compatibility Package Documentation

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]

✨ Features

  • 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.

🛠️ Prerequisites

  • Rust 1.85+ (2024 edition)

⬇️ Installation

Installation via Cargo

cargo add sparql

Installation in Cargo.toml

Enable all default features:

[dependencies]
sparql = { version = "0.0" }

Enable only specific features:

[dependencies]
sparql = { version = "0.0", default-features = false, features = ["serde"] }

👉 Examples

Importing the Library

use sparql::{algebra, engine, parser, store};

Parsing a SPARQL Query

let query = sparql::parse("SELECT * WHERE { ?s ?p ?o }").expect("should be valid query");

📚 Reference

docs.rs/sparql

Core Packages

Package Crate Docs
sparql Package Documentation
sparql-algebra Package Documentation
sparql-derive Package Documentation
sparql-engine Package Documentation
sparql-parser Package Documentation
sparql-store Package Documentation

Feature Flags

Interoperability

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

👨‍💻 Development

git clone https://github.com/rust-rdf/sparql.rs.git

Share on X Share on Reddit Share on Hacker News Share on Facebook Share on LinkedIn