18 releases

0.3.0-alpha.4 Mar 23, 2024
0.2.8 Jun 11, 2023
0.2.7 Mar 19, 2023
0.2.3 Dec 7, 2022
0.1.0 Jul 30, 2021

#961 in Database interfaces

Download history 124/week @ 2023-12-18 122/week @ 2023-12-25 154/week @ 2024-01-01 323/week @ 2024-01-08 157/week @ 2024-01-15 139/week @ 2024-01-22 145/week @ 2024-01-29 215/week @ 2024-02-05 241/week @ 2024-02-12 273/week @ 2024-02-19 218/week @ 2024-02-26 453/week @ 2024-03-04 276/week @ 2024-03-11 400/week @ 2024-03-18 384/week @ 2024-03-25 449/week @ 2024-04-01

1,537 downloads per month
Used in 16 crates (7 directly)

MIT/Apache

405KB
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

~0.7–1.3MB
~27K SLoC