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:
```rust
use libfuzzersys::fuzztarget;
fuzztarget!(|data: sparqlsmith::Query| { spargebra::Query::parse(&data.to_string(), None).unwrap() }); ```
This project is licensed under either of
<http://www.apache.org/licenses/LICENSE-2.0>
)<http://opensource.org/licenses/MIT>
)at your option.
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.