26 releases

0.3.3 Nov 7, 2024
0.3.0 Sep 22, 2024
0.3.0-alpha.5 May 22, 2024
0.3.0-alpha.4 Mar 23, 2024
0.1.0 Jul 30, 2021

#917 in Database interfaces

Download history 538/week @ 2024-07-29 324/week @ 2024-08-05 1322/week @ 2024-08-12 503/week @ 2024-08-19 518/week @ 2024-08-26 270/week @ 2024-09-02 246/week @ 2024-09-09 560/week @ 2024-09-16 278/week @ 2024-09-23 586/week @ 2024-09-30 470/week @ 2024-10-07 315/week @ 2024-10-14 412/week @ 2024-10-21 686/week @ 2024-10-28 343/week @ 2024-11-04 343/week @ 2024-11-11

1,834 downloads per month
Used in 30 crates (9 directly)

MIT/Apache

410KB
10K 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.6–1.2MB
~25K SLoC