Crates.io | spargebra |
lib.rs | spargebra |
version | 0.3.3 |
source | src |
created_at | 2021-07-30 19:41:53.698885 |
updated_at | 2024-11-07 18:15:29.954008 |
description | A SPARQL parser |
homepage | |
repository | https://github.com/oxigraph/oxigraph/tree/main/lib/spargebra |
max_upload_size | |
id | 429401 |
size | 203,198 |
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);
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.