10 releases

0.1.0-alpha.10 Jan 11, 2025
0.1.0-alpha.9 Oct 13, 2024
0.1.0-alpha.8 Aug 22, 2024
0.1.0-alpha.7 May 22, 2024
0.1.0-alpha.3 Mar 19, 2023

#2279 in Database interfaces

Download history 1/week @ 2024-12-04 2/week @ 2024-12-11 119/week @ 2025-01-08 20/week @ 2025-01-15 21/week @ 2025-01-22 28/week @ 2025-02-05 4/week @ 2025-02-12 24/week @ 2025-02-19 41/week @ 2025-02-26

97 downloads per month

MIT/Apache

80KB
2K SLoC

SPARQL smith

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

sparql-smith is a test case generator for the SPARQL language.

It provides a single struct, Query that could be serialized to a SPARQL query using to_string().

The queries generated are sadly not always valid. Variables scopes are not properly handled yet. All SPARQL features are not supported yet.

The DATA_TRIG constant is provided as an example dataset on which queries could be evaluated.

Usage example with libfuzzer-sys and spargebra:

#![no_main]
use libfuzzer_sys::fuzz_target;

fuzz_target!(|data: sparql_smith::Query| {
    spargebra::Query::parse(&data.to_string(), None).unwrap()
});

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

~310–750KB
~17K SLoC