sparql-smith

Crates.iosparql-smith
lib.rssparql-smith
version0.1.0-alpha.9
sourcesrc
created_at2023-01-18 19:43:19.967272
updated_at2024-10-13 18:58:12.634329
descriptionA SPARQL test cases generator
homepage
repositoryhttps://github.com/oxigraph/oxigraph/tree/main/lib/sparql-smith
max_upload_size
id761981
size78,916
Thomas Tanon (Tpt)

documentation

https://docs.rs/sparql-smith

README

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.

Commit count: 0

cargo fmt