Rust implementation of NextGraph, a Decentralized and local-first web 3.0 ecosystem
https://nextgraph.org
byzantine-fault-tolerancecrdtsdappsdecentralizede2eeeventual-consistencyjson-ldlocal-firstmarkdownocapoffline-firstp2pp2p-networkprivacy-protectionrdfrich-text-editorself-hostedsemantic-websparqlweb3collaboration
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Niko PLP
e3a3b556fa
|
5 months ago | |
---|---|---|
.. | ||
README.md | 6 months ago | |
algebra.rs | 6 months ago | |
mod.rs | 6 months ago | |
parser.rs | 6 months ago | |
query.rs | 6 months ago | |
term.rs | 5 months ago | |
update.rs | 6 months ago |
README.md
Spargebra
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.