7 releases

Uses new Rust 2021

0.2.1 Jun 12, 2022
0.2.0 Mar 19, 2022
0.2.0-beta.4 Feb 27, 2022
0.2.0-beta.2 Jan 29, 2022
0.1.0 Jul 30, 2021

#66 in Database implementations

Download history 5/week @ 2022-03-07 63/week @ 2022-03-14 27/week @ 2022-03-21 19/week @ 2022-03-28 32/week @ 2022-04-04 8/week @ 2022-04-11 36/week @ 2022-04-18 98/week @ 2022-04-25 69/week @ 2022-05-02 25/week @ 2022-05-09 113/week @ 2022-05-16 63/week @ 2022-05-23 173/week @ 2022-05-30 127/week @ 2022-06-06 115/week @ 2022-06-13 78/week @ 2022-06-20

501 downloads per month
Used in 2 crates (via oxigraph)

MIT/Apache

375KB
9K SLoC

Spargebra

Latest Version Released API docs Crates.io downloads actions status Gitter

Spargebra is a SPARQL parser.

It supports both SPARQL 1.1 Query and SPARQL 1.1 Update.

The emitted tree is based on SPARQL 1.1 Query Algebra objects.

The API entry point for SPARQL queries is the [Query] struct and the API entry point for SPARQL updates is the [Update] struct.

Support for SPARQL-star is also available behind the rdf-star feature.

This crate is intended to be a building piece for SPARQL implementations in Rust like Oxigraph.

Usage example:

use spargebra::Query;

let query_str = "SELECT ?s ?p ?o WHERE { ?s ?p ?o . }";
let query = Query::parse(query_str, None).unwrap();
assert_eq!(query.to_string(), query_str);

License

This project is licensed under either of

  • Apache License, Version 2.0, (LICENSE-APACHE or <http://www.apache.org/licenses/LICENSE-2.0>)
  • MIT license (LICENSE-MIT or <http://opensource.org/licenses/MIT>)

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in Oxigraph by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~1.5MB
~26K SLoC